Package org.uengine.kernel

Examples of org.uengine.kernel.AllActivity


      if (isXOR()) { //Switch block
        innerBlock = new SwitchActivity();

      } else //All block
        //System.out.println("in all");
        innerBlock = new AllActivity();
       
        if (!isSequenceBlock(resultingBlock)) {
          ComplexActivity sequenceBlock = new ComplexActivity();
                       
          resultingBlock.addChildActivity(sequenceBlock);
View Full Code Here


    assertTrue(prevActs.size() == 2);
  }
 
  public ProcessDefinition createProcessDefinition(){
    ProcessDefinition def = new ProcessDefinition();{
      ComplexActivity all1 = new AllActivity();{
        SequenceActivity seq11 = new SequenceActivity();{
          DefaultActivity act111 = new DefaultActivity("111");
          seq11.setChildActivities(new Activity[]{act111});
        }   

        AllActivity all12 = new AllActivity();{
          SequenceActivity seq12 = new SequenceActivity();{
            DefaultActivity act111 = new DefaultActivity("1211");
            seq12.setChildActivities(new Activity[]{act111});
          }
          SequenceActivity seq122 = new SequenceActivity();/*{
            DefaultActivity act111 = new DefaultActivity("1212");
            DefaultActivity act112 = new DefaultActivity("1213");
            seq122.setChildActivities(new Activity[]{act111, act112});
          }*/
          all12.setChildActivities(new Activity[]{seq12, seq122});
        }       
       
        all1.setChildActivities(new Activity[]{seq11, all12});
      }
     
View Full Code Here

*/
  
public class AllActivityAdapter implements Adapter{
 
  public Object convert(Object src, java.util.Hashtable keyedContext) throws Exception{
    AllActivity srcAct = (AllActivity)src;
   
    tFlow destAct = new tFlow();
    destAct.setname_Attribute(new XNCName(srcAct.getName().getText().replace(' ', '_')));
   
    Vector childActivities = srcAct.getChildActivities();
    for(Enumeration enumeration = childActivities.elements(); enumeration.hasMoreElements();){
      Object item = (Object)enumeration.nextElement();
      Adapter adpt = ProcessDefinitionAdapter.getAdapter(item.getClass());
      if(adpt==null){
        continue;
View Full Code Here

*/
  
public class AllActivityAdapter extends ComplexActivityAdapter{
 
  protected ComplexActivity createDestinationActivity() {
    return new AllActivity();
  }
View Full Code Here

        rm.setEndpoint(approver.getEmpCode());
        rm.fill(instance);
       
        // 결재 -> 합의
        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())) {
View Full Code Here

      rm.setEndpoint(approver.getEmpCode());
      rm.fill(instance);
     
      // 결재 -> 합의
      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())) {
View Full Code Here

        rm.setEndpoint(approver.getEmpCode());
        rm.fill(instance);
       
        // 결재 -> 합의
        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())) {
View Full Code Here

TOP

Related Classes of org.uengine.kernel.AllActivity

Copyright © 2018 www.massapicom. 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.