Package org.jbpm.executor.impl.wih
Class AsyncWorkItemHandlerCmdCallback
- java.lang.Object
-
- org.jbpm.executor.impl.wih.AsyncWorkItemHandlerCmdCallback
-
- All Implemented Interfaces:
org.kie.api.executor.CommandCallback
public class AsyncWorkItemHandlerCmdCallback extends Object implements org.kie.api.executor.CommandCallback
Dedicated callback forAsyncWorkItemHandler
that is responsible for:- completing work item in case of successful execution
- attempting to handle exception (by utilizing ExceptionScope mechanism) in case of unsuccessful execution
-
-
Constructor Summary
Constructors Constructor Description AsyncWorkItemHandlerCmdCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.kie.api.runtime.process.NodeInstance
getNodeInstance(org.kie.api.runtime.process.WorkItem workItem, Collection<org.kie.api.runtime.process.NodeInstance> nodeInstances)
protected org.kie.api.runtime.process.NodeInstance
getNodeInstance(org.kie.api.runtime.process.WorkItem workItem, WorkflowProcessInstance processInstance)
protected org.kie.api.runtime.manager.RuntimeManager
getRuntimeManager(org.kie.api.executor.CommandContext ctx)
void
onCommandDone(org.kie.api.executor.CommandContext ctx, org.kie.api.executor.ExecutionResults results)
void
onCommandError(org.kie.api.executor.CommandContext ctx, Throwable exception)
-
-
-
Method Detail
-
onCommandDone
public void onCommandDone(org.kie.api.executor.CommandContext ctx, org.kie.api.executor.ExecutionResults results)
- Specified by:
onCommandDone
in interfaceorg.kie.api.executor.CommandCallback
-
onCommandError
public void onCommandError(org.kie.api.executor.CommandContext ctx, Throwable exception)
- Specified by:
onCommandError
in interfaceorg.kie.api.executor.CommandCallback
-
getRuntimeManager
protected org.kie.api.runtime.manager.RuntimeManager getRuntimeManager(org.kie.api.executor.CommandContext ctx)
-
getNodeInstance
protected org.kie.api.runtime.process.NodeInstance getNodeInstance(org.kie.api.runtime.process.WorkItem workItem, WorkflowProcessInstance processInstance)
-
getNodeInstance
protected org.kie.api.runtime.process.NodeInstance getNodeInstance(org.kie.api.runtime.process.WorkItem workItem, Collection<org.kie.api.runtime.process.NodeInstance> nodeInstances)
-
-