if (useContext) {
javaTextWithParams.append( "org.kie.api.runtime.process.ProcessContext kcontext;" );
}
javaTextWithParams.append( javaText );
String jtext = javaTextWithParams.toString();
String fixedText = new KnowledgeHelperFixer().fix( jtext );
evalContext.codeComplete( fixedText,
fixedText.length(),
collector );
IJavaCompletionProposal[] proposals = collector.getJavaCompletionProposals();