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

    how to run human task

    Domenico Schiavone Newbie

      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.

                      }

               }

                  );