亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? processinstance.java

?? jboss jpdl-3.2.2 nolib
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
  public LoggingInstance getLoggingInstance() {
    return (LoggingInstance) getInstance(LoggingInstance.class);
  }

  // operations ///////////////////////////////////////////////////////////////

  /**
   * instructs the main path of execution to continue by taking the default 
   * transition on the current node.
   * @throws IllegalStateException if the token is not active.
   */
  public void signal() {
    if ( hasEnded() ) {
      throw new IllegalStateException("couldn't signal token : token has ended");
    }
    rootToken.signal();
  }

  /**
   * instructs the main path of execution to continue by taking the specified 
   * transition on the current node.
   * @throws IllegalStateException if the token is not active.
   */
  public void signal(String transitionName) {
    if ( hasEnded() ) {
      throw new IllegalStateException("couldn't signal token : token has ended");
    }
    rootToken.signal(transitionName);
  }

  /**
   * instructs the main path of execution to continue by taking the specified 
   * transition on the current node.
   * @throws IllegalStateException if the token is not active.
   */
  public void signal( Transition transition ) {
    if ( hasEnded() ) {
      throw new IllegalStateException("couldn't signal token : token has ended");
    }
    rootToken.signal(transition);
  }

  /**
   * ends (=cancels) this process instance and all the tokens in it.
   */
  public void end() {
    // end the main path of execution
    rootToken.end();
    
    if (end==null) {
      // mark this process instance as ended
      end = Clock.getCurrentTime();
      
      // fire the process-end event
      ExecutionContext executionContext = new ExecutionContext(rootToken);
      processDefinition.fireEvent(Event.EVENTTYPE_PROCESS_END, executionContext);
      
      // add the process instance end log
      rootToken.addLog(new ProcessInstanceEndLog());

      // check if this process was started as a subprocess of a super process
      if (superProcessToken!=null) {
        addCascadeProcessInstance(superProcessToken.getProcessInstance());

        
        ExecutionContext superExecutionContext = new ExecutionContext(superProcessToken);
        superExecutionContext.setSubProcessInstance(this);
        superProcessToken.signal(superExecutionContext);
      }

      // make sure all the timers for this process instance are cancelled when the process end updates get saved in the database.
      // TODO route this directly through the jobSession.  just like the suspend and resume.
      // NOTE Only timers should be deleted, messages-type of jobs should be kept. 
      SchedulerService schedulerService = (SchedulerService) Services.getCurrentService(Services.SERVICENAME_SCHEDULER, false);
      if (schedulerService!=null) schedulerService.deleteTimersByProcessInstance(this);
    }
  }

  /**
   * suspends this execution.  This will make sure that tasks, timers and 
   * messages related to this process instance will not show up in database 
   * queries.
   * @see #resume() 
   */
  public void suspend() {
    isSuspended = true;
    rootToken.suspend();
  }

  /**
   * resumes a suspended execution.  All timers that have been suspended might fire 
   * if the duedate has been passed.  If an admin resumes a process instance, the option 
   * should be offered to update, remove and create the timers and messages related to 
   * this process instance.
   * @see #suspend()
   */
  public void resume() {
    isSuspended = false;
    rootToken.resume();
  }

  // runtime actions //////////////////////////////////////////////////////////

  /**
   * adds an action to be executed upon a process event in the future.
   */
  public RuntimeAction addRuntimeAction( RuntimeAction runtimeAction ) {
    if (runtimeAction == null) throw new IllegalArgumentException("can't add a null runtimeAction to a process instance");
    if (runtimeActions == null) runtimeActions = new ArrayList();
    runtimeActions.add(runtimeAction);
    runtimeAction.processInstance = this;
    return runtimeAction;
  }

  /**
   * removes a runtime action.
   */
  public RuntimeAction removeRuntimeAction( RuntimeAction runtimeAction ) {
    RuntimeAction removedRuntimeAction = null;
    if (runtimeAction == null)
      throw new IllegalArgumentException("can't remove a null runtimeAction from an process instance");
    if (runtimeActions != null) {
      if (runtimeActions.remove(runtimeAction)) {
        removedRuntimeAction = runtimeAction;
        runtimeAction.processInstance = null;
      }
    }
    return removedRuntimeAction;
  }

  /**
   * is the list of all runtime actions.
   */
  public List getRuntimeActions() {
    return runtimeActions;
  }

  // various information retrieval methods ////////////////////////////////////

  /**
   * tells if this process instance is still active or not.
   */
  public boolean hasEnded() {
    return ( end != null );
  }
  
  /**
   * calculates if this process instance has still options to continue. 
   */
  public boolean isTerminatedImplicitly() {
    boolean isTerminatedImplicitly = true;
    if ( end == null ) {
      isTerminatedImplicitly = rootToken.isTerminatedImplicitly();
    }
    return isTerminatedImplicitly;
  }
  
  /**
   * looks up the token in the tree, specified by the slash-separated token path.
   * @param tokenPath is a slash-separated name that specifies a token in the tree.
   * @return the specified token or null if the token is not found.
   */
  public Token findToken(String tokenPath) {
    return ( rootToken!=null ? rootToken.findToken(tokenPath) : null );
  }
  
  /**
   * collects all instances for this process instance.
   */
  public List findAllTokens() {
    List tokens = new ArrayList();
    tokens.add(rootToken);
    rootToken.collectChildrenRecursively(tokens);
    return tokens;
  }

  void addCascadeProcessInstance(ProcessInstance cascadeProcessInstance) {
    if (cascadeProcessInstances==null) {
      cascadeProcessInstances = new ArrayList();
    }
    cascadeProcessInstances.add(cascadeProcessInstance);
  }
  
  public Collection removeCascadeProcessInstances() {
    Collection removed = cascadeProcessInstances;
    cascadeProcessInstances = null;
    return removed;
  }
  
  // equals ///////////////////////////////////////////////////////////////////
  // hack to support comparing hibernate proxies against the real objects
  // since this always falls back to ==, we don't need to overwrite the hashcode
  public boolean equals(Object o) {
    return EqualsUtil.equals(this, o);
  }
  
  // getters and setters //////////////////////////////////////////////////////

  public long getId() {
    return id;
  }
  public Token getRootToken() {
    return rootToken;
  }
  public Date getStart() {
    return start;
  }
  public Date getEnd() {
    return end;
  }
  public Map getInstances() {
    return instances;
  }
  public ProcessDefinition getProcessDefinition() {
    return processDefinition;
  }
  public Token getSuperProcessToken() {
    return superProcessToken;
  }
  public void setSuperProcessToken(Token superProcessToken) {
    this.superProcessToken = superProcessToken;
  }
  public boolean isSuspended() {
    return isSuspended;
  }
  public int getVersion() {
    return version;
  }
  public void setVersion(int version) {
    this.version = version;
  }
  public void setEnd(Date end) {
    this.end = end;
  }
  public void setProcessDefinition(ProcessDefinition processDefinition) {
    this.processDefinition = processDefinition;
  }
  public void setRootToken(Token rootToken) {
    this.rootToken = rootToken;
  }
  public void setStart(Date start) {
    this.start = start;
  }
  /** a unique business key */
  public String getKey() {
    return key;
  }
  /** set the unique business key */
  public void setKey(String key) {
    this.key = key;
  }

  // private static Log log = LogFactory.getLog(ProcessInstance.class);
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久aaaa樱花| 成人国产亚洲欧美成人综合网| 欧美最猛性xxxxx直播| 最新不卡av在线| 91亚洲精华国产精华精华液| 一区二区三区鲁丝不卡| 欧美日韩成人综合| 日本亚洲免费观看| 久久久噜噜噜久噜久久综合| 成人禁用看黄a在线| 在线观看日韩电影| 中文字幕欧美一区| 欧洲一区二区三区在线| 五月婷婷综合网| 精品国产91乱码一区二区三区| 97超碰欧美中文字幕| 亚洲免费av高清| 欧美一区二区精品在线| 成人免费av网站| 亚洲一区视频在线| 欧美白人最猛性xxxxx69交| 国产一区三区三区| 亚洲女人****多毛耸耸8| 欧美丰满嫩嫩电影| www.亚洲激情.com| 日本亚洲三级在线| 综合久久一区二区三区| 欧美精品tushy高清| 成人激情免费视频| 日本一不卡视频| 亚洲欧洲日产国产综合网| 欧美精品一级二级三级| 91蜜桃传媒精品久久久一区二区| 亚洲综合视频在线观看| 欧美精品电影在线播放| 国产一区二区三区最好精华液| 国产精品不卡在线| 欧美一区二区三区公司| 91日韩在线专区| 激情文学综合网| 亚洲成a人片在线不卡一二三区 | 日本道免费精品一区二区三区| 男人的天堂久久精品| 亚洲人妖av一区二区| 亚洲精品一区二区三区香蕉| 欧美美女喷水视频| 99久久精品国产导航| 国产精品一区二区久久不卡| 日本亚洲一区二区| 亚洲影视在线观看| 亚洲人成精品久久久久| 国产日韩精品一区二区三区| 日韩欧美一卡二卡| 欧美日韩免费不卡视频一区二区三区| 国产a级毛片一区| 精品亚洲porn| 日韩精品视频网站| 亚洲国产成人porn| 一区二区三区精品视频| 亚洲图片欧美激情| 欧美极品另类videosde| 久久久精品人体av艺术| 精品国产污污免费网站入口 | 亚洲成人一二三| 亚洲激情成人在线| 亚洲人成网站影音先锋播放| 国产精品嫩草99a| 中文在线一区二区 | 亚洲激情六月丁香| 亚洲欧美一区二区三区国产精品| 一区在线观看免费| 国产精品私人影院| 国产精品免费观看视频| 国产精品每日更新| 国产精品久久国产精麻豆99网站| 国产亚洲综合av| 国产精品欧美极品| 国产精品不卡在线| 一区二区三区中文字幕| 亚洲国产日韩a在线播放性色| 亚洲二区在线观看| 偷窥少妇高潮呻吟av久久免费| 亚洲国产中文字幕在线视频综合 | 国产精品一区一区| 夫妻av一区二区| 91在线视频网址| 91碰在线视频| 欧美日韩精品一区二区三区| 日韩三级.com| www欧美成人18+| 最新国产精品久久精品| 一区二区成人在线观看| 午夜久久福利影院| 极品少妇一区二区三区精品视频 | 麻豆中文一区二区| 国产精品一区2区| 99热这里都是精品| 欧美乱妇15p| 久久综合视频网| 国产精品三级av| 亚洲国产欧美在线| 精品亚洲porn| 色综合天天做天天爱| 制服丝袜成人动漫| 欧美韩日一区二区三区四区| 一区二区三区中文字幕| 久久精品999| 一本久久a久久免费精品不卡| 欧美国产1区2区| 亚洲中国最大av网站| 国产一区二区三区四区五区入口| 97久久精品人人爽人人爽蜜臀| 欧美日韩精品综合在线| 国产欧美日韩麻豆91| 亚洲123区在线观看| 成人性视频免费网站| 精品视频1区2区3区| 久久久久久久久免费| 亚洲黄色在线视频| 黄一区二区三区| 在线看不卡av| 国产欧美一区二区三区沐欲| 日韩精品91亚洲二区在线观看| 丁香激情综合国产| 日韩一区二区三区在线观看| 综合久久综合久久| 精品亚洲成av人在线观看| 欧美写真视频网站| 欧美高清在线一区二区| 免费欧美日韩国产三级电影| 91浏览器入口在线观看| 久久蜜桃一区二区| 亚洲成人三级小说| av资源网一区| 久久综合色播五月| 亚洲v日本v欧美v久久精品| 99国产精品久| 久久久久久久久久看片| 琪琪一区二区三区| 91国偷自产一区二区开放时间| 国产精品午夜在线观看| 韩国视频一区二区| 在线成人小视频| 亚洲综合丁香婷婷六月香| 成人一级黄色片| 亚洲精品在线电影| 蜜臀av性久久久久蜜臀av麻豆| 欧美视频一区二区在线观看| 亚洲人成在线播放网站岛国| 波多野结衣在线一区| 国产欧美日韩激情| 国产精品18久久久久| 久久综合九色综合97_久久久| 成人精品小蝌蚪| 日本一区二区在线不卡| 国产精品一区二区在线播放| 欧美电影免费观看高清完整版在线| 偷拍一区二区三区四区| 欧美日韩成人一区二区| 午夜免费欧美电影| 欧美精品99久久久**| 五月婷婷久久丁香| 欧美日韩精品免费| 亚洲国产精品一区二区www在线| 色婷婷香蕉在线一区二区| 亚洲区小说区图片区qvod| 91视频国产资源| 亚洲视频在线观看一区| 99久久99久久精品国产片果冻| 亚洲色图都市小说| 一本在线高清不卡dvd| 一区二区三区精品视频| 欧美日韩亚洲国产综合| 五月婷婷欧美视频| 日韩久久精品一区| 毛片av一区二区| 久久精品男人天堂av| 国产不卡高清在线观看视频| 国产精品女人毛片| 91蝌蚪porny| 香蕉成人啪国产精品视频综合网| 8x福利精品第一导航| 奇米亚洲午夜久久精品| 欧美成人官网二区| 国产91精品免费| 成人欧美一区二区三区1314| 欧洲一区二区av| 免费成人美女在线观看.| 久久综合999| thepron国产精品| 亚洲一区二区四区蜜桃| 欧美电影免费提供在线观看| 成人激情小说网站| 亚洲成人1区2区| 久久麻豆一区二区| 99久久精品国产一区二区三区 | 91福利在线播放| 午夜欧美电影在线观看| 国产日韩欧美不卡在线| 欧美三级在线视频|