public interface WorkItemManagerFluent<T,P,U>
Modifier and Type | Method and Description |
---|---|
T |
abortWorkItem(long id)
Notifies the work item manager that the work item with the given
id could not be executed and should be aborted.
|
T |
completeWorkItem(long id,
Map<String,Object> results)
Notifies the work item manager that the work item with the given
id has been completed.
|
KieSessionFluent |
getKieSession() |
T |
registerWorkItemHandler(String workItemName,
WorkItemHandler handler)
Register the given handler for all work items of the given
type of work
|
T completeWorkItem(long id, Map<String,Object> results)
id
- the id of the work item that has been completedresults
- the results related to this work item, or null
if there are no resultsT abortWorkItem(long id)
id
- the id of the work item that should be abortedT registerWorkItemHandler(String workItemName, WorkItemHandler handler)
workItemName
- the type of work this work item handler can executehandler
- the handler for executing work itemsKieSessionFluent getKieSession()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.