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

  • 相关阅读:
    第194场周赛
    刷leetcode的心得
    91. Decode Ways
    23. Merge k Sorted Lists
    19. Remove Nth Node From End of List
    21. Merge Two Sorted Lists
    222. Count Complete Tree Nodes
    958. Check Completeness of a Binary Tree
    课程学习总结报告
    结合中断上下文切换和进程上下文切换分析Linux内核一般执行过程
  • 原文地址:https://www.cnblogs.com/loveliqun/p/13863888.html
Copyright © 2011-2022 走看看