AnsweredAssumed Answered

Call activity and boundary error event

Question asked by meditel on Sep 9, 2011
Latest reply on Sep 13, 2011 by meditel
Hi, i can't figure out why my process is not working as excepted  :(

I have a simple process that calls a call activity catching errors using a boundary event.
[attachment=1]MyProcess.jpg[/attachment]
[attachment=0]ActivityProcess.jpg[/attachment]

The call activity process may throw an error if the msisdn != 0123456789 (PutOrderInDB.java)

public class PutOrderInDB implements JavaDelegate {

   @Override
   public void execute(DelegateExecution execution) throws Exception {
      String msisdn = (String) execution.getVariable("orderMsisdn");
      Long amount = (Long) execution.getVariable("orderAmount");
      String type = (String) execution.getVariable("orderType");
      System.out.println("msisdn from PutOrderInDB class : "+msisdn);
      System.out.println("amount from PutOrderInDB class : "+amount);
      System.out.println("type from PutOrderInDB class : "+type);
      if("0123456789".equalsIgnoreCase(msisdn)) {
         execution.setVariable("isPutInDB", true);
      }
      else {
         execution.setVariable("isPutInDB", false);
      }
   }
}

If i execute the process, i can't see in error in the tomcat logs, but the Activiti explorer remains looping and i can't move forward after that.

I have attached all the project files.
Any hints are welcome.

Outcomes