JBoss Community

Re: only the first human task is being saved in db!

created by Odelya Holiday in jBPM - View the full discussion

Well I tried to add it like this but it didn't work:

 

@Override

          public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {

                    Node node = event.getNodeInstance().getNode();

                    if (node instanceof HumanTaskNode) {

  BlockingGetTaskResponseHandler handler = new BlockingGetTaskResponseHandler();

  taskClient.getTasksAssignedAsPotentialOwner(userName, "en-UK", handler);

..

//send web services

}

 

The new task was not added to the database at this point!

 

When can I add this piece of code that will send web service about the new task with the task id?

Reply to this message by going to Community

Start a new discussion in jBPM at Community