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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? action.java

?? jboss jpdl-3.2.2 nolib
?? JAVA
字號:
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2005, JBoss Inc., and individual contributors as indicated
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.jbpm.graph.def;

import java.io.Serializable;
import java.util.Map;

import org.dom4j.Element;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.instantiation.Delegation;
import org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator;
import org.jbpm.jpdl.xml.JpdlXmlReader;
import org.jbpm.jpdl.xml.Parsable;
import org.jbpm.util.EqualsUtil;

public class Action implements ActionHandler, Parsable, Serializable {

  private static final long serialVersionUID = 1L;
  
  long id = 0;
  protected String name = null;
  protected boolean isPropagationAllowed = true;
  protected boolean isAsync = false;
  protected boolean isAsyncExclusive = false;
  protected Action referencedAction = null;
  protected Delegation actionDelegation  = null;
  protected String actionExpression = null;
  protected Event event = null;
  protected ProcessDefinition processDefinition = null;

  public Action() {
  }

  public Action(Delegation actionDelegate) {
    this.actionDelegation = actionDelegate;
  }
  
  public String toString() {
    String toString = null;
    if (name!=null) {
      toString = "action["+name+"]";
    } else if (actionExpression!=null) {
      toString = "action["+actionExpression+"]";
    } else {
      String className = getClass().getName(); 
      className = className.substring(className.lastIndexOf('.')+1);
      if (name!=null) {
        toString = className+"("+name+")";
      } else {
        toString = className+"("+Integer.toHexString(System.identityHashCode(this))+")";
      }
    }
    return toString;
  }

  public void read(Element actionElement, JpdlXmlReader jpdlReader) {
    String expression = actionElement.attributeValue("expression");
    if (expression!=null) {
      actionExpression = expression;

    } else if (actionElement.attribute("ref-name")!=null) {
      jpdlReader.addUnresolvedActionReference(actionElement, this);

    } else if (actionElement.attribute("class")!=null) {
      actionDelegation = new Delegation();
      actionDelegation.read(actionElement, jpdlReader);
      
    } else {
      jpdlReader.addWarning("action does not have class nor ref-name attribute "+actionElement.asXML());
    }

    String acceptPropagatedEvents = actionElement.attributeValue("accept-propagated-events");
    if ("false".equalsIgnoreCase(acceptPropagatedEvents)
        || "no".equalsIgnoreCase(acceptPropagatedEvents) 
        || "off".equalsIgnoreCase(acceptPropagatedEvents)) {
      isPropagationAllowed = false;
    }

    String asyncText = actionElement.attributeValue("async");
    if ("true".equalsIgnoreCase(asyncText)) {
      isAsync = true;
    } else if ("exclusive".equalsIgnoreCase(asyncText)) {
      isAsync = true;
      isAsyncExclusive = true;
    }
  }

  public void write(Element actionElement) {
    if (actionDelegation!=null) {
      actionDelegation.write(actionElement);
    }
  }

  public void execute(ExecutionContext executionContext) throws Exception {
    if (referencedAction!=null) {
      referencedAction.execute(executionContext);

    } else if (actionExpression!=null) {
      JbpmExpressionEvaluator.evaluate(actionExpression, executionContext);

    } else if (actionDelegation!=null) {
      ActionHandler actionHandler = (ActionHandler)actionDelegation.getInstance();
      actionHandler.execute(executionContext);
    }
  }

  public void setName(String name) {
    // if the process definition is already set
    if (processDefinition!=null) {
      // update the process definition action map
      Map actionMap = processDefinition.getActions();
      // the != string comparison is to avoid null pointer checks.  it is no problem if the body is executed a few times too much :-)
      if ( (this.name != name)
           && (actionMap!=null) ) {
        actionMap.remove(this.name);
        actionMap.put(name, this);
      }
    }

    // then update the name
    this.name = name;
  }
  
  // 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 boolean acceptsPropagatedEvents() {
    return isPropagationAllowed;
  }

  public boolean isPropagationAllowed() {
    return isPropagationAllowed;
  }
  public void setPropagationAllowed(boolean isPropagationAllowed) {
    this.isPropagationAllowed = isPropagationAllowed;
  }

  public long getId() {
    return id;
  }
  public String getName() {
    return name;
  }
  public Event getEvent() {
    return event;
  }
  public ProcessDefinition getProcessDefinition() {
    return processDefinition;
  }
  public void setProcessDefinition(ProcessDefinition processDefinition) {
    this.processDefinition = processDefinition;
  }
  public Delegation getActionDelegation() {
    return actionDelegation;
  }
  public void setActionDelegation(Delegation instantiatableDelegate) {
    this.actionDelegation = instantiatableDelegate;
  }
  public Action getReferencedAction() {
    return referencedAction;
  }
  public void setReferencedAction(Action referencedAction) {
    this.referencedAction = referencedAction;
  }
  public boolean isAsync() {
    return isAsync;
  }
  public boolean isAsyncExclusive() {
    return isAsyncExclusive;
  }
  public String getActionExpression() {
    return actionExpression;
  }
  public void setActionExpression(String actionExpression) {
    this.actionExpression = actionExpression;
  }
  public void setEvent(Event event) {
    this.event = event;
  }
  public void setAsync(boolean isAsync) {
    this.isAsync = isAsync;
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线免费观看日韩欧美| 91美女福利视频| 五月开心婷婷久久| 亚洲一级二级三级在线免费观看| 最新热久久免费视频| 国产精品欧美一级免费| 综合久久久久久| 亚洲一区在线观看免费| 性久久久久久久| 欧美aⅴ一区二区三区视频| 日本大胆欧美人术艺术动态| 美国欧美日韩国产在线播放| 激情综合色综合久久| 国产精品资源在线观看| 成人高清视频在线| 欧美三区免费完整视频在线观看| 色久优优欧美色久优优| 欧美高清视频一二三区| 精品捆绑美女sm三区| 国产精品免费观看视频| 一区二区三区在线视频播放| 天天做天天摸天天爽国产一区| 琪琪一区二区三区| 成人一道本在线| 欧美三级韩国三级日本一级| 日韩精品一区国产麻豆| 亚洲天天做日日做天天谢日日欢 | 欧美日韩小视频| 欧美一级日韩不卡播放免费| 国产蜜臀97一区二区三区| 亚洲六月丁香色婷婷综合久久| 亚洲一级二级三级| 国产一区不卡在线| 欧洲一区二区三区免费视频| 日韩免费观看2025年上映的电影| 国产亚洲精品中文字幕| 亚洲一区二区在线免费看| 精品一区二区三区在线视频| 91麻豆国产香蕉久久精品| 日韩视频免费直播| 亚洲另类在线视频| 国产精品996| 欧美一区二区精品在线| 国产精品毛片大码女人| 蜜臀av性久久久久蜜臀av麻豆| 99国产精品99久久久久久| 日韩午夜激情电影| 亚洲成a人片在线不卡一二三区| 国产高清不卡一区| 91精品在线麻豆| 亚洲另类色综合网站| 国产99久久久国产精品潘金 | 久久久99免费| 视频一区视频二区中文| 91极品视觉盛宴| 最新国产精品久久精品| 国产精品一级在线| 欧美老女人在线| 亚洲五月六月丁香激情| 99久久婷婷国产综合精品| 欧美国产成人精品| 国产一区二区不卡在线| 日韩美女视频一区二区在线观看| 性久久久久久久久久久久| 日本高清视频一区二区| 国产精品久久久久婷婷二区次| 国产一区二区91| 久久综合色之久久综合| 激情小说欧美图片| 久久免费精品国产久精品久久久久| 午夜久久久久久久久久一区二区| 在线影院国内精品| 亚洲一区二区三区在线看| 一本久道中文字幕精品亚洲嫩| 中文字幕字幕中文在线中不卡视频| 国产精品123| 中文字幕日韩欧美一区二区三区| 成人av电影免费观看| 国产精品传媒视频| 91女神在线视频| 一区二区三区91| 欧美日韩一级片在线观看| 午夜av一区二区| 日韩视频在线你懂得| 国产剧情一区在线| 国产精品久久久久永久免费观看| 99re这里都是精品| 午夜视频在线观看一区二区三区| 欧美另类久久久品| 国产麻豆精品95视频| 国产精品入口麻豆原神| 91视频精品在这里| 日本成人在线一区| 久久这里都是精品| 91同城在线观看| 日韩电影一区二区三区四区| 精品久久久久久最新网址| 成人综合日日夜夜| 亚洲国产成人高清精品| 精品少妇一区二区三区在线播放 | 日本一区中文字幕 | 99精品黄色片免费大全| 亚洲综合一区二区| 欧美成人午夜电影| 97精品久久久久中文字幕 | 亚洲国产精品久久久久婷婷884 | 一区二区三区在线观看视频| 欧美精品成人一区二区三区四区| 国产寡妇亲子伦一区二区| 亚洲精品ww久久久久久p站| 日韩欧美美女一区二区三区| 成人国产亚洲欧美成人综合网| 亚洲一区二区三区美女| 久久久三级国产网站| 欧美在线一二三四区| 国产裸体歌舞团一区二区| 一区二区三区av电影| 久久久另类综合| 91精品国产综合久久久蜜臀粉嫩| 白白色 亚洲乱淫| 久久99精品久久久久久久久久久久| 亚洲免费观看高清完整版在线观看熊| 欧美一区二区三区四区视频| 91年精品国产| 丁香婷婷综合色啪| 国内精品在线播放| 性做久久久久久免费观看欧美| 国产精品乱码人人做人人爱| 精品国产乱码久久久久久久| 欧美巨大另类极品videosbest| 成人va在线观看| 国产在线精品国自产拍免费| 五月天激情综合| 亚洲一区欧美一区| 亚洲三级久久久| 欧美国产视频在线| 久久久久久久久久久久电影| 91精品国产综合久久精品图片 | 日韩欧美中文一区| 在线观看av一区| 色综合久久久久久久| 不卡一卡二卡三乱码免费网站| 国产美女视频一区| 奇米精品一区二区三区在线观看 | 99久久国产综合精品色伊| 韩国精品在线观看| 精品一区二区三区在线播放视频| 日韩在线一区二区三区| 亚洲国产精品综合小说图片区| 亚洲精品一卡二卡| 亚洲午夜羞羞片| 午夜电影久久久| 蜜臀av一区二区在线观看| 麻豆国产91在线播放| 国产一区二区免费在线| 国产精品资源在线| 成人白浆超碰人人人人| 91毛片在线观看| 在线免费观看成人短视频| 欧美日韩视频在线第一区 | 亚洲va韩国va欧美va| 亚洲成人av一区二区三区| 精品日韩99亚洲| 91精品综合久久久久久| 91精品视频网| 亚洲精品一线二线三线| 国产精品萝li| 亚洲一区二区三区国产| 亚洲人成伊人成综合网小说| 欧美国产丝袜视频| 91美女在线看| 国产精品入口麻豆九色| 久久精品久久久精品美女| 91麻豆国产精品久久| 久久久久九九视频| 美女被吸乳得到大胸91| 欧美日韩精品一区二区天天拍小说| 国产欧美一区二区精品性色| 毛片av中文字幕一区二区| 欧美三区免费完整视频在线观看| 亚洲欧洲在线观看av| 国产精品99久久久| 亚洲精品一区二区三区香蕉| 日韩av一级片| 欧美高清www午色夜在线视频| 亚洲精品乱码久久久久久久久| 国产iv一区二区三区| 国产午夜精品久久| 国内精品久久久久影院色 | 国产喂奶挤奶一区二区三区| 美女视频网站黄色亚洲| 在线91免费看| 手机精品视频在线观看| 欧美精品三级在线观看| 午夜电影久久久| 在线播放中文一区| 天天综合色天天综合色h| 欧美日韩一区二区三区高清 | 日韩欧美在线影院| 久久精品国产99|