public void addGate(Gate gate) { String targetName = gate.getOutgoingSequenceFlow().getTargetName(); gates.put(targetName, gate); }
public Gate getDefaultGate() { Gate gate = null; for (Gate aux : gates.values()) { SequenceFlow seqFlow = aux.getOutgoingSequenceFlow(); if (seqFlow.getConditionType() == ConditionType.Default) { gate = aux; break; } } return gate; }
SequenceFlow outFlow = applicableGates.get(0).getOutgoingSequenceFlow(); tokenExecutor.move(token, outFlow); for (Gate aux : applicableGates) SequenceFlow outFlow = aux.getOutgoingSequenceFlow(); Token outToken = token.copyToken(); tokenExecutor.create(outToken, outFlow);
@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(); } }
for (Gate auxGate : getGates()) SequenceFlow seqFlow = auxGate.getOutgoingSequenceFlow(); if (seqFlow.getConditionType() == ConditionType.Expression) SequenceFlow seqFlow = auxGate.getOutgoingSequenceFlow(); if (seqFlow.getConditionType() == ConditionType.Default) SequenceFlow seqFlow = auxGate.getOutgoingSequenceFlow(); if (seqFlow.getConditionType() == ConditionType.None)
for (Gate auxGate : getGates()) SequenceFlow seqFlow = auxGate.getOutgoingSequenceFlow(); if (seqFlow.getConditionType() == ConditionType.Expression) SequenceFlow seqFlow = auxGate.getOutgoingSequenceFlow(); if (seqFlow.getConditionType() == ConditionType.Default) SequenceFlow seqFlow = auxGate.getOutgoingSequenceFlow(); if (seqFlow.getConditionType() == ConditionType.None)
for(Gate gate : getGates()) SequenceFlow outFlow = gate.getOutgoingSequenceFlow(); outToken = outToken.copyToken(); tokenExecutor.create(outToken, outFlow);
for (Gate gate : gateway.getGates()) outFlow = gate.getOutgoingSequenceFlow(); initFlow(proc, (SequenceFlowImpl)outFlow);
SequenceFlow flow = gate.getOutgoingSequenceFlow(); jaxbGateway.getOutFlows().add(getJAXBFlow(flow));