Examples of WFEngine


Examples of com.exedosoft.wf.WFEngine

      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());
          try {
            DAOUtil.BUSI().store(this);
          } catch (ExedoException e) {
            // TODO Auto-generated catch block
View Full Code Here

Examples of com.exedosoft.wf.WFEngine

    if (ptPI.getCorrInstance() == null) {
      this.setEchoValue(I18n.instance().get("当前工作流上下文丢失,请重新操作!"));
      return null;
    }
   
    WFEngine  engine = WFEngineFactory.getWFEngine();
   
    ProcessInstance pi = null;
    try {
      pi = engine.loadProcessInstance(ptPI.getCorrInstance().getUid());
    } catch (WFException e2) {
      // TODO Auto-generated catch block
      e2.printStackTrace();
    }
   
View Full Code Here

Examples of com.exedosoft.wf.WFEngine

    }
    ProcessTemplate pt = this.service.getProcessTemplate();
    BOInstance corrInstance = pt.getDoBO().getCorrInstance();
    if ( !ProcessInstance.isExistsOfInstanceUid(corrInstance.getUid())) {

      WFEngine wfi = WFEngineFactory.getWFEngine();

      try {

        wfi.initProcess(pt);
      } catch (WFException e) {
        e.printStackTrace();
        this.setEchoValue(e.getLocalizedMessage());
        return NO_FORWARD;
      }
View Full Code Here

Examples of com.exedosoft.wf.WFEngine

    Transaction t = new Transaction(service.getBo().getDataBase());
    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());
      t.rollback();
      return NO_FORWARD;
View Full Code Here

Examples of com.exedosoft.wf.WFEngine

    if (ptPI.getCorrInstance() == null) {
      this.setEchoValue(I18n.instance().get("当前工作流上下文丢失,请重新操作!"));
      return null;
    }
   
    WFEngine  engine = WFEngineFactory.getWFEngine();
   
    ProcessInstance pi = null;
    try {
      pi = engine.loadProcessInstance(ptPI.getCorrInstance().getUid());
    } catch (WFException e2) {
      // TODO Auto-generated catch block
      e2.printStackTrace();
    }
   
View Full Code Here

Examples of com.exedosoft.wf.WFEngine

   */
  private static final long serialVersionUID = -4748534122977819475L;

  public String excute() throws ExedoException {

    WFEngine wfi = WFEngineFactory.getWFEngine();
    if (service.getProcessTemplate() == null) {
      this.setEchoValue(I18n.instance().get("服务未定义工作流模板"));
      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();
        }
      }
    }

    // do.wfi.processinstance.browse.findbyinstanceUid
    // if(wfuid==null && pt.getDoBO2()!=null && pt.getDo)

    if (wfUid == null) {
      try {
        wfi.startProcess(pt);
      } catch (WFException e) {
        e.printStackTrace();
        this.setEchoValue(e.getLocalizedMessage());
        return NO_FORWARD;
      }
    } else {
      ProcessInstance pi = null;
      try {
        pi = wfi.loadProcessInstance(wfUid);
        NodeInstance ni = pi.getFirstActivityNode();
        ni.perform();
      } catch (WFException e) {
        e.printStackTrace();
        this.setEchoValue(e.getLocalizedMessage());
View Full Code Here

Examples of com.exedosoft.wf.WFEngine

    BOInstance bi = pt.getDoBO().getCorrInstance();
    String wfUid = bi.getValue("wf_uid");
    if(wfUid==null){
      wfUid = bi.getValue("wf_id");
    }
    WFEngine wfi = WFEngineFactory.getWFEngine();
    if(wfUid != null){
   
      ProcessInstance pi = null;
      try {
        pi = wfi.loadProcessInstance(wfUid);
        pi.withDrawStartNode();
      } catch (WFException e) {
        e.printStackTrace();
        this.setEchoValue(e.getLocalizedMessage());
        return NO_FORWARD;
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.