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; }
public Sequence addChild(BpelActivity bpelActivity) { bpelActivity.setParent(this); Child childActivity = new Child(null, bpelActivity); this.addChild(childActivity); return this; }