public ExecutionResults execute(Context context) { for ( GenericCommand<?> command : commands ) { ((GenericCommand<?>)command).execute( context ); } return null; }
public Command newSetGlobal(String identifier, Object object, boolean out) { if (out) { return newSetGlobal(identifier, object, identifier); } else { return newSetGlobal(identifier, object); } }
public ContextImpl(String name, World manager, Context delegate) { this.name = name; this.manager = manager; setParent( delegate ); }
public Object execute(Context context) { StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession(); if (processInstanceId == null) { return null; } ksession.abortProcessInstance(processInstanceId); return null; }
public Object execute(Context context) { FixedKnowledgeCommandContext kcContext = new FixedKnowledgeCommandContext( context, (KnowledgeBuilder) context.get( this.kbuilderIdentifier ), (KnowledgeBase) context.get( this.kbaseIdentifier ), (StatefulKnowledgeSession) context.get( this.statefulKsessionName ), (WorkingMemoryEntryPoint) context.get(this.workingMemoryEntryPointName), (ExecutionResultImpl) context.get( this.kresults ) ); return ((GenericCommand) command).execute( kcContext ); }
public WorkItemManager execute(Context context) { WorkItemManager workItemManager = ((KnowledgeCommandContext) context).getWorkItemManager(); return workItemManager; }
public <T> T execute(Command<T> command) { T result = executeNext(command); if (requiresFireAllRules(command)) { executeNext(new FireAllRulesCommand()); } return result; }
public StatefulKnowledgeSession execute(Context context) { KnowledgeBase kbase = ((KnowledgeCommandContext) context).getKnowledgeBase(); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession( this.ksessionConf, environment ); return ksession; }
public Command newGetObjects() { return newGetObjects((ObjectFilter) null); }
public void run() { executeNext(command); } }).start();
public ProcessInstance startProcess(String processId) { return startProcess( processId, null ); }
public Command<FactHandle> fromExternalFactHandleCommand(String factHandleExternalForm) { return fromExternalFactHandleCommand(factHandleExternalForm, false); }
public Collection<Object> getObjects() { return getObjects( null ); }
public ShadowWorld getContextManager() { return (ShadowWorld) super.getContextManager(); }
public ProcessInstance execute(Context context) { StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession(); if (processInstanceId == null) { return null; } return ksession.getProcessInstance(processInstanceId); }
public ExecutionResults execute(Context context) { for ( GenericCommand<?> command : commands ) { ((GenericCommand<?>)command).execute( context ); } return null; }
public Command newGetObjects(String outIdentifier) { return newGetObjects(null, outIdentifier); }
public Object execute(Context context) { StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession(); if ( workingMemoryEventListener != null ) { ksession.removeEventListener( workingMemoryEventListener ); } else if ( agendaEventListener != null ) { ksession.removeEventListener( agendaEventListener ); } else { ksession.removeEventListener( processEventListener ); } return null; }
public Object execute(GenericCommand command, Context context) { return command.execute( context ); } }
public <T> T execute(Command<T> command) { return ((GenericCommand<T>)command).execute(context); }