public AbortWorkItemCommand createAbortWorkItemCommand() { return new AbortWorkItemCommand(); }
public Command newAbortWorkItem(long workItemId) { return new AbortWorkItemCommand( workItemId); }
public void abortWorkItem(long id) { AbortWorkItemCommand command = new AbortWorkItemCommand(); command.setWorkItemId( id ); commandService.execute( command ); }
public void abortWorkItem(long id) { String kresultsId = "kresults_" + this.gsd.getId(); CommandImpl cmd = new CommandImpl("execute", Arrays.asList(new Object[]{ new KnowledgeContextResolveFromContextCommand( new AbortWorkItemCommand( id ), null, null, this.instanceId, kresultsId )})); ConversationUtil.sendMessage(this.cm, (InetSocketAddress) this.gsd.getAddresses().get("socket").getObject(), this.gsd.getId(), cmd); }