As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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); } } }
<br><error id="[b]myError[/b]" errorCode="error123" /><br><process id ….<br>….<br> <endEvent id="endevent2" name="ErrorEnd"><br> <errorEventDefinition errorRef="[b]myError[/b]"></errorEventDefinition><br> </endEvent><br>
<br> <boundaryEvent id="boundaryerror1" name="" attachedToRef="callactivity1"><br> <errorEventDefinition errorRef="[b]error123[/b]"></errorEventDefinition><br> </boundaryEvent><br>