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"));
      }
    }

  • 相关阅读:
    [置顶] 十年博客行
    计算机编程语言年史
    初步认知MySQL metadata lock(MDL)
    Oracle语句优化规则(二)
    正则表达式
    sql server中的 SET NOCOUNT ON 的含义
    SQO (标准查询运算符)方法 & Linq To Object
    C# 扩展
    特性
    C#之泛型
  • 原文地址:https://www.cnblogs.com/loveliqun/p/13863888.html
Copyright © 2011-2022 走看看