public class WorkItemManagerAdapter extends Object implements WorkItemManager
Modifier and Type | Field and Description |
---|---|
org.kie.api.runtime.process.WorkItemManager |
delegate |
Constructor and Description |
---|
WorkItemManagerAdapter(org.kie.api.runtime.process.WorkItemManager delegate) |
Modifier and Type | Method and Description |
---|---|
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
|
public WorkItemManagerAdapter(org.kie.api.runtime.process.WorkItemManager delegate)
public void completeWorkItem(long id, Map<String,Object> results)
WorkItemManager
completeWorkItem
in interface WorkItemManager
id
- the id of the work item that has been completedresults
- the results related to this work item, or null
if there are no resultspublic void abortWorkItem(long id)
WorkItemManager
abortWorkItem
in interface WorkItemManager
id
- the id of the work item that should be abortedpublic void registerWorkItemHandler(String workItemName, WorkItemHandler handler)
WorkItemManager
registerWorkItemHandler
in interface WorkItemManager
workItemName
- the type of work this work item handler can executehandler
- the handler for executing work itemsCopyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.