Package com.starflow.wf.engine.model.elements

Examples of com.starflow.wf.engine.model.elements.FreeActElement


    List<FreeActElement> events = new CopyOnWriteArrayList<FreeActElement>();
    List list = actEl.selectNodes(StarFlowNames.ACT_FREE_ACT);
    Iterator iter=list.iterator();
        while(iter.hasNext()){
            Element el = (Element)iter.next();
            FreeActElement e = new FreeActElement();
            e.setId(el.attributeValue(StarFlowNames.ACT_FREE_ACT_ID));
            e.setName(el.attributeValue(StarFlowNames.ACT_FREE_ACT_NAME));
            e.setType(el.attributeValue(StarFlowNames.ACT_FREE_ACT_TYPE));
            events.add(e);
        }
        return events;
  }
View Full Code Here


        String _actDefId = tx.getTo();
        ActivityElement ax = processDefine.getProcessObject().getActivitys().get(_actDefId);
        if(isOnlyLimitedManualAct && !Constants.ACT_TYPE_MANUL.equals(ax.getType())) {
          continue;
        }
        FreeActElement freeActXml = new FreeActElement();
        freeActXml.setId(ax.getId());
        freeActXml.setName(ax.getName());
        freeActXml.setType(ax.getType());
        actEls.add(freeActXml);
      }
    } else if(Constants.Free_Act_strategy_two.equalsIgnoreCase(strategy)) {
      //在指定活动列表范围内自由
      activityXml.getFreeActs();
    } else if(Constants.Free_Act_strategy_One.equalsIgnoreCase(strategy)) {
      //在流程范围内任意自由
      Collection<ActivityElement> collect = processDefine.getProcessObject().getActivitys().values();
      for(ActivityElement ax : collect) {
        if(isOnlyLimitedManualAct && !Constants.ACT_TYPE_MANUL.equals(ax.getType())) {
          continue;
        }
        FreeActElement freeActXml = new FreeActElement();
        freeActXml.setId(ax.getId());
        freeActXml.setName(ax.getName());
        freeActXml.setType(ax.getType());
        actEls.add(freeActXml);
      }
    }
   
    return actEls;
View Full Code Here

TOP

Related Classes of com.starflow.wf.engine.model.elements.FreeActElement

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.