Class AsyncWorkItemHandlerCmdCallback

  • All Implemented Interfaces:
    org.kie.api.executor.CommandCallback

    public class AsyncWorkItemHandlerCmdCallback
    extends Object
    implements org.kie.api.executor.CommandCallback
    Dedicated callback for AsyncWorkItemHandler 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 Detail

      • AsyncWorkItemHandlerCmdCallback

        public AsyncWorkItemHandlerCmdCallback()
    • Method Detail

      • onCommandDone

        public void onCommandDone​(org.kie.api.executor.CommandContext ctx,
                                  org.kie.api.executor.ExecutionResults results)
        Specified by:
        onCommandDone in interface org.kie.api.executor.CommandCallback
      • onCommandError

        public void onCommandError​(org.kie.api.executor.CommandContext ctx,
                                   Throwable exception)
        Specified by:
        onCommandError in interface org.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)