Package org.drools.command.runtime.process

Examples of org.drools.command.runtime.process.AbortWorkItemCommand


   
    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 )}));
       
View Full Code Here


                    command.setResults( results );
                    commandService.execute( command );
                }

                public void abortWorkItem(long id) {
                    AbortWorkItemCommand command = new AbortWorkItemCommand();
                    command.setWorkItemId( id );
                    commandService.execute( command );
                }

                public void registerWorkItemHandler(String workItemName,
                                                    WorkItemHandler handler) {
                    RegisterWorkItemHandlerCommand command = new RegisterWorkItemHandlerCommand();
                    command.setWorkItemName( workItemName );
                    command.setHandler( handler );
                    commandService.execute( command );
                }

        public WorkItem getWorkItem(long id) {
          GetWorkItemCommand command = new GetWorkItemCommand();
          command.setWorkItemId( id );
                    return commandService.execute( command );
        }

        public void clear() {
          throw new UnsupportedOperationException();
View Full Code Here

  }

  public void marshal(Object object,
                      HierarchicalStreamWriter writer,
                      MarshallingContext context) {
      AbortWorkItemCommand cmd = (AbortWorkItemCommand) object;
      writer.addAttribute( "id",
                           Long.toString( cmd.getWorkItemId() ) );
  }
View Full Code Here

TOP

Related Classes of org.drools.command.runtime.process.AbortWorkItemCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.