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

  • 相关阅读:
    嵌入式Linux基础知识
    面向对象程序设计与原则
    设计模式之工厂模式
    设计模式之单例模式
    基于Doxygen的C/C++注释原则
    设计模式概论
    重启博客
    java 单例模式的几种写法
    CountDownLatch、CyclicBarrier
    java ConcurrentHashMap和CopyOnWriteArrayList解决并发问题
  • 原文地址:https://www.cnblogs.com/loveliqun/p/13863888.html
Copyright © 2011-2022 走看看