JBPM知識點------JPDL3.1規範
前言:
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”
.
|
<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>
- 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.
- properties : properties is optional and overwrites *all* hibernate properties as found in the hibernate.cfg.xml
- createschema : if set to true, the jbpm database schema is created before the processes get deployed.
<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.
<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.
- 3) configuration (optional) : the configuration of the delegation object in the format as required by the configuration type.
- String doesn't need converting, of course. But it is trimmed.
- 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':
· <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>
<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.
public class MyAction implements ActionHandler {
// access specifiers can be private, default, protected or public
private String city;
Integer rounds;
...
}
...
<action class="org.test.MyAction">
<city>Atlanta</city>
<rounds>5</rounds>
</action>
...
- 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)上下文實例
<process-definition xmlns="urn:jbpm.org:jpdl-3.1">
...
</process-definition>
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.
|
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.
|
Name
|
Type
|
Multiplicity
|
Description
|
{
action
|
script
|
create-timer
|
cancel-timer
}
一個定製的Action,代表這個節點的行爲。
|
element
|
1
|
a custom action that represents the behaviour for this node
|
公共節點元素
|
|
|
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}
|
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.
|
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.
|
異常處理器
它們能夠處理所有這個節點中的委派類拋出的異常
|
element
|
[0..*]
|
a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
|
Name
|
Type
|
Multiplicity
|
Description
|
name
|
attribute
|
required
|
the name of the end-state
|
event
事件
只有節點進入事件可用,因爲無法離開。
|
element
|
[0..*]
|
supported event types: {node-enter}
|
處理這個節點中所有的Java處理類拋出的異常。
|
element
|
[0..*]
|
a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
|
Name
|
Type
|
Multiplicity
|
Description
|
|
|
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.
|
|
|
Name
|
Type
|
Multiplicity
多樣性
|
Description
描述
|
子業務程序,指定這個節點代表的子業務程序的定義(這樣就不用在運行時指定實例了)
|
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.
|
|
|
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.
|
|
|
Name
|
Type
|
Multiplicity
|
Description
|
|
|
Name
|
Type
|
Multiplicity
|
Description
|
|
|
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
|
轉向
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
|
|
|
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
|
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)
|
element
|
[0..*]
|
a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
|
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”
.
|
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.
|
Name
|
Type
|
Multiplicity
|
Description
|
|
{content}
|
|
a bean shell script.
|
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.
|
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”
.
|
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
|
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).
|
Name
|
Type
|
Multiplicity
|
Description
|
Name
被取消的定時器的名字
|
attribute
|
optional
|
the name of the timer to be cancelled.
|
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
|
element
|
[0..*]
|
a list of exception handlers that applies to all exceptions thrown by delegation classes thrown in this process node.
|
|
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.
|
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.
|
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”
.
|
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.
|
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.
|
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.
|
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.
|