Example #1
0
 public boolean hasBeenExecuted(BpelActivity activity, List<Token> closedChildTokens) {
   if (closedChildTokens == null || closedChildTokens.size() == 0) {
     return false;
   }
   for (Token childToken : closedChildTokens) {
     if (childToken.getElementId().equals(activity.getId())) {
       return true;
     }
   }
   return false;
 }
Example #2
0
 public Sequence addChild(BpelActivity bpelActivity) {
   bpelActivity.setParent(this);
   Child childActivity = new Child(null, bpelActivity);
   this.addChild(childActivity);
   return this;
 }