Package com.exedosoft.wf.pt

Examples of com.exedosoft.wf.pt.ProcessTemplate


     */
    if (getNodeType() != null
        && (getNodeType().intValue() == PTNode.TYPE_SUBPROCESS)) {
      String subFlowName = this.getNodeExt1();
      if (subFlowName != null && !subFlowName.trim().equals("")) {
        ProcessTemplate subPT = ProcessTemplate
            .getPTByName(subFlowName);
        if (subPT != null) {
          WFEngine wfi = WFEngineFactory.getWFEngine();
          ProcessInstance subPI = wfi.startProcess(subPT);
          this.setNodeExt2(subPI.getObjUid());
View Full Code Here


      } else if (ni.getExeStatus().intValue() == NodeInstance.STATUS_FINISH) {
        nodeIMap.put(ni.getNode().getObjUid(), ni);
      }
    }

    ProcessTemplate pt = pi.getProcessTemplate();

    StringBuilder xml = new StringBuilder("<wf>  <processtemplate name='")
        .append(pt.getPtName()).append("'>");
    StringBuilder strNodeList = new StringBuilder("<nodes>");
    StringBuilder strFlowList = new StringBuilder("<transitions>");

    for (Iterator<PTNode> it = pt.retrieveNodes().iterator(); it.hasNext();) {
      PTNode aNode = it.next();
      String autoServiceName = "";
      String deciType = "";
      String authType = "";
      if (aNode.getAutoExcutesService() != null) {
View Full Code Here

      service.invokeUpdate();
    } catch (ExedoException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
    ProcessTemplate pt = this.service.getProcessTemplate();
    BOInstance corrInstance = pt.getDoBO().getCorrInstance();
    if ( !ProcessInstance.isExistsOfInstanceUid(corrInstance.getUid())) {

      WFEngine wfi = WFEngineFactory.getWFEngine();

      try {
View Full Code Here

  /*
   * Test method for 'com.exedosoft.wf.wfi.WFEngineImpl.startProcess(ProcessTemplate)'
   */
  public void testStartProcess() {
    WFEngineImpl wfi = new WFEngineImpl();
    ProcessTemplate pt = ProcessTemplate.getPTByID("567888");
    try {
      wfi.startProcess(pt);
    } catch (WFException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

    BOInstance echo = new BOInstance();
    if (curPt == null) {
      this.setEchoValue(I18n.instance().get("没有选择工作流模板!"));
      return NO_FORWARD;
    }
    ProcessTemplate pt = ProcessTemplate.getPTByID(curPt.getUid());

    StringBuilder xml = new StringBuilder("<wf>  <processtemplate name='")
    .append(pt.getPtName())
    .append("'>");
    StringBuilder strNodeList = new StringBuilder("<nodes>");
    StringBuilder strFlowList = new StringBuilder("<transitions>");

    ////鏈夋椂闂存妸+鏀规帀
    for (Iterator<PTNode> it = pt.retrieveNodes().iterator(); it.hasNext();) {
      PTNode aNode = it.next();
      String autoServiceName = "";
      String deciType = "";
      String authType = "";
      if(aNode.getAutoExcutesService()!=null){
View Full Code Here

    t.begin();
    try {
      service.invokeUpdate();

      WFEngine wfi = WFEngineFactory.getWFEngine();
      ProcessTemplate pt = this.service.getProcessTemplate();
//      this.service.getProcessTemplate().getDoBO().refreshContext(arg0)
      wfi.startProcess(pt);
    } catch (Exception e) {
      e.printStackTrace();
      this.setEchoValue(e.getLocalizedMessage());
View Full Code Here

      return null;
    }

    service.invokeUpdate();

    ProcessTemplate pt = this.service.getProcessTemplate();

    String wfUid = null;

    wfUid = getWfUid(pt, wfUid);

    if (wfUid == null) {
      DOService findPI = DOService
          .getService("do.wfi.processinstance.browse.findbyinstanceUid");
      if (findPI != null) {
        String curInstnaceUid = pt.getDoBO().getCorrInstance().getUid();
        List list = findPI.invokeSelect(pt.getObjUid(), curInstnaceUid);
        if (list != null && list.size() > 0) {
          BOInstance boPI = (BOInstance) list.get(0);
          wfUid = boPI.getUid();
        }
      }
View Full Code Here

    if(service.getProcessTemplate()==null){
      this.setEchoValue(I18n.instance().get("服务未定义工作流模板"));
      return null;
    }
    ProcessTemplate pt = this.service.getProcessTemplate()
    BOInstance bi = pt.getDoBO().getCorrInstance();
    String wfUid = bi.getValue("wf_uid");
    if(wfUid==null){
      wfUid = bi.getValue("wf_id");
    }
    WFEngine wfi = WFEngineFactory.getWFEngine();
View Full Code Here

      formM.setTargetPaneModel(pm);
      DAOUtil.INSTANCE().store(formM);
     
     
      DOService ptUpdateSimple = DOService.getService("do_pt_processtemplate_update_simple");
      ProcessTemplate  pt  = ProcessTemplate.getPTByID(ptUid);
      if(pt!=null){
        pt.setDoBO(thisBO);
        pt.setPane(pm);
        DAOUtil.INSTANCE().store(pt,ptUpdateSimple);
      }

    }
View Full Code Here

TOP

Related Classes of com.exedosoft.wf.pt.ProcessTemplate

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.