// Setup the evaluation context
ContextImpl localSessionContext = new ContextImpl( "session_" + msg.getSessionId(),
this.data.getContextManager(),
this.data.getTemp() );
ExecutionResultImpl localKresults = new ExecutionResultImpl();
localSessionContext.set( "kresults_" + msg.getSessionId(),
localKresults );
for ( GenericCommand cmd : commands ) {
// evaluate the commands
cmd.execute( localSessionContext );
}
if ( !msg.isAsync() && localKresults.getIdentifiers().isEmpty() ) {
// if it's not an async invocation and their are no results, just send a simple notification message
session.write( new Message( msg.getSessionId(),
msg.getResponseId(),
msg.isAsync(),
new FinishedCommand() ), null );