Examples of TSubProcess


Examples of com.catify.processengine.core.processdefinition.jaxb.TSubProcess

   */
  private FlowElement createSubProcessNode(String clientId,
      TProcess processJaxb, ArrayList<TSubProcess> subProcessesJaxb, TFlowNode flowNodeJaxb,
      List<TSequenceFlow> sequenceFlowsJaxb) {
   
    final TSubProcess subProcessJaxb = (TSubProcess) flowNodeJaxb;

    return new SubProcessNode(
        IdService.getUniqueProcessId(clientId, processJaxb),
        IdService.getUniqueFlowNodeId(clientId, processJaxb, subProcessesJaxb,
            subProcessJaxb),
View Full Code Here

Examples of com.catify.processengine.core.processdefinition.jaxb.TSubProcess

    ArrayList<TSubProcess> localSubProcessesJaxb = new ArrayList<TSubProcess>(subProcessesJaxb);

    // check if the current end event node is a embedded in a sub process
    if (localSubProcessesJaxb.size() > 0) {
      // we only check the last sub process, because this can only be the sub process we are looking for
      TSubProcess subProcessJaxb = localSubProcessesJaxb.get(localSubProcessesJaxb.size()-1);
      for (JAXBElement<? extends TFlowElement> flowElementJaxb : subProcessJaxb.getFlowElement()) {
        // if the given end event node has been found in this sub process this is an embedded end event
        if (flowElementJaxb.getValue().getId().equals(flowNodeJaxb.getId())) {
          // remove the current sub process from the list of sub processes to be able to get its actor reference
          localSubProcessesJaxb.remove(subProcessJaxb);
          return IdService.getUniqueFlowNodeId(clientId, processJaxb, localSubProcessesJaxb, subProcessJaxb);
View Full Code Here

Examples of com.catify.processengine.core.processdefinition.jaxb.TSubProcess

    List<TFlowNode> flowNodesJaxb = new ArrayList<TFlowNode>();
    List<TSequenceFlow> sequenceFlowsJaxb = new ArrayList<TSequenceFlow>();
           
    // only check the (currently) last iteration of the list sub processes
    if (subProcessesJaxb.size() > 0 ) {
      TSubProcess subProcessJaxb = subProcessesJaxb.get(subProcessesJaxb.size()-1);
     
      for (JAXBElement<? extends TFlowElement> flowElementJaxb : subProcessJaxb.getFlowElement()) {
       
        if (flowElementJaxb.getDeclaredType().equals(TSequenceFlow.class)) {
          sequenceFlowsJaxb.add((TSequenceFlow) flowElementJaxb
              .getValue());
        } else if (flowElementJaxb.getValue() instanceof TFlowNode) {
View Full Code Here

Examples of com.catify.processengine.core.processdefinition.jaxb.TSubProcess

        dataObjectIdSet.add(dataObjectIds.get(DataObjectIdService.DATAINPUTOBJECTID));
        dataObjectIdSet.add(dataObjectIds.get(DataObjectIdService.DATAOUTPUTOBJECTID));

        // get object ids of the sub process flow nodes
        if (flowNodeJaxb instanceof TSubProcess) {
          TSubProcess subProcessJaxb = (TSubProcess) flowNodeJaxb;
          dataObjectIdSet.addAll(getAllDataObjectIds(subProcessJaxb.getFlowElement()));
        }
      }
    }
   
    return dataObjectIdSet;
View Full Code Here

Examples of com.catify.processengine.core.processdefinition.jaxb.TSubProcess

      }
      if (flowElement.getValue() instanceof TSubProcess) {
        // create local copies for recursion
        ArrayList<TSubProcess> recursiveSubProcessesJaxb = new ArrayList<TSubProcess>(subProcessesJaxb);
        recursiveSubProcessesJaxb.add((TSubProcess) flowElement.getValue());
        TSubProcess newSubProcessJaxb = (TSubProcess) flowElement.getValue();
       
        actorReferences.addAll(getAllActorReferences(clientId, processJaxb, recursiveSubProcessesJaxb, newSubProcessJaxb));
      }
    }
   
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.