Knowledge API Legacy5 Adapter 6.0.0.CR4-Pre1

org.drools.impl.adapters
Class WorkItemManagerAdapter

java.lang.Object
  extended by org.drools.impl.adapters.WorkItemManagerAdapter
All Implemented Interfaces:
WorkItemManager

public class WorkItemManagerAdapter
extends Object
implements WorkItemManager


Field Summary
 org.kie.api.runtime.process.WorkItemManager delegate
           
 
Constructor Summary
WorkItemManagerAdapter(org.kie.api.runtime.process.WorkItemManager delegate)
           
 
Method Summary
 void abortWorkItem(long id)
          Notifies the work item manager that the work item with the given id could not be executed and should be aborted.
 void completeWorkItem(long id, Map<String,Object> results)
          Notifies the work item manager that the work item with the given id has been completed.
 void registerWorkItemHandler(String workItemName, WorkItemHandler handler)
          Register the given handler for all work items of the given type of work
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

public org.kie.api.runtime.process.WorkItemManager delegate
Constructor Detail

WorkItemManagerAdapter

public WorkItemManagerAdapter(org.kie.api.runtime.process.WorkItemManager delegate)
Method Detail

completeWorkItem

public void completeWorkItem(long id,
                             Map<String,Object> results)
Description copied from interface: WorkItemManager
Notifies the work item manager that the work item with the given id has been completed. Results related to the execution of this work item can be passed.

Specified by:
completeWorkItem in interface WorkItemManager
Parameters:
id - the id of the work item that has been completed
results - the results related to this work item, or null if there are no results

abortWorkItem

public void abortWorkItem(long id)
Description copied from interface: WorkItemManager
Notifies the work item manager that the work item with the given id could not be executed and should be aborted.

Specified by:
abortWorkItem in interface WorkItemManager
Parameters:
id - the id of the work item that should be aborted

registerWorkItemHandler

public void registerWorkItemHandler(String workItemName,
                                    WorkItemHandler handler)
Description copied from interface: WorkItemManager
Register the given handler for all work items of the given type of work

Specified by:
registerWorkItemHandler in interface WorkItemManager
Parameters:
workItemName - the type of work this work item handler can execute
handler - the handler for executing work items

Knowledge API Legacy5 Adapter 6.0.0.CR4-Pre1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.