Examples of StateNode


Examples of org.jbpm.workflow.core.node.StateNode

                  for (Timer timer: milestone.getTimers().keySet()) {
                    validateTimer(timer, node, process, errors);
                  }
                }
            } else if (node instanceof StateNode) {
                final StateNode stateNode = (StateNode) node;
                if (stateNode.getDefaultIncomingConnections().size() == 0 && !acceptsNoIncomingConnections(node)) {
                    errors.add(new ProcessValidationErrorImpl(process,
                        "State node '" + node.getName() + "' [" + node.getId() + "] has no incoming connection"));
                }
            }
            else if (node instanceof SubProcessNode) {
View Full Code Here

Examples of org.jbpm.workflow.core.node.StateNode

    }
   
  public void internalTrigger(NodeInstance from, String type) {
    super.internalTrigger(from, type);
        // TODO: composite states trigger
        StateNode stateNode = getStateNode();
        Connection selected = null;
        int priority = Integer.MAX_VALUE;
        for (Connection connection: stateNode.getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) {
            Constraint constraint = stateNode.getConstraint(connection);
            if (constraint != null && constraint.getPriority() < priority) {
              String rule = "RuleFlowStateNode-" + getProcessInstance().getProcessId() + "-" +
                getStateNode().getUniqueId() + "-" +
                connection.getTo().getId() + "-" +
                connection.getToType();
View Full Code Here

Examples of org.jbpm.workflow.core.node.StateNode

    public static final String CONSTRAINTS = "constraints";

    private static final long serialVersionUID = 510l;

    public StateNodeWrapper() {
        setNode(new StateNode());
        getStateNode().setName("State");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.