日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

JPDL3.1规范手册

發布時間:2023/12/2 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 JPDL3.1规范手册 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
? ??????????????????? JPDL3.1規范手冊 jBPM業務程序定義語言(jBPM Process Definition Language (JPDL)) ????????????????????????? ?????? ????????????????????????????????? Blog: http://blog.csdn.net/shendl/ ? ???????????????????? ???????????????????????????????????2006-10-13 前言: 這是jBPM3.1指南第16章的翻譯。但不僅僅是簡單的翻譯而已。其中加入了我對jBPM的JPDL規范和技術的理解。我已經對其進行了全面的擴充講解! 應該說,本文是一份非常有用的jBPM的技術參考,其內容已經完全涵蓋了jBPM指南的所有要點! 它既可以作為你的jBPM和JPDL的參考速查手冊,也可以用作學習jBPM和JPDL規范的教材。它完全濃縮了jBPM官方指南的精華。 另外,我還保留了英文原文。這對于您的理解應該是有好處的。如果有的地方我理解錯了,您可以看到原文的表達。另外,對于過于簡單的英文,我就不翻譯了。這是我的風格,希望您能夠喜歡。 希望它對您能夠有所助益。希望能夠對國內jBPM的普及起到一定的推動作用,謝謝! 注意: 一、節點的命名規則 1,State等待狀態,使用被管理的對象的狀態作為名字。 2,TaskNode任務節點,使用該階段處理的任務的名字作為名字。而不使用被管理的對象的狀態。 該階段/業務程序、步驟?的任務, 最適合作為節點的名字!?因為,不能夠回到start-state。所以,使用被管理對象的狀態,在遇到start-state是會出現問題! 二、 jBPM的所有事件 1<xs:enumeration value="node-enter"/>節點進入(Start-state沒有) 2<xs:enumeration value="node-leave"/>節點離開 3<xs:enumeration value="process-start"/>業務程序實例開始 4<xs:enumeration value="process-end"/>業務程序實例結束 5<xs:enumeration value="task-create"/>任務創建 6<xs:enumeration value="task-assign"/>任務分配(AssignmentHandler) 7<xs:enumeration value="task-start"/>任務開始 8<xs:enumeration value="task-end"/>任務結束 9<xs:enumeration value="before-signal"/>執行轉向前 10<xs:enumeration value="after-signal"/>執行轉向后 11<xs:enumeration value="superstate-enter"/>進入父狀態 12<xs:enumeration value="superstate-leave"/>離開父狀態 13<xs:enumeration value="timer-create"/>創建定時器(創建和首次執行期間可以設duedate延時) 14<xs:enumeration value="subprocess-created"/>子業務程序實例創建 15<xs:enumeration value="subprocess-end"/>子業務程序實例結束 三、jBPM的WebApp管理程序使用的是: MyFaces?? -----Apache MyFaces是JavaServer(tm) Faces(JSF) Web框架 (JSR 127)的一個實現。JavaServer(tm) Faces Web框架是一個新的實現MVC模式的規范.它可以與Struts框架相媲美甚至的一些特性與觀念已經超過了Struts.【FacesIDE:Eclipse下的一個輔助開發插件】. 四、它們3個總是一起的。這可能是jboss seam容器的功能。可以組裝對象。
Class全類名 attribute optional the fully qualified classname of an implementation of org.jbpm.taskmgmt.def.AssignmentHandler
config-type配置類型 attribute optional {field|bean|constructor|configuration-property}. Specifies how the assignment-handler-object should be constructed and how the content of this element should be used as configuration information for that assignment-handler-object.
{content} optional the content of the assignment-element can be used as configuration information for your AssignmentHandler implementations. This allows the creation of reusable delegation classes. for more about delegation configuration, see Section?16.2.3, “Configuration of delegations”.
五、任務實例TaskInstance 1,TaskNode的任務,默認情況下,會在TaskNode的execute方法中自動創建所有任務的實例。 TaskNode可以有多個任務。 2,Start-state也可以有Task,但只能有一個。這叫做開始任務。 這個開始任務,必須由用戶創建。它的參與者是當前JbpmContext的參與者。 TaskInstance taskInstance = null; ??? jbpmContext.setActorId("cookie monster"); ??? // create a task to start the websale process ??? taskInstance = processInstance.getTaskMgmtInstance().createStartTaskInstance(); 3,沒有開始任務,不創建開始任務都是可以的。 正文: ?? JPDL specifies an xml schema and the mechanism to package all the process definition related files into a process archive. JPDL指定了一個XML模式,這個機制打包所有的業務程序定義相關文件進一個業務程序存檔文件。 16.1.?The process archive業務程序存檔文件 A process archive is a zip file. The central file in the process archive is processdefinition.xml. The main information in that file is the process graph. The processdefinition.xml also contains information about actions and tasks. A process archive can also contain other process related files such as classes, ui-forms for tasks, ... processdefinition.xml文件中的主要信息是業務程序圖表。也包含動作和任務的相關信息。一個業務程序存檔文件也能包含其它業務程序相關文件,例如:類,任務的UI窗體等。(一般不必包含,打包文件實際上是一個目錄*.par) 16.1.1.?Deploying a process archive部署一個業務程序存檔文件 Deploying process archives can be done in 3 ways: with the process designer tool, with an ant task or programatically. 有3種方法: 1,業務程序設計工具; 2,ant任務 3,編程方式。 Deploying a process archive with the designer tool is still under construction. 設計工具還在開發中。 Deploying a process archive with an ant task can be done as follows: <target name="deploy.par"> ?<taskdef name="deploypar" classname="org.jbpm.ant.DeployParTask"> ???<classpath --make sure the jbpm-[version].jar is in this classpath--/>? ??</taskdef>? ??<deploypar par="build/myprocess.par" /> </target> To deploy more process archives at once, use the nested fileset elements. The file attribute itself is optional. Other attributes of the ant task are: 要一次打包和發布多個業務程序定義,需要嵌套地使用fileset元素。File屬性是可選的。Ant任務的其他屬性是:
  • cfg: cfg is optional, the default value is 'hibernate.cfg.xml'. The hibernate configuration file that contains the jdbc connection properties to the database and the mapping files.
Cfg:這個是Hibernate數據源的配置文件。
  • properties: properties is optional and overwrites *all* hibernate properties as found in the hibernate.cfg.xml
屬性:可選,用來重寫hibernate.cfg.xml中所有的Hibernate屬性。不能替換一部分,只能全部替換。
  • createschema: if set to true, the jbpm database schema is created before the processes get deployed.
創建模式(數據庫表):如果設為true,那么每一次部署業務程序之前,都會重新創建jBPM初始化的數據庫表! Process archives can also be deployed programmatically with the class org.jbpm.jpdl.par.ProcessArchiveDeployer 16.1.2.?Process versioning業務程序版本 Process definitions should never change because it is extremely difficult (if not, impossible) to predict all possible side effects of process definition changes. 業務程序定義應該從不改變。因為它是非常重要的。無法預知定義改變可能帶來哪些意想不到的問題。 To get around this problem, jBPM has a sophicticated process versioning mechanism. The versioning mechanism版本機制allows multiple process definitions of the same name to coexist in the database. A process instance can be started in the latest version available at that time and it will keep on executing in that same process definition for its complete lifetime. When a newer version is deployed, newly created instances will be started in the newest version, while older process instances keep on executing in the older process defintions. 圍繞這個問題,jBPM提供了一個版本機制。版本機制允許多個同名的業務程序定義在數據庫中共存。舊版本業務程序定義的實例將按照舊的定義執行。新版本業務程序定義的實例,將始終依照新的定義執行。 Process definitions are a combination of a declaratively specified process graph and optionally, a set of related java classes. The java classes can be made available to the jBPM runtime environment in 2 ways : by making sure these classes are visible to the jBPM classloader. This usually means that you can put your delegation classes in a .jar file next to the jbpm-[version].jar. The java classes can also be included in the process archive. When you include your delegation classes in the process archive (and they are not visible to the jbpm classloader), jBPM will also apply versioning版本on these classes. More information about process classloading can be found in Section?16.2, “Delegation” 業務程序定義是特定的業務程序圖表(.xml定義文件)和一系列相關的java類(可以沒有)的結合。這些Java類都是在.xml文件中指定的。當然,還有支持jPDL的jBPM引擎。 對jBPM運行時環境可用的Java類有2種方法: 1,確信這些類對于jBPM類載入器是可用的。 Java類能夠和jBPM的jar包放在一起。或者,java類能夠放在業務程序存檔文件中。 總之,在classpath中,就對程序的類載入器可見。 When a process archive gets deployed, it creates a process definition in the jBPM database. Process definitions can be versioned on the basis of the process definition name. When a named process archive gets deployed, the deployer will assign a version number. To assign this number, the deployer will look up the highest version number for process definitions with the same name and adds 1. Unnamed process definitions will always have version number -1. 當一個業務程序存檔文件部署以后,它在JBPM數據庫中創建一個業務程序定義。部署器將分配一個版本號給業務程序定義。未命名的業務程序定義的版本號是-1。 16.1.3.?Changing deployed process definitions 更改已部署的業務程序定義 Changing process definitions after they are deployed into the jBPM database has many potential pitfalls. Therefor, this is highly discouraged. 更改已經部署在jBPM數據庫中的業務程序定義有許多潛在的風險,強烈建議你不這樣做。應該重新部署新版本的業務程序定義。 Actually實際上, there is a whole variety of possible changes that can be made to a process definition. Some of those process definitions are harmless, but some other changes have implications far beyond the expected and desirable. So please consider migrating process instances to a new definition over this approach. In case you would consider it, these are the points to take into consideration: 需要考慮的事項: Use hibernate's update: You can just load a process definition, change it and save it with the hibernate session. The hibernate session can be accessed with the method JbpmContext.getSession(). 使用Hibernate的更新:得到Hibernate Session,修改數據庫中的業務程序定義。 The second level cache: A process definition would need to be removed from the second level cache after you've updated an existing process definition. See also Section?7.10, “Second level cache” 二級緩存:更改后,必須將業務程序定義從二級緩存中刪除。原來使用二級緩存是因為基本上業務程序定義很少更改。 16.1.4.?Migrating process instances移植業務程序實例 (尚未開發) An alternative approach to changing process definitions might be to convert the executions to a new process definition. Please take into account that this is not trivial due to the long-lived nature of business processes. Currently, this is an experimental area so for which there are not yet much out-of-the-box support. 一種可選的改變業務程序定義的方法,可能是把原來業務程序實例轉變為依照新的業務程序定義。這樣做的理由是,長生命周期的業務程序實例。 如,CMS系統的新聞采集、提交、歸檔。所有發布中的文檔,都是未結束的工作流管理的對象。如果該條工作流的定義發生了變化。那么,非常有可能需要把執行中的大量業務程序實例都發出去。 這是一個實驗領域,還沒有很多經驗。 As you know there is a clear distinction between process definition data, process instance data (the runtime data) and the logging data. With this approach, you create a separate new process definition in the jBPM database (by e.g. deploying a new version of the same process). 業務程序定義數據、業務程序實例數據和日志數據之間有清晰的區別。你創建一個新版本的業務程序定義。 Then the runtime information is converted to the new process definition. This might involve a translation cause tokens in the old process might be pointing to nodes that have been removed in the new version. So only new data is created in the database. But one execution of a process is spread over two process instance objects. 業務程序實例轉換到新的業務程序定義。這可能造成這樣的情況,token中的節點指針指向了一個新版本中已經刪除的節點。把一個業務程序實例劃分為多個業務程序實例對象。 This might become a bit tricky for the tools and statistics calculations. When resources permit us, we are going to add support for this in the future. E.g. a pointer could be added from one process instance to it's predecessor。 未來我們可能提供:業務程序實例中增加一個能夠指向前輩實例的指針。 16.1.5.?Process conversion業務程序轉化 A conversion class has been made available to assist you with converting your jBPM 2.0 process archives into jBPM 3.0 compatible process archives. Create an output directory to hold the converted process archives. Enter the following command line from the build directory of the jBPM 3.0 distribution: java -jar converter.jar indirectory outdirectory Substitute the input directory where your jBPM 2.0 process archives reside for "indirectory". Substitute the output directory for the one you created to hold the newly converted process archives for "outdirectory". 16.2.?Delegation委派 Delegation is the mechanism used to include the users' custom code in the execution of processes. 委派是一個機制,用來在業務程序的執行中包含用戶的定制代碼。 委派類是指,在業務程序實例的執行過程中被調用的用戶自定義的Java類。 委派類,應該是指jPDL定義中需要用到的Java類。如,ActionHandler,執行動作、業務邏輯。 AssignmentHandler,執行任務分派。把任務或泳道分配給用戶或用戶池。 條件等。 這些都使用了參數回調模式。用戶提供的這些類,會被jBPM所調用。這些類可以使用jBPM傳入的業務程序實例和任務等的信息。 委派模式,就是把任務交給下層助手類去處理。jBPM中之所以叫我們自定義的類為委派類。就是jBPM把任務交給了這些助手類。通過接口調用這些助手類。ActionHandler等實現類,實際上還是委派模式的委派者。它們可能還會繼續把任務委派給助手類! 16.2.1.?The jBPM class loader jBPM類載入器 The jBPM class loader is the class loader that loads the jBPM classes. Meaning, the classloader that has the library jbpm-3.x.jar in its classpath. To make classes visible to the jBPM classloader, put them in a jar file and put the jar file besides the jbpm-3.x.jar. E.g. in the WEB-INF/lib folder in the case of webapplications. 16.2.2.?The process class loader業務程序類載入器 Delegation classes are loaded with the process class loader of their respective process definition. The process class loader is a class loader that has the jBPM classloader as a parent. The process class loader adds all the classes of one particular process definition. You can add classes to a process definition by putting them in the /classes folder in the process archive. Note that this is only useful when you want to version the classes that you add to the process definition. If versioning is not necessary, it is much more efficient to make the classes available to the jBPM class loader. 在業務程序存檔文件的/classes目錄中的類,增加到了業務程序定義中。每個業務程序定義可以有一個類載入器。他們的父類載入器是jBPM的類載入器。 注意,這僅僅在你要版本化你的業務程序定義的委派類時,才值得這么做。 即,一個業務程序定義,需要一種委派類。 16.2.3.?Configuration of delegations委派的配置 Delegation classes contain user code that is called from within the execution of a process. The most common example is an action. In the case of action, an implementation of the interface ActionHandler can be called on an event in the process. Delegations are specified in the processdefinition.xml. 3 pieces of data can be supplied when specifying a delegation : 委派類是指,在業務程序實例的執行過程中被調用的用戶自定義的Java類。 最普通的例子是Action。委派的Java類在processdefinition.xml中被指定。 指定一個委派的Java類需要提供3塊數據: //這是通過字段實現的 <action class="org.test.MyAction"> ?<city>Atlanta</city> ?<rounds>5</rounds> </action>
  • 1) the class name (required) : the fully qualified class name of the delegation class.
1,類名:委派類的全名 <action class="org.test.MyAction">
  • 2) configuration type (optional) : specifies the way to instantiate and configure the delegation object. By default the default constructor is used and the configuration information is ignored.
2,配置類型: 如: <assignment class="com.withub.cms.jbpm.assignmenthandler.WriteNewsAssignmentHandler" config-type="constructor"></assignment> 有4種配置類型: 1)Field------直接給目標類的字段賦值。 字段沒有set/get方法,不是一個屬性。該類也不是一個Bean。這應該是使用CGLIB字節碼生成實現的。也可能使用反射。 <assignment class="com.withub.cms.jbpm.assignmenthandler.WriteNewsAssignmentHandler"> ??????????? <a>a</a> ???????? </assignment> 2)Bean------通過set方法賦值。這和Spring的<property>是一致的。 <assignment class="com.withub.cms.jbpm.assignmenthandler.WriteNewsAssignmentHandler" config-type="bean"> ??????????? <a>a</a> ???????? </assignment> 3)constructor-----傳給構造器的參數。 <assignment class="com.withub.cms.jbpm.assignmenthandler.WriteNewsAssignmentHandler" config-type="constructor"> ??????????? a ???????? </assignment> 4)compatibility-----兼容性 <assignment class="com.withub.cms.jbpm.assignmenthandler.WriteNewsAssignmentHandler" config-type="configuration-property"> ??????????? a ???????? </assignment> 就是configuration-property 什么都沒有,就是默認構造器。 Field字段,也不需要。 <assignment class="com.withub.cms.jbpm.assignmenthandler.WriteNewsAssignmentHandler" config-type="configuration-property"> ??????????? a ???????? </assignment> 配置類型和配置,類似于Spring IOC容器的對象裝配。 如:<bean id="odExchangeUserForecastDao" class="com.telecom.ldbs.exchange.ExchangeUserForecast.datadeclare.dao.impl.OdExchangeUserForecastDaoImpl"> <property name="sessionFactory"> <ref bean="sessionFactory"/> </property> </bean> 這是對屬性的管理 <city>
  • 3) configuration (optional) : the configuration of the delegation object in the format as required by the configuration type.
3,配置 Atlanta Next is a description of all the configuration types: 配置類型 16.2.3.1.?config-type field配置類型字段 This is the default configuration type. The config-type field will first instantiate an object of the delegation class and then set values in the fields of the object as specified in the configuration. The configuration is xml, where the elementnames have to correspond with the field names of the class. The content text of the element is put in the corresponding field. If necessary and possible, the content text of the element is converted to the field type. 這是默認的配置類型。不配置,也會使用默認無參構造器生成對象。 config-type="field",或者不設置屬性,那么會首先實例化委派/回調java類的對象。然后用配置中的值設置對象的字段的值。字段的配置是xml格式的。xml元素名和類的字段名相同。xml元素的文本內容,賦值給這個字段。Xml的文本元素能夠被正確的轉換為字段所需的類型。 (Spring也可以。是特殊的類型,在Spring中一般是另一個Spring管理的對象) Supported type conversions: 支持的類型轉換:
  • String doesn't need converting, of course. But it is trimmed.
String不需要轉換,但會2邊切除空格。
  • primitive types such as int, long, float, double, ...
原生類型
  • and the basic wrapper classes for the primitive types.
原生類型的包裝類
  • lists, sets and collections. In that case each element of the xml-content is consitered as an element of the collection and is parsed, recursively applying the conversions. If the type of the elements is different from java.lang.String this can be indicated by specifying a type attribute with the fully qualified type name. For example, following snippet will inject an ArrayList of Strings into field 'numbers':
List,Set,Collection這些集合類。Xml內容的每一個元素被認為是集合的一個元素。這些元素被分別遞歸轉換類型。 如果元素的類型不是String。可以通過指出類型的全類名來進行轉換。 ·??????????????? <numbers> ·??????????????? ??<element>one</element> ·??????????????? ??<element>two</element> ·??????????????? ??<element>three</element> </numbers> 如,指定元素的屬性 ·??????????????? <numbers> ·??????????????? ??<element type="com.withub.cms.jbpm.assignmenthandler.WriteNewsAssignmentHandler">one</element> ·??????????????? ??<element>two</element> ·??????????????? ??<element>three</element> </numbers> ? ? The text in the elements can be converted to any object that has a String constructor. To use another type then String, specify the element-type in the field element ('numbers' in this case). Here's another example of a map: <numbers> ?<entry><key>one</key><value>1</value></entry> ?<entry><key>two</key><value>2</value></entry> ?<entry><key>three</key><value>3</value></entry> </numbers>
  • maps. In this case, each element of the field-element is expected to have one subelement key and one element value. The key and element are both parsed using the conversion rules recursively. Just the same as with collections, a conversion to java.lang.String is assumed if no type attribute is specified.
  • org.dom4j.Element
  • for any other type, the string constructor is used.
任何使用了String構造器的類。(String唯一參數的構造器) For example in the following class... public class MyAction implements ActionHandler { ?// access specifiers can be private, default, protected or public ?private String city; ?Integer rounds; ?... } ...this is a valid configuration: 這是有效的配置: ... <action class="org.test.MyAction"> ?<city>Atlanta</city> ?<rounds>5</rounds> </action> ... 16.2.3.2.?config-type bean配置類型Bean Same as config-type field but then the properties are set via setter methods, rather then directly on the fields. The same conversions are applied. 類似于配置類型字段,但它是通過set方法設置的。而不是直接作用于字段。 必有set方法,是屬性(可以沒有get方法)。 16.2.3.3.?config-type constructor配置類型構造器 This instantiator will take the complete contents of the delegation xml element and passes this as text in the delegation class constructor. 把參數作為String傳入到構造器中。類必須有這樣的構造器: Class(String string){ };//這樣的構造器。 16.2.3.4.?config-type configuration-property配置類型----配置屬性 First, the default constructor is used, then this instantiator will take the complete contents of the delegation xml element, and pass it as text in method void configure(String);. (as in jBPM 2) 第一,使用默認構造器創建對象。會把xml元素定義的內容傳遞到類的方法: configure(String) ??? 這個已經不大使用了! 16.3.?Expressions表達式 For some of the delegations, there is support for a JSP/JSF EL like expression language. In actions, assignments and decision conditions, you can write an expression like e.g. 在一些委派Java中,支持EL語言。類似于EL表達式。在action,任務分配,決定條件,你能寫一個表達式: expression="#{myVar.handler[assignments].assign}" 注意,jBPM的Web應用頁面也使用這種EL。 如:<h:commandButton action="#{taskBean.save}" value="Save"/> Save是方法名。也可以跟屬性名。、 <h2><h:outputText value="#{taskBean.taskInstance.name}" /></h2> JSP的EL語言只能通過建立表達式${exp1}來進行調用。 The basics of this expression language can be found in the J2EE tutorial. The jPDL expression language is similar to the JSF expression language. Meaning that jPDL EL is based on JSP EL, but it uses #{...} notation and that it includes support for method binding. jPDL表達式語言類似于JSF表達式語言。這意味著,jPDL EL基于JSP EL。但它使用#{?}符號,包括對方法綁定的支持。 Depending on the context, the process variables or task instance variables can be used as starting variables along with the following implicit objects: 依靠上下文,業務程序變量和任務變量連同下面的對象能夠被用作EL表達式的開始變量:?? 也就是說可以直接在EL表達式#{…}中使用!
  • taskInstance (org.jbpm.taskmgmt.exe.TaskInstance)任務實例
  • processInstance (org.jbpm.graph.exe.ProcessInstance)業務程序實例
  • processDefinition (org.jbpm.graph.def.ProcessDefinition)業務程序定義
  • token (org.jbpm.graph.exe.Token)執行路徑
  • taskMgmtInstance (org.jbpm.taskmgmt.exe.TaskMgmtInstance)任務管理實例
  • contextInstance (org.jbpm.context.exe.ContextInstance)上下文實例
This feature becomes really powerfull in a JBoss SEAM environment. Because of the integration between jBPM and JBoss SEAM, all of your backed beans, EJB's and other one-kind-of-stuff becomes available right inside of your process definition. Thanks Gavin ! Absolutely awsome ! :-) 這些特性是Jboss SEAM這個IOC容器提供的。因為jBPM和Jboss SEAM的綜合,所有你的后臺JavaBean類,EJB和其他類能夠正確地被你的業務程序定義中使用。 我可以使用Spring容器。通過把Spring容器對象引用放到業務程序實例的臨時變量中,在被委派處理類中調用Spring管理的類! 16.4.?jPDL xml schema jPDL的XML模式 The jPDL schema is the schema used in the file processdefinition.xml in the process archive. 16.4.1.?Validation確認 When parsing a jPDL XML document, jBPM will validate your document against the jPDL schema when two conditions are met: first, the schema has to be referenced in the XML document like this 要執行xsd驗證,需要2個條件: 1,指定xmlns <process-definition xmlns="urn:jbpm.org:jpdl-3.1"> ?... </process-definition> And second, the xerces parser has to be on the classpath. 2,xerces的jar包放在classpath中。 The jPDL schema can be found in ${jbpm.home}/src/java.jbpm/org/jbpm/jpdl/xml/jpdl-3.1.xsd or at http://jbpm.org/jpdl-3.1.xsd. jpdl-3.1.xsd <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns="urn:jbpm.org:jpdl-3.1" targetNamespace="urn:jbpm.org:jpdl-3.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <!--?PROCESS-DEFINITION --> <!--?################## --> <xs:element name="process-definition"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="swimlane" /> <xs:element ref="start-state" /> <xs:group?? ref="node-elements"/> <xs:group?? ref="action-elements" /> <xs:element ref="event" /> <xs:element ref="exception-handler" /> <xs:element ref="task" /> </xs:choice> <xs:attribute name="name" type="xs:string" use="required" /> </xs:complexType> </xs:element> <!--?SWIMLANE --> <!--?######## --> <xs:element name="swimlane"> <xs:complexType> <xs:sequence minOccurs="0" maxOccurs="1"> <xs:element ref="assignment"/> </xs:sequence> <xs:attribute name="name" type="xs:string" use="required" /> </xs:complexType> </xs:element> <!--?NODES --> <!--?##### --> <xs:element name="start-state"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="task"/> <xs:element ref="transition"/> <xs:element ref="event"/> <xs:element ref="exception-handler"/> </xs:choice> <xs:attribute name="name" type="xs:string"/> </xs:complexType> </xs:element> <xs:element name="end-state"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="event"/> <xs:element ref="exception-handler"/> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> </xs:complexType> </xs:element> <xs:element name="decision"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="handler" type="delegation" /> <xs:element ref="event"/> <xs:element ref="exception-handler"/> <xs:element name="transition"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="condition"> <xs:complexType mixed="true"> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="expression" type="xs:string" /> </xs:complexType> </xs:element> <xs:group ref="action-elements"/> <xs:element ref="exception-handler"/> </xs:choice> <xs:attribute name="to" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" /> </xs:complexType> </xs:element> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="expression" type="xs:string" /> <xs:attribute name="async" type="xs:string" default="false" /> </xs:complexType> </xs:element> <xs:element name="fork"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="script" /> <xs:group ref="node-content-elements" /> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="async" type="xs:string" default="false" /> </xs:complexType> </xs:element> <xs:element name="join"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:group ref="node-content-elements" /> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="async" type="xs:string" default="false" /> </xs:complexType> </xs:element> <xs:element name="node"> <xs:complexType> <xs:sequence> <xs:choice minOccurs="0"> <xs:group ref="action-elements" /> </xs:choice> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:group ref="node-content-elements" /> </xs:choice> </xs:sequence> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="async" type="xs:string" default="false" /> </xs:complexType> </xs:element> <xs:element name="process-state"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="sub-process"> <xs:complexType> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="version" type="xs:integer" /> </xs:complexType> </xs:element> <xs:element ref="variable" /> <xs:group ref="node-content-elements" /> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="async" type="xs:string" default="false" /> </xs:complexType> </xs:element> <xs:element name="state"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:group ref="node-content-elements"/> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="async" type="xs:string" default="false" /> </xs:complexType> </xs:element> <xs:element name="super-state"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:group ref="node-elements"/> <xs:group ref="node-content-elements"/> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="async" type="xs:string" default="false" /> </xs:complexType> </xs:element> <xs:element name="task-node"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="task" /> <xs:group ref="node-content-elements" /> </xs:choice> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="create-tasks" type="booleanType" default="true" /> <xs:attribute name="end-tasks" type="booleanType" default="false" /> <xs:attribute name="signal" default="last"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="unsynchronized"/> <xs:enumeration value="never"/> <xs:enumeration value="first"/> <xs:enumeration value="first-wait"/> <xs:enumeration value="last"/> <xs:enumeration value="last-wait"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="async" type="xs:string" default="false" /> </xs:complexType> </xs:element> <!--?TRANSITION --> <!--?########## --> <xs:element name="transition"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:group ref="action-elements"/> <xs:element ref="exception-handler" /> </xs:choice> <xs:attribute name="to" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" /> </xs:complexType> </xs:element> <!-- ACTIONS --> <!-- ####### --> <xs:element name="action"> <xs:complexType mixed="true"> <xs:sequence> <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="class" type="xs:string" /> <xs:attribute name="config-type" default="field"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="field"/> <xs:enumeration value="bean"/> <xs:enumeration value="constructor"/> <xs:enumeration value="configuration-property"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="name" type="xs:string" /> <xs:attribute name="ref-name" type="xs:string" /> <xs:attribute name="accept-propagated-events" type="booleanType" default="true" /> <xs:attribute name="expression" type="xs:string" /> <xs:attribute name="async" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="cancel-timer"> <xs:complexType> <xs:attribute name="name" type="xs:string" use="required" /> </xs:complexType> </xs:element> <xs:element name="create-timer"> <xs:complexType> <xs:choice> <xs:element ref="action"/> <xs:element ref="script"/> </xs:choice> <xs:attribute name="duedate" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" /> <xs:attribute name="repeat" type="xs:string" /> <xs:attribute name="transition" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="script"> <xs:complexType?mixed="true"> <xs:sequence> <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="name" type="xs:string" /> <xs:attribute name="accept-propagated-events" type="booleanType" default="true" /> </xs:complexType> </xs:element> <!--?EVENT --> <!--?##### --> <xs:element name="event"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:group ref="action-elements"/> </xs:choice> <xs:attribute name="type" use="required"> <xs:simpleType> <xs:union> <xs:simpleType> <xs:restriction base="xs:string"/> </xs:simpleType> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="node-enter"/> <xs:enumeration value="node-leave"/> <xs:enumeration value="process-start"/> <xs:enumeration value="process-end"/> <xs:enumeration value="task-create"/> <xs:enumeration value="task-assign"/> <xs:enumeration value="task-start"/> <xs:enumeration value="task-end"/> <xs:enumeration value="before-signal"/> <xs:enumeration value="after-signal"/> <xs:enumeration value="superstate-enter"/> <xs:enumeration value="superstate-leave"/> <xs:enumeration value="timer-create"/> <xs:enumeration value="subprocess-created"/> <xs:enumeration value="subprocess-end"/> </xs:restriction> </xs:simpleType> </xs:union> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <!--?EXCEPTION-HANDLER --> <!--?################# --> <xs:element name="exception-handler"> <xs:complexType> <xs:choice minOccurs="1" maxOccurs="unbounded"> <xs:element ref="action"/> <xs:element ref="script"/> </xs:choice> <xs:attribute name="exception-class" type="xs:string"/> </xs:complexType> </xs:element> <!--?TASK --> <!--?#### --> <xs:element name="task"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="assignment"/> <xs:element ref="controller"/> <xs:element ref="event"/> <xs:element ref="timer"/> </xs:choice> <xs:attribute name="name" type="xs:string" /> <xs:attribute name="blocking" type="booleanType" default="false"/> <xs:attribute name="signalling" type="booleanType" default="true"/> <xs:attribute name="description" type="xs:string" /> <xs:attribute name="duedate" type="xs:string" /> <xs:attribute name="swimlane" type="xs:string" /> <xs:attribute name="priority" type="priorityType" default="normal" /> </xs:complexType> </xs:element> <xs:element name="controller" type="delegation" /> <xs:element name="assignment"> <xs:complexType> <xs:complexContent> <xs:extension base="delegation"> <xs:attribute name="expression" type="xs:string" /> <xs:attribute name="actor-id" type="xs:string" /> <xs:attribute name="pooled-actors" type="xs:string" /> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <!--?TIMER --> <!--?##### --> <xs:element name="timer"> <xs:complexType> <xs:choice> <xs:element ref="action"/> <xs:element ref="script"/> </xs:choice> <xs:attribute name="duedate" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" /> <xs:attribute name="repeat" type="xs:string" /> <xs:attribute name="transition" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="variable"> <xs:complexType> <xs:sequence> <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="access" type="xs:string" default="read,write"/> <xs:attribute name="mapped-name" type="xs:string" /> </xs:complexType> </xs:element> <!-- TYPES AND GROUPS --> <!-- ################ --> <xs:complexType name="delegation" mixed="true"> <xs:sequence> <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="class" type="xs:string" /> <xs:attribute name="config-type" default="field"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="field"/> <xs:enumeration value="bean"/> <xs:enumeration value="constructor"/> <xs:enumeration value="configuration-property"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> <xs:simpleType name="configType"> <xs:restriction base="xs:string"> <xs:enumeration value="field"/> <xs:enumeration value="bean"/> <xs:enumeration value="constructor"/> <xs:enumeration value="configuration-property"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="booleanType"> <xs:restriction base="xs:string"> <xs:enumeration value="yes"/> <xs:enumeration value="no"/> <xs:enumeration value="true"/> <xs:enumeration value="false"/> <xs:enumeration value="on"/> <xs:enumeration value="off"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="priorityType"> <xs:union> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="highest"/> <xs:enumeration value="high"/> <xs:enumeration value="normal"/> <xs:enumeration value="low"/> <xs:enumeration value="lowest"/> </xs:restriction> </xs:simpleType> <xs:simpleType> <xs:restriction base="xs:int"/> </xs:simpleType> </xs:union> </xs:simpleType> <xs:group name="node-elements"> <xs:choice> <xs:element ref="node"/> <xs:element ref="state"/> <xs:element ref="task-node"/> <xs:element ref="super-state"/> <xs:element ref="process-state"/> <xs:element ref="fork"/> <xs:element ref="join"/> <xs:element ref="decision"/> <xs:element ref="end-state"/> </xs:choice> </xs:group> <xs:group name="action-elements"> <xs:choice> <xs:element ref="action"/> <xs:element ref="script"/> <xs:element ref="create-timer"/> <xs:element ref="cancel-timer"/> </xs:choice> </xs:group> <xs:group name="node-content-elements"> <xs:choice> <xs:element ref="event"/> <xs:element ref="exception-handler"/> <xs:element ref="timer"/> <xs:element ref="transition"/> </xs:choice> </xs:group> </xs:schema> 16.4.2.?process-definition業務程序定義(根節點) Table?16.1.?
Name 屬性,子元素是等價的 Type Multiplicity Description
name Attribute 屬性 Optional可以無名,版本-1 the name of the process 業務程序定義的名字
swimlane泳道 泳道,表示業務程序的角色,用在任務分派中。 Element元素 [0..*] 0個或多個 the swimlanes used in this process. The swimlanes represent process roles and they are used for task assignments.
start-state element [0..1] 0個或1個 the start state of the process. Note that a process without a start-state is valid有效的, but cannot be executed.但不能執行
{end-state|state|node|task-node|process-state|super-state|fork|join|decision} element [0..*] 任意 the nodes of the process definition. Note that a process without nodes is valid, but cannot be executed.注意:一個業務程序沒有節點是正確的,但不能被執行。
event事件 process-start業務程序實例開始 process-end業務程序實例結束 <event type="process-start"> ????? <action name="action1"></action> ?? </event> Element元素 [0..*] 多個 the process events that serve as a container for actions 是動作的容器。
{action|script|create-timer|cancel-timer} 這些是全局定義的動作,腳本,創建定時器,取消定時器。它們必須有名字。可以被事件或轉向所引用—通過名字。 element [0..*] global defined actions that can be referenced from events and transitions. Note that these actions must specify a name in order to be referenced.
task任務 全局定義的任務,能夠被在Action等中使用。 element [0..*] global defined tasks that can be used in e.g. actions.
exception-handler異常處理器 一個異常處理器列表,用于處理所有在這個業務程序定義中被委派類拋出的異常。 element [0..*] a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process definition.
16.4.3.?node節點 Table?16.2.?
Name Type Multiplicity Description
{action|script|create-timer|cancel-timer} 一個定制的Action,代表這個節點的行為。 element 1 a custom action that represents the behaviour for this node
common node elements 公共節點元素 See common node elements
16.4.4.?common node elements公共節點元素 Table?16.3.?
Name Type Multiplicity Description
Name節點名 attribute required the name of the node
Async異步 attribute { true | false }, false is the default If set to true, this node will be executed asynchronously. See also Chapter?13, Asynchronous continuations
transition轉向 每一個離開轉向,離開一個節點,都必須有一個明確的名字。只有一個離開轉向,可以沒有名字。第一個指定的轉向是默認執行的轉向。 element [0..*] the leaving transitions. Each transition leaving a node *must* have a distinct name. A maximum of one of the leaving transitions is allowed to have no name. The first transition that is specifed is called the default transition. The default transition is taken when the node is left without specifying a transition.
event事件 支持事件類型:進入節點,離開節點 element [0..*] supported event types: {node-enter|node-leave}
exception-handler element [0..*] a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
timer定時器 監控這個節點的執行 element [0..*] specifies a timer that monitors the duration of an execution in this node.
16.4.5.?start-state開始狀態 Table?16.4. 1,task例子 <process-definition ?xmlns=""?name="holidayrequest"> ?? <swimlane name="initiator"></swimlane> ?? <swimlane name="holidayManager"></swimlane> ? ?? <start-state name="enter request"> //這個任務1,捕獲業務程序的發起者。 //2,在業務程序變量上創建并填寫數據。 //3,在界面上,這個任務應該是一個表單。 //4,不能回到開始狀態;也不能離開結束狀態。這是規則! ????? <task name="request entry" swimlane="initiator"> ???????? <controller> ??????? ????<variable name="start date" access="read,write,required"></variable> ??????????? <variable name="duration" access="read,write,required"></variable> ???????? </controller> ????? </task> ????? <transition name="" to="evaluate request"></transition> ?? </start-state>?
Name Type Multiplicity Description
name attribute optional the name of the node
task任務 這個任務開始一個新的業務程序的實例,或者捕獲業務程序的發起者。 element [0..1] 0或1個任務。 有特殊的用途。 the task to start a new instance for this process or to capture the process initiator. See Section?11.7, “Swimlane in start task”
event事件 開始狀態只有節點離開事件,沒有節點進入事件。因為不能進入開始狀態。 element [0..*] supported event types: {node-leave}
transition轉向 每一個離開轉向必須有一個目標節點的名字 element [0..*] the leaving transitions. Each transition leaving a node *must* have a distinct name.
exception-handler 異常處理器 它們能夠處理所有這個節點中的委派類拋出的異常 element [0..*] a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
16.4.6.?end-state Table?16.5.?
Name Type Multiplicity Description
name attribute required the name of the end-state
event事件 只有節點進入事件可用,因為無法離開。 element [0..*] supported event types: {node-enter}
exception-handler 處理這個節點中所有的Java處理類拋出的異常。 element [0..*] a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
16.4.7.?state等待狀態 Table?16.6.?
Name Type Multiplicity Description
common node elements See common node elements
16.4.8.?task-node任務節點 任務,也類似于條件。 只是任務是用戶參與的。條件是自動的。條件有true,false。任務有完成、未完成。 Table?16.7.?
Name Type Multiplicity Description
Signal信號 默認是last。就是全部任務完成后,執行默認轉向 Attribute屬性 optional {unsynchronized異步|never從不|first第一個任務|first-wait|last全部任務|last-wait}, default is last. signal specifies the effect of task completion on the process execution continuation.
create-tasks 創建任務實例 默認是true。在執行任務節點時,創建任務節點的所有任務。也可以設為false。這樣,你可以在運行時決定創建哪些任務實例。 此時,你可以在node-enter事件的處理ActionHandler中創建任務。當然,你也必須把create-tasks=”false” attribute optional {yes|no|true|false}, default is true. can be set to false when a runtime calculation has to determine which of the tasks have to be created. in that case, add an action on node-enter, create the tasks in the action and set create-tasks to false.
end-tasks結束任務實例 默認false。如果設為true,離開該節點時,如果任務還沒有結束,就關掉所有沒關掉的任務實例。 attribute optional {yes|no|true|false}, default is false. In case remove-tasks is set to true, on node-leave, all the tasks that are still open are ended.
task任務 當業務程序實例的執行進入該節點時,這些任務的實例會被創建 element [0..*]多個 the tasks that should be created when execution arrives in this task node.
common node elements See common node elements
16.4.9.?process-state業務程序實例狀態 這個節點代表一個業務程序。執行到這里以后,通過在process-state實例上配置子業務程序實例。就會先執行子業務程序實例,子業務程序實例執行完之后,才會繼續執行父業務程序實例。 Table?16.8.?
Name Type Multiplicity 多樣性 Description描述
sub-process 子業務程序,指定這個節點代表的子業務程序的定義(這樣就不用在運行時指定實例了) element 1 the sub process that is associated with this node
variable變量 指定數據從父業務程序實例的RootToken到子業務程序的RootToken中,這會從子業務程序實例的生命周期。最后子業務程序實例結束時,會把變量傳回并覆蓋父業務程序的變量 element [0..*] specifies how data should be copied from the super process to the sub process at the start and from the sub process to the super process upon completion of the sub process.
common node elements See common node elements
16.4.10.?super-state節點組 超級節點是節點組。用來包括其他子節點。僅僅是一個容器。進入這個節點組,實際會進入它內部的第一個節點。內部當然不能有start-state。 Table?16.9.?
Name Type Multiplicity Description
{end-state|state|node|task-node|process-state|super-state|fork|join|decision} element [0..*] the nodes of the superstate. superstates can be nested.
common node elements See common node elements
16.4.11.?fork分支 業務程序的執行分為多路并行。僅僅是標記 Table?16.10.?
Name Type Multiplicity Description
common node elements See common node elements
16.4.12.?join聯接 業務程序的執行在這里合并。僅僅是標記。Fork-join必須成對使用。 Table?16.11.?
Name Type Multiplicity Description
common node elements See common node elements
16.4.13.?decision決定 根據各個transition轉向的條件,決定執行哪一個轉向。是遇到第一個true的轉向就執行。 如果沒有條件是真的轉向,那么就會執行默認轉向(第一個)! 所以decision和Node一樣,是即時狀態,不會停下來讓參與者決定。 publicinterface DecisionHandler extends Serializable { ?String decide(ExecutionContext executionContext) throws Exception; 返回值,是離開轉向的String類型名字! 也就是說,決定 } 進入Decision節點的execute方法之后, 1,首先看有沒有指定handler。如果有,就得到DecisionHandler返回的轉向名。執行該transition。 2,看有沒有EL決定表達式.如有,執行返回的轉向。 3,計算每一個transition帶的EL條件表達式。直到有一個轉向為true。就執行該轉向! Table?16.12.?
Name Type Multiplicity多樣性 Description
handler處理器 只需要一個就夠了。因為它返回決定采用的transition的名字 (2中用法: 1,指定DecisionHandler的實現類 2,EL表達式) element either a 'handler' element or conditions on the transitions should be specified 轉向們應該指定一個處理器或者若干個條件 the name of a org.jbpm.jpdl.Def.DecisionHandler implementation
transition 轉向 decision的轉向能夠使用條件。Decision將使用第一個條件=true的轉向。沒有條件的轉向是true。 element [0..*]多個 the leaving transitions. The leaving transitions of a decision can be extended with a condition. The decision will look for the first transition for which the condition evaluates to true. A transition without a condition is considered to evaluate to true (to model the 'otherwise' branch). See the condition element
common node elements See common node elements
16.4.14.?event事件 Table?16.13.?
Name Type Multiplicity Description
Type類型(事件的類型) attribute required the event type that is expressed relative to the element on which the event is placed
{action|script|create-timer|cancel-timer} 響應這個事件的動作類型:ActionHandler,腳本(BeanShell腳本,不是條件的EL表達式),創建定時器,取消定時器 element [0..*] the list of actions that should be executed on this event
16.4.15.?transition轉向 Table?16.14.?
Name Type Multiplicity Description
Name轉向的名字 注意:每一個轉向必須有一個目標名字。 attribute Optional 可選 the name of the transition. Note that each transition leaving a node *must* have a distinct name.
To目標節點的名字 目標節點的等級名。節點的名字根據節點的作用域而來。類似于目錄結構的命名規則。 如: <state name="preparation"> ??? <transition to="phase one/invite murphy"/> ?</state> ?<super-state name="phase one"> ??? <state name="invite murphy"/> ?</super-state> 或: <super-state name="phase one"> ??? <state name="preparation"> ????? <transition to="../phase two/invite murphy"/> ??? </state> ?</super-state> ?<super-state name="phase two"> ??? <state name="invite murphy"/> ?</super-state> attribute required the hierarchical name of the destination node. For more information about hierarchical names, see Section?9.6.3, “Hierarchical names”
{action|script|create-timer|cancel-timer} 在執行這個轉向時執行的動作。因為transition不像Node那樣本身有execute方法,必須通過動作來執行操作。 element [0..*] 多個 the actions to be executed upon taking this transition. Note that the actions of a transition do not need to be put in an event (because there is only one)
exception-handler element [0..*] a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
16.4.16.?action動作 Table?16.15.?
Name Type Multiplicity Description
Name名字 有名字的動作,可以被在業務程序定義中尋找。 attribute Optional 可選 the name of the action. When actions are given names, they can be looked up from the process definition. This can be useful for runtime actions and declaring actions only once.
Class全類名 (action需要3者之一:全類名class,引用名ref-name,表達式) attibute either, a ref-name or an expression the fully qualified class name of the class that implements the org.jbpm.graph.def.ActionHandler interface.
ref-name引用名 引用的動作的名字(讓被引用的action處理) attibute either this or class the name of the referenced action. The content of this action is not processed further if a referenced action is specified.
Expression表達式 類EL表達式指定方法 attibute either this, a class or a ref-name A jPDL expression that resolves to a method. See also Section?16.3, “Expressions”
accept-propagated-events接受傳播事件 默認true。如果為false,那么action將僅僅在事件激發這個Action時執行。(事件會從低層次向高層次傳遞,直到process-definition。)同一個事件不會再被上層的action處理。即,事件在這個Action被銷毀! attribute optional {yes|no|true|false}. Default is yes|true. If set to false, the action will only be executed on events that were fired on this action's element. for more information, see Section?9.5.4, “Event propagation”
config-type配置類型 指定ActionHandler的實現類的對象應該怎樣生成。其中的內容元素應該怎樣用到action對象中。 attribute optional {field|bean|constructor|configuration-property}. Specifies how the action-object should be constructed and how the content of this element should be used as configuration information for that action-object.
Async異步 默認false。即,動作將在執行線程中同步執行。如果設為true,將發送執行這個action的消息到命令執行器,命令執行器將在一個獨立的事務中同時/異步執行這個action。(處于業務程序實例主執行線程之外的線程中) attibute {true|false} Default is false, which means that the action is executed in the thread of the execution. If set to true, a message will be sent to the command executor and that component will execute the action asynchonously in a separate transaction.
動作的內容應該作為你的ActionHandler實現類的配置信息。傳遞數據給ActionHandler實現類的對象。這允許你通過配置重用對象和組裝對象。 {content} Optional 可選 the content of the action can be used as configuration information for your custom action implementations. This allows the creation of reusable delegation classes. For more about delegation configuration, see Section?16.2.3, “Configuration of delegations”.
16.4.17.?script腳本(BeanShell) Table?16.16.?
Name Type Multiplicity Description
Name腳本類型的動作的名字 有名字的腳本,可被查找。 (action的ref-name) attribute optional the name of the script-action. When actions are given names, they can be looked up from the process definition. This can be useful for runtime actions and declaring actions only once.
accept-propagated-events 接受傳播事件 attribute optional [0..*] {yes|no|true|false}. Default is yes|true. If set to false, the action will only be executed on events that were fired on this action's element. for more information, see Section?9.5.4, “Event propagation”
expression表達式 beanshell腳本。 如果沒有指定variable腳本變量,那么你可以在表達式中使用當前Token(根Token,有fork-join,就有多條子token)的所有變量。也能夠直接作為script的文本內容寫表達式。不需要作為expression元素指定表達式 element [0..1] 0或1個 the beanshell script. If you don't specify variable elements, you can write the expression as the content of the script element (omitting the expression element tag).
variable腳本變量 如果不指定腳本變量,那么就會把當前Token上的所有變量都引進來,可以被表達式使用!如果指定了變量,那么在表達式中只能使用當前指定的這幾個變量。 element [0..*] 多個 in variable for the script. If no in variables are specified, all the variables of the current token will be loaded into the script evaluation. Use the in variables if you want to limit the number of variables loaded into the script evaluation.
16.4.18.?expression表達式(beanshell腳本) Table?16.17.?
Name Type Multiplicity Description
{content} a bean shell script.
16.4.19.?variable變量 當前token的變量 <task name="WriteNews"> ???????? <controller> ??????????? <variable name="infoId" access="read,write,required"></variable> ??????????? <variable name="infoTitle" access="read,write,required"></variable> ??????????? <variable name="infoContent"></variable> ??????????? <variable name="infoWriterId"></variable> ??????????? <variable name="infoWritedTime"></variable> ???????? </controller> ???????? <assignment class="com.withub.cms.jbpm.assignmenthandler.WriteNewsAssignmentHandler"></assignment> ????? </task> Table?16.18.?
Name Type Multiplicity Description
Name名字 業務程序變量(實際在各個token上,用當前token的)的名字 attribute required the process variable name
Access訪問權 默認是:read,write。使用,分割。 read,write,required attribute optional default is read,write. It is a comma separated list of access specifiers. The only access specifiers used so far are read, write and required.
mapped-name映射名 默認使用變量名。這指定變量名的一個別名。別名的意思,依賴于variable元素用在哪里。如果在script內,這是beanshell腳本變量的名字。任務的控制器內,這是任務參數的標簽。如果在process-state內,這是子業務程序實例內的變量名。 attribute optional this defaults to the variable name. it specifies a name to which the variable name is mapped. the meaning of the mapped-name is dependent on the context in which this element is used. for a script, this will be the script-variable-name. for a task controller, this will be the label of the task form parameter and for a process-state, this will be the variable name used in the sub-process.
16.4.20.?handler處理器 用于decision, 1,DecisionHandler 2,和DecisionHandler的作用一樣。用EL表達式算出應該執行哪一個轉向。 Table?16.19.?
Name Type Multiplicity Description
Expression jPDL的EL表達式 返回的結果使用toString轉換為一個String。應該是一個transition的名字。 attibute either this or a class A jPDL expression. The returned result is transformed to a string with the toString() method. The resulting string should match one of the leaving transitions. See also Section?16.3, “Expressions”.
Class類名 如果使用DecisionHandler而不是EL表達式。 attibute either this or ref-name the fully qualified class name of the class that implements the org.jbpm.graph.node.DecisionHandler interface.
config-type配置類型 (和ActionHandler中一樣) attribute optional {field|bean|constructor|configuration-property}. Specifies how the action-object should be constructed and how the content of this element should be used as configuration information for that action-object.
{content} optional the content of the handler can be used as configuration information for your custom handler implementations. This allows the creation of reusable delegation classes. For more about delegation configuration, see Section?16.2.3, “Configuration of delegations”.
16.4.21.?timer定時器 <task swimlane="salesman"> ????? <timer duedate="20 seconds" repeat="10 seconds"> ??????? <action class="org.jbpm.websale.RemindActor"> ????????? <swimlaneName>salesman</swimlaneName> ??????? </action> ????? </timer> ????? <controller> ??????? <variable name="item" access="read"/> ??????? <variable name="quantity" access="read"/> ??????? <variable name="address" access="read"/> ??????? <variable name="comment"/> ????? </controller>??? </task> Table?16.20.?
Name Type Multiplicity Description
Name定時器的名字 如果不定義,就用所屬節點的名字。 注意:每個定時器應該有唯一的名字。 attribute optional the name of the timer. If no name is specified, the name of the enclosing node is taken. Note that every timer should have a unique name.
Duedate期間(定時器啟動到首次執行的時間) 指定創建定時器和執行定時器之間的時間間隔。 attribute required the duration (optionally expressed in business hours) that specifies the time period between the creation of the timer and the execution of the timer. See Section?14.1, “Duration” for the syntax.
Repeat重復(重復執行的間隔) 定時器執行之后,指定離開節點之前,定時器重復執行多少時間。 如果指定”yes””true”,則重復的間隔和啟動定時期到執行的間隔duedate一樣。 attribute optional {duration | 'yes' | 'true'}after a timer has been executed on the duedate, 'repeat' optionally specifies duration between repeating timer executions until the node is left. If yes or true is specified, the same duration as for the due date is taken for the repeat. See Section?14.1, “Duration” for the syntax.
Transition轉向 激發定時器事件或者執行action之后,執行指定名字的轉向。 attribute optional a transition-name to be taken when the timer executes, after firing the timer event and executing the action (if any).
cancel-event取消(定時器)(任務)事件 僅用于任務中的定時器。它指定哪個事件發生時,定時器應該被取消。默認是task-end事件。即,定時器所屬的任務結束時,任務內的定時器會取消。 但你也能指定為task-assign,task-start。能夠使用,給定多個取消定時器事件。 attribute optional this attribute is only to be used in timers of tasks. it specifies the event on which the timer should be cancelled. by default, this is the task-end event, but it can be set to e.g. task-assign or task-start. The cancel-event types can be combined by specifying them in a comma separated list in the attribute.
{action|script|create-timer|cancel-timer} 只有一個定時器激發的動作 element [0..1] 0或1個 an action that should be executed when this timer fires
16.4.22.?create-timer創建定時器 Table?16.21.?
Name Type Multiplicity Description
Name定時器的名字 attribute optional the name of the timer. The name can be used for cancelling the timer with a cancel-timer action.
Duedate延期時間 創建定時器和執行定時器的時間間隔 attribute required the duration (optionally expressed in business hours) that specifies the the time period between the creation of the timer and the execution of the timer. See Section?14.1, “Duration” for the syntax.
Repeat重復執行周期 如:yew/true,和延期時間相同。直到定時器取消(默認是離開該節點) attribute optional {duration | 'yes' | 'true'}after a timer has been executed on the duedate, 'repeat' optionally specifies duration between repeating timer executions until the node is left. If yes of true is specified, the same duration as for the due date is taken for the repeat. See Section?14.1, “Duration” for the syntax.
Transition轉向 定時器事件激發或者執行了定時器的動作之后,執行的轉向 attribute optional a transition-name to be taken when the timer executes, after firing the the timer event and executing the action (if any).
16.4.23.?cancel-timer取消定時器 Table?16.22.?
Name Type Multiplicity Description
Name被取消的定時器的名字 attribute optional the name of the timer to be cancelled.
16.4.24.?task任務 Table?16.23.?
Name Type Multiplicity Description
Name任務名字 attribute optional the name of the task. Named tasks can be referenced and looked up via the TaskMgmtDefinition
Blocking鐵板一塊? 默認false。如果為true,那么任務完成之后,才能離開節點。False,允許用戶通過signal繼續執行和離開節點。 attribute optional {yes|no|true|false}, default is false. If blocking is set to true, the node cannot be left when the task is not finished. If set to false (default) a signal on the token is allowed to continue execution and leave the node. The default is set to false, because blocking is normally forced by the user interface.
Signalling有信號功能 默認true,task能夠通過end(transition)離開任務節點。 attribute optional {yes|no|true|false}, default is true. If signalling is set to false, this task will never have the capability of trigering the continuation of the token.
Duedate延遲時間(任務執行的的延遲時間) attribute optional is a duration expressed in absolute or business hours as explained in Chapter?14, Business calendar
Swimlane泳道 指向一個泳道的名字。如果一個泳道指定在任務上,那么任務分派assignment將會被忽略! (泳道也有assignment任務分派 ) attribute optional reference to a swimlane. If a swimlane is specified on a task, the assignment is ignored.
Priority優先權 attribute optional one of {highest, high, normal, low, lowest}. alternatively, any integer number can be specified for the priority. FYI: (highest=1, lowest=5)
assignment任務分派 使用EL表達式或AssignmentHandler來分配任務。優先級低于swimlane element optional describes a delegation that will assign the task to an actor when the task is created.
event事件 task-assign任務分派事件,我們已經在TaskInstance中增加了previousActorId屬性。表示原來的參與者 element [0..*] supported event types: {task-create|task-start|task-assign|task-end}. Especially for the task-assign we have added a non-persisted property previousActorId to the TaskInstance
exception-handler element [0..*] a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
timer element [0..*] specifies a timer that monitors the duration of an execution in this task. special for task timers, the cancel-event can be specified. by default the cancel-event is task-end, but it can be customized to e.g. task-assign or task-start.
controller控制器 指定業務程序變量怎樣傳進任務變量。任務變量從GUI中由用戶指定值。 element [0..1] specifies how the process variables are transformed into task form parameters. the task form paramaters are used by the user interface to render a task form to the user.
16.4.25.?swimlane泳道 Swimlane泳道,僅僅是assignment任務分派的一個代表。 一般放在頂層,供任務去引用! <process-definition name="websale" ??????????????????? xmlns="urn:jbpm.org:jpdl-3.1"> ?<!-- SWIMLANES (= process roles) --> //如果沒有指定assignment,應該是任意人都可以! ?<swimlane name="buyer" /> ? ?<swimlane name="salesman"> ??? <assignment expression="user(ernie)" /> ?</swimlane> ? ?<swimlane name="accountant"> ??? <assignment expression="user(bert)" /> ?</swimlane> ? ?<swimlane name="shipper"> ??? <assignment expression="user(grover)" /> ?</swimlane> Table?16.24.?
Name Type Multiplicity Description
Name名字 attribute required the name of the swimlane. Swimlanes can be referenced and looked up via the TaskMgmtDefinition
assignment任務分配 指定這個泳道的任務分配器。它會在泳道的任務實例第一次被創建時執行。 element [1..1] 必須且只有一個(但也有不指定的例子。應該是指所有人都可以) specifies a the assignment of this swimlane. the assignment will be performed when the first task instance is created in this swimlane.
16.4.26.?assignment(任務)分派 jBPM身份組件表達式(jBPM identity component expressions) Table?16.25.?
Name Type Multiplicity Description
Expression 表達式 由于歷史原因,它不是一個jPDL版EL表達式。相反,它是jBPM的身份組建的一個分配表達式。注意:這個實現依賴于jbpm身份組件。如果你不使用jBPM的身份組件,那么就不能使用它! attribute optional For historical reasons, this attribute expression does not refer to the jPDL expression, but instead, it is an assignment expression for the jBPM identity component. For more information on how to write jBPM identity component expressions, see Section?11.11.2, “Assignment expressions”. Note that this implementation has a dependency on the jbpm identity component.
actor-id 參與者id 這是一個beanshell表達式。屬性或方法返回一個String attribute optional An actorId. Can be used in conjunction with pooled-actors. The actor-id is resolved as an expression. So you can refer to a fixed actorId like this actor-id="bobthebuilder". Or you can refer to a property or method that returns a String like this: actor-id="myVar.actorId", which will invoke the getActorId method on the task instance variable "myVar".
pooled-actors 參與者池。也是beanshell表達式。屬性或方法返回一個String[],集合,或者,分割的參與者池的列表 attribute optional A comma separated list of actorIds. Can be used in conjunction with actor-id. A fixed set of pooled actors can be specified like this: pooled-actors="chicagobulls, pointersisters". The pooled-actors will be resolved as an expression. So you can also refer to a property or method that has to return, a String[], a Collection or a comma separated list of pooled actors.
Class全類名 attribute optional the fully qualified classname of an implementation of org.jbpm.taskmgmt.def.AssignmentHandler
config-type配置類型 attribute optional {field|bean|constructor|configuration-property}. Specifies how the assignment-handler-object should be constructed and how the content of this element should be used as configuration information for that assignment-handler-object.
{content} optional the content of the assignment-element can be used as configuration information for your AssignmentHandler implementations. This allows the creation of reusable delegation classes. for more about delegation configuration, see Section?16.2.3, “Configuration of delegations”.
16.4.27.?controller控制器 publicinterface TaskControllerHandler extends Serializable { //初始化任務實例變量 提取業務程序變量的所有信息,初始化任務實例變量 ?void initializeTaskVariables(TaskInstance taskInstance, ContextInstance contextInstance, Token token); ?//提交任務實例變量 當任務完成時,被調用! ?void submitTaskVariables(TaskInstance taskInstance, ContextInstance contextInstance, Token token); } <controller> ??????????? <variable name="infoId" access="read"></variable> ??????????? <variable name="infoTitle" access="read"></variable> ??????????? <variable name="infoContent" access="read"></variable> ??????????? <variable name="infoWriterId" access="read"></variable> ??????????? <variable name="infoWritedTime" access="read"></variable> ??????????? <variable name="checkInfo"></variable> ??????????? <variable name="passed" access="read,write,required"></variable> ??????????? <variable name="infoCheckerId" access="read,write,required"></variable> ???????? </controller> Table?16.26.?
Name Type Multiplicity Description
Class全類名 attribute Optional 可選 the fully qualified classname of an implementation of org.jbpm.taskmgmt.def.TaskControllerHandler
config-type配置類型 attribute optional {field|bean|constructor|configuration-property}. Specifies how the assignment-handler-object should be constructed and how the content of this element should be used as configuration information for that assignment-handler-object.
{content} either the content of the controller is the configuration of the specified task controller handler (if the class attribute is specified. if no task controller handler is specified, the content must be a list of variable elements.
variable任務變量 如果沒有指定class屬性,controller元素的內容必須是一些任務變量。Task中將可以使用它們。 element [0..*] in case no task controller handler is specified by the class attribute, the content of the controller element must be a list of variables.
16.4.28.?sub-process子業務程序 Process-state中指定指向的子業務程序定義 Table?16.27.?
Name Type Multiplicity Description
Name子業務程序定義的名字 attribute required the name of the sub process. To know how you can test subprocesses, see Section?18.3, “Testing sub processes”
Version版本 默認為最新版 attribute optional the version of the sub process. If no version is specified, the latest version of the given process will be taken.
16.4.29.?condition條件 Decision節點的transition的條件,為true,就執行該transition。 Table?16.28.?
Name Type Multiplicity Description
{content} or attribute expression 內容,或者屬性EL表達式。 條件元素的內容是jPDL的EL表達式,返回true/false。 Decision將執行第一個表達式值為true的轉向(次序依照processdefinition.xml中出現的先后順序)。如果沒有條件是真的轉向,那么就會執行默認轉向(第一個) required The contents of the condition element is a jPDL expression that should evaluate to a boolean. A decision takes the first transition (as ordered in the processdefinition.xml) for which the expression resolves to true. If none of the conditions resolve to true, the default leaving transition (== the first one) will be taken.
16.4.30.?exception-handler異常處理器 Table?16.29.?
Name Type Multiplicity Description
exception-class 異常類 指定要處理的可拋出(異常)類的全類名。如果不指定,那么就可以處理所有節點中ActionHandler等拋出的異常。 attribute Optional 可選 specifies the fully qualified name of the java throwable class that should match this exception handler. If this attribute is not specified, it matches all exceptions (java.lang.Throwable).
action動作 當異常處理器處理異常時,執行的動作。 element [1..*] 1或多 a list of actions to be executed when an exception is being handled by this exception handler.

轉載于:https://www.cnblogs.com/armlinux/archive/2006/10/13/2391068.html

總結

以上是生活随笔為你收集整理的JPDL3.1规范手册的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

久久与婷婷 | 欧美日韩视频观看 | 久操视频在线观看 | 日韩免费三级 | 就操操久久 | 黄色app网站在线观看 | 亚洲伊人第一页 | 青草视频网 | 永久中文字幕 | 99视频精品 | 亚洲成人精品国产 | 成人资源网| 国产黄a三级三级 | 免费男女羞羞的视频网站中文字幕 | 999久久久久久久久 69av视频在线观看 | 久久的色| 国产麻豆视频在线观看 | 日日干日日操 | 亚洲蜜桃在线 | 99久久久久久 | 成人av.com | 91看毛片| 福利一区二区 | 免费观看av网站 | 综合色亚洲 | 国产视频91在线 | 亚洲欧洲成人精品av97 | 狠狠色丁香婷婷综合欧美 | 国产精品久久久久一区二区三区共 | 97在线免费观看 | 中文字幕av全部资源www中文字幕在线观看 | 国产原创在线观看 | 欧美日韩不卡一区二区三区 | 精品国产一二三四区 | 久久综合免费视频 | 日韩免费二区 | 玖玖爱国产在线 | 波多野结衣在线中文字幕 | www.少妇| 九草在线视频 | 久久久国产一区二区 | 久久久久久久亚洲精品 | 欧美夫妻性生活电影 | 黄色网址国产 | 成人黄色在线视频 | 国产精品久久伊人 | a资源在线| 久久久亚洲成人 | 欧美另类人妖 | 亚洲成人资源在线观看 | 免费中文字幕在线观看 | 啪啪资源| 色妞色视频一区二区三区四区 | 天天爽人人爽夜夜爽 | 天天干干 | 在线国产中文字幕 | 精品亚洲视频在线观看 | 精品国产区在线 | 国产在线 一区二区三区 | 国产精品永久免费视频 | 99九九99九九九视频精品 | 国产a视频免费观看 | 国产美女视频免费 | 永久免费在线 | 色激情五月 | 看av免费 | 国产99久久99热这里精品5 | 欧美精品一区二区性色 | 国产在线高清精品 | 国产精品美女久久久久久久 | 欧美黑人xxxx猛性大交 | 97在线观看视频国产 | 国模一区二区三区四区 | 日韩专区在线 | 黄色在线视频网址 | 亚洲欧美婷婷六月色综合 | 久久精品视频99 | 久久免费精品视频 | 超碰在线国产 | 亚洲视频精选 | 综合激情网...| 久久精品视频观看 | 国产精品理论在线观看 | 在线免费观看不卡av | 久久草在线视频国产 | 国产精品亚洲综合久久 | 国产精品扒开做爽爽的视频 | 又黄又爽又湿又无遮挡的在线视频 | 日韩黄色影院 | 五月开心激情 | 91视频麻豆 | 97精品国产97久久久久久粉红 | 国产香蕉视频在线播放 | 夜夜夜夜操 | 国产精品资源在线 | 91污在线 | 精品高清视频 | 国产成人久久av977小说 | 国产精品96久久久久久吹潮 | av在线免费在线观看 | 亚洲美女免费精品视频在线观看 | 国产综合香蕉五月婷在线 | 深爱激情av | 99精品免费 | 亚洲爱爱视频 | 深爱激情五月综合 | 成人18视频| 日韩免费三级 | 91九色porny在线 | 黄色91在线 | 日韩网站一区 | 日韩精品一区电影 | 天天操天天摸天天射 | 偷拍区另类综合在线 | 国产成人精品av | 色88久久| 久久激情视频 久久 | www.在线看片.com| 爱色婷婷| 国产精品观看 | 久久不射电影院 | 在线免费观看av网站 | 超碰97在线资源 | 亚洲一区美女视频在线观看免费 | 国产精品观看在线亚洲人成网 | 麻豆免费视频观看 | 不卡视频一区二区三区 | 久久精精品视频 | 色停停五月天 | 国产不卡av在线播放 | 高潮毛片无遮挡高清免费 | 国产午夜精品一区 | 日韩专区 在线 | 天天射天天射 | 国产免费又爽又刺激在线观看 | 国产99精品在线观看 | 91九色老| 国产中文字幕免费 | 国产亚洲精品bv在线观看 | 亚洲在线精品 | 91激情小视频 | 日韩成人在线一区二区 | av片免费播放 | 国产福利在线免费 | 久久久免费播放 | 亚洲午夜不卡 | 综合伊人久久 | 91精品国产高清自在线观看 | 国产一区二区在线免费 | 久久精品人人做人人综合老师 | 狠狠干夜夜爱 | 黄色软件视频网站 | 欧美激情综合色 | 日韩欧美91 | 精品亚洲成a人在线观看 | 久久99精品久久久久久三级 | 亚洲第五色综合网 | 国产xxxx做受性欧美88 | 久久久www成人免费毛片麻豆 | 日韩av区| 国产经典av | 成人久久亚洲 | 成人一区二区三区在线观看 | 中文字幕亚洲国产 | 日本一区二区三区免费看 | 日韩视频中文字幕 | 国产亚洲精品福利 | 一级性av | 黄色电影在线免费观看 | 伊人电影天堂 | 日韩av中文字幕在线免费观看 | 天天干,夜夜操 | 91av在线免费 | 免费在线观看一区二区三区 | 国产精品毛片一区视频播 | 午夜久久视频 | 日韩欧美视频在线观看免费 | 97视频人人澡人人爽 | 奇米影视8888| wwwwww色| 欧美日韩国产精品一区二区三区 | 久久精品国产亚洲 | 91网址在线观看 | 麻豆久久久久久久 | 在线观看一 | 99视频精品 | 欧美日韩1区2区 | 美女网站视频色 | 天天草夜夜| 成人毛片一区 | 婷婷av电影 | 91香蕉国产在线观看软件 | 超碰人人超 | 久久综合九色99 | 久草电影网 | 色婷婷狠狠操 | www.亚洲在线 | 中文字幕888| 91精品欧美一区二区三区 | 精品一区 在线 | 99久久精品国产观看 | 99综合久久 | 六月丁香六月婷婷 | 天天夜操 | 日韩视频免费在线 | 欧美日bb | 韩国精品在线观看 | 国内视频 | 欧美一级黄大片 | 激情五月播播久久久精品 | 欧美一区二区三区在线播放 | 一区二区三区精品在线视频 | 在线成人国产 | 国产看片免费 | 亚洲精品视频在线观看免费视频 | 日韩性xxx| 国产乱对白刺激视频在线观看女王 | www.av在线.com| 国产九九九九九 | 久久国产视屏 | 99久久久久久久久 | 天天操天天添 | 91麻豆精品国产自产在线 | 中文字幕在线观看完整版电影 | 亚洲 欧美变态 另类 综合 | 国产成人一区二区三区电影 | 欧美做受xxx| 亚洲国产美女精品久久久久∴ | 99精品视频一区 | 美女久久久久久久久久久 | 少妇bbr搡bbb搡bbb | 国产在线a免费观看 | 亚洲电影网站 | 国产精品自在线拍国产 | 亚洲理论片在线观看 | 婷婷久久网站 | 国产欧美精品一区二区三区四区 | 99视频一区二区 | 国产麻豆电影 | 色网站中文字幕 | 国产精品一区二区白浆 | 欧美黑人性猛交 | 日韩 精品 一区 国产 麻豆 | 成年人在线播放视频 | 久久人人爽av | 久久久久在线观看 | 国产一级片免费视频 | 日韩精品在线视频 | 在线观看麻豆av | 国产97在线视频 | 国产一区二区三区视频在线 | 91久久爱热色涩涩 | 国产精品久久久久影视 | a级国产乱理论片在线观看 伊人宗合网 | 99久久99久久精品国产片果冰 | 成人网页在线免费观看 | 在线视频观看成人 | 美女黄频| 日韩av不卡播放 | 国产日产精品久久久久快鸭 | 在线免费视频你懂的 | www.色综合.com| 美女在线观看av | 国产99久久九九精品 | 综合婷婷久久 | www.黄色片网站 | www.啪啪.com | 国产精品色婷婷视频 | 国产a免费 | 免费a级观看 | 麻豆影视网站 | 国产一区在线观看免费 | 久久精品8| 国产精品亚洲片夜色在线 | 91精品欧美 | 五月网婷婷 | 在线小视频你懂的 | 成人黄色电影在线观看 | 中文字幕亚洲字幕 | 日本精品中文字幕 | 国内精品美女在线观看 | 国产精品一区二区三区电影 | 精品国产人成亚洲区 | 在线看成人av | 国产 日韩 欧美 中文 在线播放 | 亚洲黄色免费在线看 | 天天天天干 | 91成人免费观看视频 | 99综合影院在线 | 久久这里只精品 | 久久国产视频网站 | 中文字幕亚洲高清 | 日日日日日 | 欧洲色吧 | 成人九九视频 | 香蕉在线视频观看 | 国产亚洲一区二区三区 | 欧美激情综合色综合啪啪五月 | 婷婷播播网 | 亚洲视频 视频在线 | 超碰97在线人人 | 99精品在线免费视频 | 九九热视频在线播放 | 日本精品久久久久久 | 噜噜色官网 | 视频91在线 | 免费看一级片 | 成人av电影网址 | 亚洲精品欧洲精品 | 99精品在线视频播放 | 日韩电影一区二区三区在线观看 | 亚洲欧美国产日韩在线观看 | 天天干天天做 | 亚洲欧美在线观看视频 | 亚洲视频资源在线 | av在线播放免费 | 国产福利网站 | 国产一级片播放 | www.久久91| 激情在线五月天 | 亚洲精品国产精品国 | 国产99爱 | 国产亚洲va综合人人澡精品 | 2018亚洲男人天堂 | 色婷婷综合久久久久 | 色综合人人 | 日韩免费av片 | 黄色影院在线播放 | 日韩电影一区二区在线 | 日韩一区二区三区在线看 | 超碰97成人 | 99国产精品一区二区 | 国产精品久久中文字幕 | 成年人免费在线 | 干亚洲少妇 | 天天色天天综合网 | 国产中出在线观看 | 国产第页 | 热久久99这里有精品 | 天天天干夜夜夜操 | 国产成人福利在线观看 | 中文字幕在线免费看线人 | 六月久久婷婷 | www.久久婷婷 | 五月婷婷丁香激情 | 中文av日韩 | 久久免费在线视频 | 亚洲精品国产第一综合99久久 | 五月天综合色 | 黄色精品久久 | 久久最新 | 一级片视频免费观看 | 香蕉视频国产在线 | 91成人精品在线 | 国产成人a亚洲精品 | 青青草国产成人99久久 | 在线观看亚洲视频 | 中文字幕av免费 | 九九久久国产精品 | 超碰官网 | 日本黄色免费电影网站 | 久久国产露脸精品国产 | 99视频免费看 | 在线观看视频 | 玖玖视频| 国产精品你懂的在线观看 | 久久国产精品小视频 | 91视频在线自拍 | 亚洲 欧洲av| 国产免费xvideos视频入口 | 天天干天天射天天爽 | 久久呀| 欧美另类美少妇69xxxx | 精品久久久久久亚洲 | 日韩理论电影在线观看 | 国产精品免费久久久久 | 人人超碰人人 | 天天插狠狠干 | 一区二区视频免费在线观看 | 久久精品视频网站 | 久久99精品久久久久久三级 | 黄色日视频 | 丁香六月婷婷综合 | 亚洲女同ⅹxx女同tv | 国产成人精品一区二区三区在线 | 免费av看片| 新版资源中文在线观看 | 韩国av免费在线观看 | 三级小视频在线观看 | 五月天伊人网 | 国产高清综合 | 91精品少妇偷拍99 | 人人看人人 | 国产日韩欧美在线影视 | 在线国产欧美 | 色婷婷av一区二 | www.夜夜操| 色全色在线资源网 | 精品国产一区二区三区久久 | 91精品视频在线观看免费 | 中文在线最新版天堂 | 久久婷婷视频 | 欧美日韩国产一区二区三区 | 国产精品久久人 | 色.www| 久久国产乱 | 国产这里只有精品 | 三级av在线| 国际精品久久 | 精品成人在线 | 国产精品videoxxxx | 国产美女黄网站免费 | 国产资源精品在线观看 | 中文永久字幕 | 欧美二区三区91 | 日韩一二区在线 | 欧美午夜久久 | 国产一卡久久电影永久 | 国产成人333kkk | 国产黄网站在线观看 | 国产在线91精品 | 国产精品久久久久久久免费 | 亚洲免费在线播放视频 | 国产精品久久久久久久久毛片 | 免费在线观看av电影 | 午夜视频福利 | 在线观看欧美成人 | 人人澡人人模 | 日韩av中文字幕在线免费观看 | 五月天天色 | 成人免费看视频 | 国产成人精品电影久久久 | 人人舔人人插 | 国产精品情侣视频 | 国产在线观看免费 | 国产日产精品一区二区三区四区的观看方式 | 亚洲午夜久久久久久久久电影网 | 国产精品一区二区三区观看 | 国产另类xxxxhd高清 | 黄色动态图xx | 91大片网站 | 97成人资源| 欧美日韩在线精品一区二区 | 天天射天 | 久久9视频| 91免费高清观看 | 欧美激情第一区 | 久久污视频 | 国内丰满少妇猛烈精品播 | 在线观看成年人 | 欧美黑人xxxx猛性大交 | 亚洲最新在线视频 | 日韩午夜小视频 | 中文字幕有码在线观看 | 久久精品一区八戒影视 | 又黄又刺激 | 亚洲天堂视频在线 | 久久久久成人精品免费播放动漫 | 超碰人人干人人 | 亚洲一区二区三区在线看 | 亚洲精品白浆高清久久久久久 | 黄色a一级片| 91视频啊啊啊 | 天天草天天摸 | 日韩精品三区四区 | 97超碰福利久久精品 | 免费观看性生活大片 | 91精品视频免费在线观看 | 欧美另类高清 | 久久99精品久久久久久久久久久久 | 亚洲精品中文在线观看 | 日韩精品一区二区三区在线播放 | 国产高清在线一区 | 99亚洲视频 | 久久av免费电影 | 久久图 | 国产精品久久在线 | av在线网站大全 | 91网站在线视频 | 亚洲成av人片在线观看无 | 欧美日韩午夜在线 | 亚洲欧美视频一区二区三区 | 久色小说 | 在线导航av| 国产在线a | 日韩精品一区二区三区在线视频 | 免费观看全黄做爰大片国产 | av天天色 | 国产午夜精品免费一区二区三区视频 | 国产精品3 | 亚洲综合五月天 | 国产美女久久久 | 夜夜操天天干, | 91精品日韩| av片一区 | 国内偷拍精品视频 | 99精品国产在热久久下载 | 日韩国产精品一区 | 一二三精品视频 | 欧美成年黄网站色视频 | 亚洲黄色成人 | 国产精品成人久久久久 | 婷五月激情 | 午夜精品在线看 | 国内外成人在线视频 | 国产精品一区二区三区在线播放 | a电影免费看 | 亚洲一区二区三区四区在线视频 | 麻豆va一区二区三区久久浪 | 亚洲成av人影片在线观看 | 久久综合操 | 亚洲精品999 | 狠狠的操狠狠的干 | 国产在线不卡 | 国产婷婷久久 | 色射爱 | 综合网成人| 亚洲国产69 | 久久久久五月 | 国产精品18videosex性欧美 | 欧美日韩二区三区 | 91精品久久久久久综合乱菊 | 亚洲精品视频在线观看免费视频 | 蜜臀av免费一区二区三区 | 国产精品手机看片 | 中文字幕2021 | 黄色三级免费网址 | 欧美精品一区二区免费 | 六月丁香六月婷婷 | 国产18精品乱码免费看 | 久久婷婷视频 | 美女精品久久 | 综合色站 | 精品一区精品二区高清 | 日韩av免费一区 | 狠狠婷婷 | 欧美日韩破处 | 色多多视频在线观看 | 超碰成人网 | 久久免费a | 91精品国产综合久久福利 | 69xx视频 | 999在线观看视频 | 中文字幕一区二区三区四区视频 | 欧美在线视频免费 | 精品99999| 精品亚洲免费 | 玖玖在线免费视频 | 日韩免费不卡视频 | 欧美精品在线视频观看 | 天天拍天天操 | 九九久久国产精品 | 免费看毛片网站 | 色视频一区 | 一区二区丝袜 | 成人免费观看在线视频 | 99视频一区二区 | 青青色影院 | 亚洲视频在线免费观看 | 一级黄色片在线播放 | 国产一区二区在线免费观看 | 日韩资源视频 | 欧美激情视频免费看 | 欧美激情精品久久久久 | 美女视频一区二区 | 97精品国产91久久久久久久 | 免费成人在线视频网站 | 午夜精品久久久久久久久久久久 | www.久热| 91九色在线视频 | 日韩视频精品在线 | 欧美一区免费观看 | 永久免费视频国产 | 97自拍超碰| 国产资源免费 | 免费观看国产成人 | 91在线免费观看网站 | 亚洲成av人片 | 中文字幕一区二区三区四区在线视频 | 久久久久成人精品免费播放动漫 | 亚洲欧洲成人精品av97 | 久久久香蕉视频 | 国产精品大全 | 亚洲一区二区三区在线看 | av高清在线观看 | 天天干天天操 | 国产又粗又猛又色又黄网站 | 狂野欧美激情性xxxx | 超碰97公开 | 欧美午夜精品久久久久久孕妇 | 国产精品手机播放 | 在线观看视频中文字幕 | 亚洲综合在线观看视频 | 在线不卡a | 国产精品美女久久久久久 | 久久精品久久久久久久 | 精品在线视频观看 | 免费看一及片 | 福利久久久| 国产精品免费一区二区三区 | 天天干天天摸天天操 | 亚洲手机天堂 | www.福利| 久久久精品 一区二区三区 国产99视频在线观看 | 色视频成人在线观看免 | 丁香av| 亚洲国产成人在线播放 | 免费黄色在线 | 在线视频观看你懂的 | 日韩欧美成| 天天操天天射天天 | 中文字幕人成乱码在线观看 | 在线观看av网站 | 网站免费黄色 | 国产视频99 | 狠狠色免费 | 最近中文字幕第一页 | 日韩毛片在线免费观看 | 国产精品久久久久久久久软件 | 97福利在线观看 | 一级成人网 | 欧美狠狠色 | 久一久久 | 国产99色 | 国产日韩三级 | 日本夜夜草视频网站 | 色噜噜在线观看 | 在线小视频国产 | 中文字幕在线观看完整 | 99视频国产精品免费观看 | 蜜臀精品久久久久久蜜臀 | 日韩网站免费观看 | 国产精品久久久久久久久久免费看 | 亚洲精品字幕在线 | 五月宗合网 | 久久午夜国产 | 丁香花在线观看视频在线 | av片免费播放 | 日韩欧美在线观看一区二区 | 99久久夜色精品国产亚洲96 | 在线观看网站你懂的 | 亚洲激情 在线 | 在线有码中文字幕 | 激情视频一区 | www日韩欧美 | 九九九九免费视频 | 福利一区在线视频 | 日韩中字在线观看 | 99精品国产一区二区三区麻豆 | 91久久久久久国产精品 | 国产精品99久久久精品 | 欧洲精品一区二区 | a级国产乱理论片在线观看 伊人宗合网 | 国产精品永久久久久久久www | 久久亚洲欧美日韩精品专区 | 成人av午夜 | 国际精品久久久久 | 精品一区二区久久久久久久网站 | 国产伦精品一区二区三区照片91 | 中文在线www| 色婷婷激情电影 | 日日弄天天弄美女bbbb | 日韩手机在线 | www激情网| 欧美日韩中文字幕视频 | 成年人视频免费在线 | 国产手机视频在线观看 | 久久区二区 | 国产理论免费 | 国产亚洲va综合人人澡精品 | 夜色资源网 | 精品视频国产 | 久草在线 | 极品久久久 | 久久99精品国产麻豆宅宅 | 国产精品剧情在线亚洲 | 久久av伊人 | 日韩一级成人av | 蜜臀av一区二区 | www.日日日.com| 人人玩人人爽 | 激情影音 | 99久久精品免费看国产 | 欧美黑人性爽 | 天天操天天干天天 | 久久av在线 | 亚洲综合最新在线 | 成人影音av | 天天做天天爱天天综合网 | 一区二区三区在线观看免费视频 | 日韩资源视频 | 天天五月天色 | 亚洲成人av在线电影 | 亚洲丝袜一区二区 | 久久久久影视 | 天天色天天操综合网 | 日韩理论在线视频 | 国产视频久久久 | 中文字幕在线观看三区 | 国产精品乱看 | 亚洲 欧美日韩 国产 中文 | 免费在线观看日韩 | 99re6热在线精品视频 | 欧洲性视频| 国产精品一区二区视频 | 91在线观看视频 | 亚洲精品在线视频网站 | 美女视频黄免费 | 亚洲综合色丁香婷婷六月图片 | 日韩在线二区 | 在线观看岛国 | 亚洲高清精品在线 | 国产美女视频 | 91在线你懂的 | 91网站在线视频 | 欧美一二三在线 | 亚洲黄a| 天天干,天天射,天天操,天天摸 | 亚洲欧美视频网站 | 中文字幕免费在线看 | 国产美女免费观看 | 亚洲在线高清 | 成人cosplay福利网站 | 三级视频日韩 | 国产色综合 | 亚洲精品网站在线 | 久久99精品久久久久久久久久久久 | 成人在线视频免费看 | 日韩中字在线观看 | 在线观看视频一区二区三区 | 国产做a爱一级久久 | 国产另类av | 国产精品一区二区三区在线免费观看 | 天天干天天操天天入 | 黄色91免费观看 | 日本爱爱免费视频 | 婷婷av网 | 国产一区电影在线观看 | 国产r级在线观看 | 96久久欧美麻豆网站 | 高清不卡毛片 | 天天插天天操天天干 | 亚洲日韩精品欧美一区二区 | 国产精品美女久久久久久免费 | 99色国产 | 在线观看成年人 | 在线看片一区 | 久久毛片视频 | 日日爱视频 | 亚洲视频在线免费看 | 天天草天天干天天 | 久久夜色精品亚洲噜噜国4 午夜视频在线观看欧美 | 天天射一射 | 成人免费视频a | 色五月色开心色婷婷色丁香 | 人人爱人人添 | 操操操人人人 | 亚洲免费a | 亚洲免费精彩视频 | 一本一道久久a久久精品蜜桃 | 亚洲精品在线资源 | 天天干天天天天 | 国产精品视频久久久 | 日韩三级视频 | 亚洲区另类春色综合小说校园片 | 亚洲综合精品在线 | 日日干夜夜爱 | 国产一区二区不卡在线 | 日韩精品一区二区在线视频 | 日韩大片在线 | 一级黄色网址 | 超碰人人在 | 亚洲精品系列 | 亚洲成人av片 | 亚洲精品视频中文字幕 | 韩日av一区二区 | 999久久久久久久久久久 | 色香蕉在线视频 | 91最新在线 | 激情欧美一区二区免费视频 | 九九99视频 | 午夜国产成人 | 国产99在线播放 | 狠狠狠色丁香婷婷综合久久88 | 日韩a在线观看 | 丁香在线视频 | 911av视频| 操久| 一级成人免费视频 | 成年人在线视频观看 | 91精品视频观看 | 欧美在线一 | 天天综合成人网 | 精品国产欧美 | 在线观看aa | 一级黄色免费网站 | avlulu久久精品 | 国产亚洲视频在线免费观看 | 热久久这里只有精品 | 久久狠狠婷婷 | www91在线| 国产在线色站 | 亚洲精品一区中文字幕乱码 | 973理论片235影院9 | 丁香婷婷色综合亚洲电影 | 日韩大片免费在线观看 | 91免费看片黄 | 久久精品欧美日韩精品 | 在线网站黄 | 国产69精品久久99的直播节目 | 日本高清dvd| 中文字幕一区三区 | 国产麻豆剧果冻传媒视频播放量 | 亚洲专区欧美专区 | 精品美女在线观看 | 中文字幕成人在线 | 国产视频一区二区在线播放 | 亚州精品一二三区 | 91精品日韩 | www最近高清中文国语在线观看 | 在线观看亚洲精品 | 欧美 亚洲 另类 激情 另类 | 国产精品va视频 | 亚洲视频 中文字幕 | 成人av在线看 | 国产成人久久77777精品 | 在线观看亚洲精品 | 激情久久一区二区三区 | 伊人网站 | av免费网站在线观看 | 色婷婷国产精品 | 国产一级高清视频 | 日本一区二区免费在线观看 | 综合av在线 | 成人免费一级片 | 天天色天天 | 最新av网站在线观看 | 999色视频| 精品国产乱码久久久久久1区2匹 | 天天射射天天 | 天堂在线视频免费观看 | 久久精品中文 | 日韩大陆欧美高清视频区 | 亚洲午夜精品电影 | 欧美一级片免费 | 午夜精品一区二区三区在线视频 | 99久久婷婷国产综合精品 | 怡红院av久久久久久久 | 91精品婷婷国产综合久久蝌蚪 | 久久久麻豆精品一区二区 | 在线观看免费成人 | 久久99热这里只有精品国产 | 99久久久免费视频 | 国产尤物视频在线 | 一区二区在线电影 | 最新久久久 | 在线视频欧美日韩 | 天天色综合久久 | 91免费日韩 | 日韩av电影免费观看 | 欧美一级大片在线观看 | 免费国产黄线在线观看视频 | 日本中文字幕在线一区 | 91传媒免费观看 | 午夜精品久久久久久久99热影院 | 精品999在线 | 激情久久久久久久久久久久久久久久 | 成人中文字幕av | 91传媒在线看| 久草精品视频 | 久久夜色精品亚洲噜噜国4 午夜视频在线观看欧美 | 免费看黄视频 | 欧美日韩国产一区二区在线观看 | 一本到视频在线观看 | 国产精品门事件 | 亚洲区二区 | 91最新在线观看 | 久久国产精彩视频 | 超碰97中文 | 欧美一级片 | 国内久久久久久 | 99色国产| 亚洲一级二级 | 91豆花在线| 日韩久久激情 | 亚洲欧美国产视频 | 香蕉视频日本 | 91伊人久久大香线蕉蜜芽人口 | 国产精品美女久久久免费 | 欧美在线观看小视频 | 色99中文字幕| 欧美日韩后 | 国产福利一区二区三区在线观看 | 69视频在线播放 | 91插插插免费视频 | 国产专区精品视频 | 亚洲欧美日韩精品一区二区 | 中文字幕在线日 | 免费看91的网站 | 久久大香线蕉app | 亚洲精品色婷婷 | 亚洲一区精品二人人爽久久 | 嫩模bbw搡bbbb搡bbbb | 国产精品系列在线播放 | 久久精品一级片 | 欧美日韩在线精品 | 国产成人av在线影院 | 99国产免费网址 | 69热国产视频 | 日韩欧美大片免费观看 | 国产精品成人一区二区三区吃奶 | 五月激情久久 | 国产视频在线一区二区 | 免费国产在线视频 | 亚洲欧美综合精品久久成人 | 免费看一级黄色大全 | 欧美 亚洲 另类 激情 另类 | 成人免费视频播放 | 国产美女精品久久久 | 国产主播大尺度精品福利免费 | 91免费试看| 天天色天天射天天操 | av黄色成人| 正在播放久久 | 在线观看成人一级片 | a电影免费看 | 亚洲成人av在线播放 | 精品国产一区在线观看 | 婷婷在线资源 | 天天干天天操人体 | 色噜噜噜 | 国产精品日韩久久久久 | 精品极品在线 | 色噜噜在线观看视频 | 91麻豆免费看 | 国内免费久久久久久久久久久 | 高潮毛片无遮挡高清免费 | 国产主播大尺度精品福利免费 | 中文字幕视频网站 | 婷婷六月综合亚洲 | 亚洲欧美日韩在线一区二区 | 毛片在线播放网址 | 亚洲经典视频在线观看 | 国产亚洲91| 91精品国产综合久久婷婷香蕉 | 中文字幕av全部资源www中文字幕在线观看 | 91综合在线| 亚洲一级黄色 | 四虎影视8848aamm| 中文字幕免费国产精品 | 韩国三级av在线 | 九七视频在线 | 天堂网一区二区三区 | 免费在线国产黄色 | 色婷婷综合成人av | 日本激情视频中文字幕 | 国产在线中文字幕 | 天天干天天操天天入 | 亚洲夜夜网 | 涩涩网站在线观看 | 国产美女搞久久 | 婷婷丁香花五月天 | 国产一级视频在线观看 | 99精品黄色 | 天天操夜夜操天天射 | 久久久国产在线视频 | 国产精品毛片 | 色在线最新 | av福利第一导航 | 高清国产在线一区 | 日本女人的性生活视频 | 国产成人久久77777精品 | 精品国产激情 | 色在线视频 | 91在线中文字幕 | 国产一区在线看 | 91精品国产一区二区三区 | 麻豆观看| 欧美激情精品久久久久久 | 97电影在线观看 | 91精品国产乱码久久桃 | 超碰成人免费电影 | 亚洲高清av在线 | 日韩精品一卡 | 一区二区三区在线观看免费 | 日韩精品一区二区三区电影 | 九色最新网址 | 国产精品剧情在线亚洲 | 国色天香第二季 | 亚洲一区二区91 | 亚洲精品视频观看 | 99久久99久久精品国产片 | 日韩大陆欧美高清视频区 | 日韩电影一区二区三区 | 视频在线观看入口黄最新永久免费国产 | 国产一区福利在线 | 国产一区二区三区免费观看视频 | 国色天香在线观看 |