Examples of addChildActivity()


Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

      } else {
        sequenceBlock = new ComplexActivity();       
        resultingBlock.addChildActivity(sequenceBlock);
      }
     
      sequenceBlock.addChildActivity(createBlockActivity());

      GraphActivity next = (GraphActivity)outgoing.elementAt(0);
     
      //System.out.println("in seq: next:" + next.outgoing.size());
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

     
      cAct1 = new SwitchActivity();
      cAct1.setName("switch1");
      def.addChildActivity(cAct1);{
        cAct2 = new SequenceActivity();
        cAct1.addChildActivity(cAct2);{
          act = new HumanActivity();
          act.setName("Draft with resolution");
          ((HumanActivity) act).setRole(role3);
          cAct2.addChildActivity(act);
         
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

          act = new SQLActivity();
          act.setName("Database");
          cAct2.addChildActivity(act);
        }
        cAct2 = new LoopActivity();
        cAct1.addChildActivity(cAct2);{
          act = new HumanActivity();
          act.setName("Suggestion");
          ((HumanActivity) act).setRole(role3);
          cAct2.addChildActivity(act);
         
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

        // 결재 -> 합의
        if (!ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(preApprovalType) && ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(approver.getType())) {
          AllActivity allAct = new AllActivity();
          allAct.setTracingTag(null);
         
          parent.addChildActivity(allAct);
          parent = allAct;
        // 합의 -> 결재
        } else if (ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(preApprovalType) && !ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(approver.getType())) {
          parent = (ComplexActivity) approvalLineAct;
        }
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

        // 합의 -> 결재
        } else if (ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(preApprovalType) && !ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(approver.getType())) {
          parent = (ComplexActivity) approvalLineAct;
        }
       
        parent.addChildActivity(childAct);
        childAct.setApprover(instance, rm);
       
        approver.setTracingTag(childAct.getTracingTag());
       
        preApprovalType = approver.getType();
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

        continue;
      }
     
      Activity convertedAct = (Activity)adpt.convert(item, keyedContext);
      if(convertedAct!=null){
        dstAct.addChildActivity(convertedAct);
        i++;             
      }
    }   
   
    if(i==0) return null;
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

      }
     
      ComplexActivity parent = (ComplexActivity) approvalLineAct;
      if (parent.getChildActivities().size() > 1) {
        parent.getChildActivities().clear();
        parent.addChildActivity(draftAct);
      }
     
      String preApprovalType = null;
      for (Approver approver : approverList) {
        if (ExternalApprovalActivity.APPROVAL_TYPE_DRAFT.equalsIgnoreCase(approver.getType())) {
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

        // 결재 -> 합의
        if (!ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(preApprovalType) && ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(approver.getType())) {
          AllActivity allAct = new AllActivity();
          allAct.setTracingTag(null);
         
          parent.addChildActivity(allAct);
          parent = allAct;
        // 합의 -> 결재
        } else if (ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(preApprovalType) && !ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(approver.getType())) {
          parent = (ComplexActivity) approvalLineAct;
        }
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

        // 합의 -> 결재
        } else if (ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(preApprovalType) && !ExternalApprovalActivity.APPROVAL_TYPE_COOPERATION.equals(approver.getType())) {
          parent = (ComplexActivity) approvalLineAct;
        }
       
        parent.addChildActivity(childAct);
        childAct.setApprover(instance, rm);
       
        approver.setTracingTag(childAct.getTracingTag());
       
        preApprovalType = approver.getType();
View Full Code Here

Examples of org.uengine.kernel.ComplexActivity.addChildActivity()

    }
   
    ComplexActivity parent = (ComplexActivity) approvalLineAct;
    if (parent.getChildActivities().size() > 1) {
      parent.getChildActivities().clear();
      parent.addChildActivity(draftAct);
    }
   
    String preApprovalType = null;
    for (Approver approver : approverList) {
      if (ExternalApprovalActivity.APPROVAL_TYPE_DRAFT.equalsIgnoreCase(approver.getType())) {
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.