org.drools.impl.adapters
Class WorkItemManagerAdapter
java.lang.Object
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
|
|
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 |
delegate
public org.kie.api.runtime.process.WorkItemManager delegate
WorkItemManagerAdapter
public WorkItemManagerAdapter(org.kie.api.runtime.process.WorkItemManager delegate)
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 completedresults - 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 executehandler - the handler for executing work items
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.