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 CustomDelegate implements JavaDelegate { public void execute(DelegateExecution execution) throws Exception { //Counter int i= (Integer)execution.getVariable("count"); if(i<5) { i= i+ 1; execution.setVariable("count", i); } //External call String orderID= (String) execution.getVariable("orderID"); String status= MyUtil.getStatus(orderID); execution.setVariable("status", status); }}