@Override protected void defaultFlowHandler(TokenExecutor tokenExecutor, Token token) { FlowObject sourceRef = token.getFlow().getSourceRef(); // Schedule the first token that arrives if (token == receivedTokens.get(0)) { log.debug("Propagate token comming from: " + sourceRef); Gate selectedGate = getSelectedGate(token); SequenceFlow outFlow = selectedGate.getOutgoingSequenceFlow(); tokenExecutor.move(token, outFlow); } // Ignore all other tokens else { log.debug("Ignore token comming from: " + sourceRef); tokenExecutor.destroy(token); } // Reset the gateway if (outstandingFlows.size() == 0) { reset(); } }
@Override protected void defaultFlowHandler(TokenExecutor tokenExecutor, Token token) FlowObject sourceRef = token.getFlow().getSourceRef(); log.debug("Propagate token comming from: " + sourceRef);