0 Replies Latest reply on Jul 10, 2014 10:01 PM by Marshal Lee

    asynchronous workItem in jbpm6

    Marshal Lee Newbie

      found a config file at \WEB-INF\classes\META-INF\CustomWorkItemHandlers.conf ,thus we could set our own workItem handler.

      furthermore ,I want to extends an asynchronous workitem.

      So try in this way.

      1.implements an workitem with executeWorkItem function sending some parameters and workitemId ,deploymentunitid and processinstanceid to other asynchronous system,like camel or spring integration.here ,take this workitem as a Producer.

      2.implement Receiver ,witch will be called by other asynchronous system.

      3.trigger workitem completed ,as followed code:

           WorkItemManager wim=_deploymentService.getRuntimeManager(du).getRuntimeEngine(ProcessInstanceIdContext.get(pid)).getKieSession().getWorkItemManager();

             wim.completeWorkItem(id, resultMap);

      and _deploymentService will be setted with:


             private DeploymentService _deploymentService;

      Am I right?