0 Replies Latest reply on Dec 3, 2014 10:26 AM by ivanice

    how to run human task

    ivanice

      hi to all,

      I have a process formed by: serviceTask-HumanTask-Servicestask.

      Now I use EventListener to know when the workflow left the first service task for the humanTask.

      How can I do to launch the human task from the eventlistener??

       

      ksession.addEventListener(new DefaultProcessEventListener(){

                      @Override public void afterNodeLeft(    ProcessNodeLeftEvent event){

                         

                        System.out.println("After node left " + event.getNodeInstance().getNodeName());

                          here I would start the human task.

                      }

               }

                  );