public void validateAddIncomingConnection(final String type, final Connection connection) { throw new UnsupportedOperationException( "A start node [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] may not have an incoming connection!"); }
public void validateRemoveIncomingConnection(final String type, final Connection connection) { throw new UnsupportedOperationException( "A start node [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] may not have an incoming connection!"); }
@Override public void addInMapping(String parameterName, String variableName) { throw new IllegalArgumentException("A start event [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] does not support input mappings"); }
@Override public void setInMappings(Map<String, String> inMapping) { throw new IllegalArgumentException("A start event [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] does not support input mappings"); }
@Override public String getInMapping(String parameterName) { throw new IllegalArgumentException("A start event [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] does not support input mappings"); }
public void validateAddOutgoingConnection(final String type, final Connection connection) { super.validateAddOutgoingConnection(type, connection); if (!org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE.equals(type)) { throw new IllegalArgumentException( "A start node [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] only accepts default outgoing connection type!"); } if (getTo() != null && !"true".equals(System.getProperty("jbpm.enable.multi.con"))) { throw new IllegalArgumentException( "A start node [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] cannot have more than one outgoing connection!"); } }
protected void handleCompensationNode(final StartNode startNode, final Element element, final org.w3c.dom.Node xmlNode, final ExtensibleXmlParser parser) throws SAXException { if( startNode.isInterrupting() ) { logger.warn( "Compensation Event Sub-Processes [" + startNode.getMetaData("UniqueId") + "] may not be specified as interrupting:" + " overriding attribute and setting to not-interrupting."); logger.warn("activityRef value [" + activityRef + "] on Start Event '" + startNode.getMetaData("UniqueId") + "' ignored per the BPMN2 specification."); startTriggers.add(startTrigger); startNode.setTriggers(startTriggers); String mapping = (String) startNode.getMetaData("TriggerMapping"); if (mapping != null) { startTrigger.addInMapping(mapping, startNode.getOutMapping(mapping));
public void signalEvent(String type, Object event) { String variableName = (String) getStartNode().getMetaData("TriggerMapping"); if (variableName != null) { VariableScopeInstance variableScopeInstance = (VariableScopeInstance) resolveContextInstance(VariableScope.VARIABLE_SCOPE, variableName); if (variableScopeInstance == null) { throw new IllegalArgumentException( "Could not find variable for start node: " + variableName); } EventTransformer transformer = getStartNode().getEventTransformer(); if (transformer != null) { event = transformer.transformEvent(event); } variableScopeInstance.setVariable(variableName, event); } triggerCompleted(); }
eventFilter.setType("Timer-" + ((EventSubProcessNode) parser.getParent()).getId()); trigger.addEventFilter(eventFilter); String mapping = (String) startNode.getMetaData("TriggerMapping"); if (mapping != null) { trigger.addInMapping(mapping, "event");
private void addTriggerWithInMappings(StartNode startNode, String triggerEventType) { EventTrigger trigger = new EventTrigger(); EventTypeFilter eventFilter = new EventTypeFilter(); eventFilter.setType(triggerEventType); trigger.addEventFilter(eventFilter); String mapping = (String) startNode.getMetaData("TriggerMapping"); if (mapping != null) { trigger.addInMapping(mapping, startNode.getOutMapping(mapping)); } startNode.addTrigger(trigger); }
mapping = (String) startNode.getMetaData("TriggerMapping");
@Override public void nodeInstanceCompleted(org.jbpm.workflow.instance.NodeInstance nodeInstance, String outType) { if (nodeInstance instanceof EndNodeInstance) { if (getCompositeNode().isKeepActive()) { StartNode startNode = getCompositeNode().findStartNode(); triggerCompleted(true); if (startNode.isInterrupting()) { String faultName = getProcessInstance().getOutcome()==null?"":getProcessInstance().getOutcome(); if (startNode.getMetaData("FaultCode") != null) { faultName = (String) startNode.getMetaData("FaultCode"); } if (getNodeInstanceContainer() instanceof ProcessInstance) { ((ProcessInstance) getProcessInstance()).setState(ProcessInstance.STATE_ABORTED, faultName); } else { ((NodeInstanceContainer) getNodeInstanceContainer()).setState( ProcessInstance.STATE_ABORTED); } } } } else { throw new IllegalArgumentException( "Completing a node instance that has no outgoing connection not supported."); } }
@Override public String getInMapping(String parameterName) { throw new IllegalArgumentException("A start event [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] does not support input mappings"); }
public void validateAddIncomingConnection(final String type, final Connection connection) { throw new UnsupportedOperationException( "A start node [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] may not have an incoming connection!"); }
public void validateRemoveIncomingConnection(final String type, final Connection connection) { throw new UnsupportedOperationException( "A start node [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] may not have an incoming connection!"); }
@Override public void setInMappings(Map<String, String> inMapping) { throw new IllegalArgumentException("A start event [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] does not support input mappings"); }
@Override public void addInMapping(String parameterName, String variableName) { throw new IllegalArgumentException("A start event [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] does not support input mappings"); }
public void validateAddOutgoingConnection(final String type, final Connection connection) { super.validateAddOutgoingConnection(type, connection); if (!org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE.equals(type)) { throw new IllegalArgumentException( "A start node [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] only accepts default outgoing connection type!"); } if (getTo() != null && !"true".equals(System.getProperty("jbpm.enable.multi.con"))) { throw new IllegalArgumentException( "A start node [" + this.getMetaData("UniqueId") + ", " + this.getName() + "] cannot have more than one outgoing connection!"); } }
public void signalEvent(String type, Object event) { String variableName = (String) getStartNode().getMetaData("TriggerMapping"); if (variableName != null) { VariableScopeInstance variableScopeInstance = (VariableScopeInstance) resolveContextInstance(VariableScope.VARIABLE_SCOPE, variableName); if (variableScopeInstance == null) { throw new IllegalArgumentException( "Could not find variable for start node: " + variableName); } EventTransformer transformer = getStartNode().getEventTransformer(); if (transformer != null) { event = transformer.transformEvent(event); } variableScopeInstance.setVariable(variableName, event); } triggerCompleted(); }
private void addTriggerWithInMappings(StartNode startNode, String triggerEventType) { EventTrigger trigger = new EventTrigger(); EventTypeFilter eventFilter = new EventTypeFilter(); eventFilter.setType(triggerEventType); trigger.addEventFilter(eventFilter); String mapping = (String) startNode.getMetaData("TriggerMapping"); if (mapping != null) { trigger.addInMapping(mapping, startNode.getOutMapping(mapping)); } startNode.addTrigger(trigger); }