Environment environment) {
String kresultsId = "kresults_" + this.cm.toString();
String localId = UUID.randomUUID().toString();
CommandImpl registerKAgentCmd = new CommandImpl( "execute",
Arrays.asList( new Object[]{new SetVariableCommandFromCommand( "__TEMP__",
localId+"_kAgent",
new KnowledgeContextResolveFromContextCommand( new RegisterKAgentRemoteCommand( localId ),
null,
this.instanceId,
null,
kresultsId ) )} ) );
this.sendMessage(registerKAgentCmd);
String ksessionConfId = null;
if (conf != null){
((KnowledgeSessionConfigurationRemoteClient)conf).getId();
}
CommandImpl newSessionCmd = new CommandImpl( "execute",
Arrays.asList( new Object[]{new SetVariableCommandFromCommand( "__TEMP__",
localId,
new KnowledgeContextResolveFromContextCommand( new NewStatefulKnowledgeSessionFromKAgentRemoteCommand( ksessionConfId , environment, localId),
null,
this.instanceId,
null,