Thanks for answering I want that when "response" comes in N get out of the event and pass the task, "hello". The variable "response" is filled with
| response = reposicion.verificarCarguePorReposicion(documento, caf); //RETURN N or S | I this error when I go out the signal executionService.signalExecutionById (execution.getId ()); When I remove executionService.signalExecutionById (execution.getId ()); I stay in an endless cycle that never goes to the next task | public void notify(EventListenerExecution executionListener) throws Exception { | String response = executionListener.getVariable("response")+""; | if (response.equals(null)) { | response = new String(); | executionListener.setVariable("response", response); | } | ReposicionDao reposicion = new ReposicionDao(); | response = reposicion.verificarCarguePorReposicion(documento, caf); //RETURN N or S | if (processEngine == null) { | processEngine = Configuration.getProcessEngine(); | executionService = processEngine.getExecutionService(); | } | ProcessInstance processInstance = executionService.findProcessInstanceById(executionListener.getId | ()); | Execution execution = processInstance.findActiveExecutionIn("verify"); | System.out.println("===>"+execution.getId()); | //WHEN response IS EQUAL TO N I MOVE TO ANOTHER TASK AND GET OUT OF THE TIMER | if(executionListener.getVariable("response").toString().equals("N")){ | processInstance = executionService.signalExecutionById(execution.getId()); | } | } | I hope having explained View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269789#4269789 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269789 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user