Пример #1
0
 public void sendOffers() {
   // Fire all output expansion nodes and send offers on all outgoing
   // control flows.
   List<ExpansionNodeActivation<AE, T>> list = this.outputNodeActivations;
   for (ExpansionNodeActivation<AE, T> expansionNodeActivation : list) {
     expansionNodeActivation.sendUnofferedTokens();
   }
   // Send offers on all outgoing control flows.
   super.sendOffers();
 }
Пример #2
0
 public ExpansionNodeActivation<AE, T> getExpansionNodeActivation(String node) {
   // Return the expansion node activation corresponding to the given
   // expansion node, in the context of the activity node activation group
   // this expansion region activation is in.
   // [Note: Expansion regions do not own their expansion nodes. Instead,
   // they are own as object nodes by the enclosing activity or group.
   // Therefore, they will already be activated along with their expansion
   // region.]
   for (ExpansionNodeActivation<AE, T> a : this.inputNodeActivations) {
     if (a.getName().equals(node)) {
       return a;
     }
   }
   return null;
 }