public String[] getEventTypes() { return new String[] { "signal", getActivationEventType() }; }
private void addActivationListener() { getProcessInstance().addEventListener(getActivationEventType(), this, true); }
public void removeEventListeners() { super.removeEventListeners(); getProcessInstance().removeEventListener("signal", this, false); getProcessInstance().removeEventListener(getActivationEventType(), this, true); }
} else if (getActivationEventType().equals(type)) { if (event instanceof MatchCreatedEvent) { activationCreated((MatchCreatedEvent) event);
public void activationCreated(MatchCreatedEvent event) { Connection selected = null; for (Connection connection: getNode().getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) { Constraint constraint = getStateNode().getConstraint(connection); if (constraint != null) { String constraintName = getActivationEventType() + "-" + connection.getTo().getId() + "-" + connection.getToType(); if (constraintName.equals(event.getMatch().getRule().getName()) && checkProcessInstance((Activation) event.getMatch())) { selected = connection; } } } if (selected != null) { removeEventListeners(); ((NodeInstanceContainer) getNodeInstanceContainer()).removeNodeInstance(this); triggerConnection(selected); } }
public String[] getEventTypes() { return new String[] { "signal", getActivationEventType() }; }
private void addActivationListener() { getProcessInstance().addEventListener(getActivationEventType(), this, true); }
public void removeEventListeners() { super.removeEventListeners(); getProcessInstance().removeEventListener("signal", this, false); getProcessInstance().removeEventListener(getActivationEventType(), this, true); }
} else if (getActivationEventType().equals(type)) { if (event instanceof MatchCreatedEvent) { activationCreated((MatchCreatedEvent) event);
public void activationCreated(MatchCreatedEvent event) { Connection selected = null; for (Connection connection: getNode().getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) { Constraint constraint = getStateNode().getConstraint(connection); if (constraint != null) { String constraintName = getActivationEventType() + "-" + connection.getTo().getId() + "-" + connection.getToType(); if (constraintName.equals(event.getMatch().getRule().getName()) && checkProcessInstance((Activation) event.getMatch())) { selected = connection; } } } if (selected != null) { removeEventListeners(); ((NodeInstanceContainer) getNodeInstanceContainer()).removeNodeInstance(this); triggerConnection(selected); } }