Examples of addOutgoingFlow()


Examples of org.activiti.bpmn.model.FlowElement.addOutgoingFlow()

    for (FlowElement flowElement : flowElementList) {
      if (flowElement instanceof SequenceFlow) {
        SequenceFlow sequenceFlow = (SequenceFlow) flowElement;
        FlowElement sourceElement = getFlowElementFromScope(sequenceFlow.getSourceRef(), parentScope);
        if (sourceElement != null) {
          sourceElement.addOutgoingFlow(sequenceFlow);
        }
      } else if (flowElement instanceof BoundaryEvent) {
        BoundaryEvent boundaryEvent = (BoundaryEvent) flowElement;
        FlowElement attachedToElement = getFlowElementFromScope(boundaryEvent.getAttachedToRefId(), parentScope);
        if(attachedToElement != null) {
View Full Code Here

Examples of org.jbpm.nodes.impl.ActionNode.addOutgoingFlow()

        process.addNode(1L, actionNode);
        EndEventNode endEvent = new EndEventNode();
        process.addNode(2L, endEvent);
       
        startEvent.addOutgoingFlow(SequenceFlow.FLOW_DEFAULT_TYPE, new SequenceFlowImpl(SequenceFlow.FLOW_DEFAULT_TYPE, actionNode));
        actionNode.addOutgoingFlow(SequenceFlow.FLOW_DEFAULT_TYPE, new SequenceFlowImpl(SequenceFlow.FLOW_DEFAULT_TYPE, endEvent));
       
        ProcessInstance processInstance = ProcessInstanceFactory.newProcessInstance(process);
               
        processInstance.start();       
   
View Full Code Here

Examples of org.jbpm.nodes.impl.StartEventNode.addOutgoingFlow()

        });
        process.addNode(1L, actionNode);
        EndEventNode endEvent = new EndEventNode();
        process.addNode(2L, endEvent);
       
        startEvent.addOutgoingFlow(SequenceFlow.FLOW_DEFAULT_TYPE, new SequenceFlowImpl(SequenceFlow.FLOW_DEFAULT_TYPE, actionNode));
        actionNode.addOutgoingFlow(SequenceFlow.FLOW_DEFAULT_TYPE, new SequenceFlowImpl(SequenceFlow.FLOW_DEFAULT_TYPE, endEvent));
       
        ProcessInstance processInstance = ProcessInstanceFactory.newProcessInstance(process);
               
        processInstance.start();       
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.