zoukankan      html  css  js  c++  java
  • EAS 流程终止代码

    public void actionAbort_actionPerformed(ActionEvent e) throws Exception{
      checkSelected();

      if (checkOperateProcessPermission("wf_report_Monitor_OperateAbort")) {
        if (MsgBox.showConfirm2(this, ReportResourceUtil.getReportMultiLanguageResource("ABORT_CONFIRM")) != 0)
          return;
        String reason = InputBox.read();
        if (reason == null)
        return;
        try {
          int size = this.tblMain.getSelectManager().size();
          IWfUtil util = (IWfUtil)RpcProxy.wrapRequired(IWfUtil.class, WfUtil.class.getName());

          for (int i = 0; i < size; ++i) {
            KDTSelectBlock sb = this.tblMain.getSelectManager().get(i);
            for (int j = sb.getTop(); j <= sb.getBottom(); ++j) {
              String state = getProcessInstanceState(j);
              if ((!(state.equals(WfState.SUSPENDED.getValue()))) && (!(state.equals(WfState.BLOCKED.getValue()))) && (!(state.equals(WfState.RUNNING.getValue())))){
                continue;
              }
              util.abort(getProcessInstanceID(j), reason);
            }
          }
          refreshList();
          initButtonState();
        } catch (Exception e1) {
          handleException("abortProcessErrMsg");
        }  
      }else{
        MsgBox.showWarning(this, ReportResourceUtil.getReportMultiLanguageResource("DonotSuspended"));
      }
    }

  • 相关阅读:
    DataGridView设置不自动显示数据库中未绑定的列
    [转载]sed 简明教程
    FreeMarker template error!
    tomcat共享lib里面的jar包
    java命令
    实验报告四
    实验报告三
    实验报告二
    实验一
    网络对抗技术作业
  • 原文地址:https://www.cnblogs.com/loveliqun/p/13863888.html
Copyright © 2011-2022 走看看