[jbpm-commits] JBoss JBPM SVN: r4295 - in jbpm4/trunk/modules: examples/src/test/resources/org/jbpm/examples/task and 4 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Mar 19 09:09:58 EDT 2009
Author: koen.aers at jboss.com
Date: 2009-03-19 09:09:58 -0400 (Thu, 19 Mar 2009)
New Revision: 4295
Added:
jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/
jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/complete/
jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/complete/process.jpdl.xml
jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/ignore/
jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/ignore/process.jpdl.xml
jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/handler/
jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/handler/process.jpdl.xml
Modified:
jbpm4/trunk/modules/api/src/main/resources/jpdl.xsd
Log:
- adaptation of xsd
- task handler example
- task cancel examples
Modified: jbpm4/trunk/modules/api/src/main/resources/jpdl.xsd
===================================================================
--- jbpm4/trunk/modules/api/src/main/resources/jpdl.xsd 2009-03-19 11:49:24 UTC (rev 4294)
+++ jbpm4/trunk/modules/api/src/main/resources/jpdl.xsd 2009-03-19 13:09:58 UTC (rev 4295)
@@ -315,10 +315,12 @@
</documentation></annotation>
<complexType>
<sequence>
+ <element name="handler" type="tns:wireObjectType"></element>
<element ref="tns:transition" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attributeGroup ref="tns:activityAttributes" />
<attributeGroup ref="tns:assignmentAttributes"/>
+ <attribute name="cancel" type="tns:cancelType" default="complete" />
</complexType>
</element>
@@ -416,6 +418,14 @@
</choice>
</group>
+ <simpleType name="cancelType">
+ <restriction base="string">
+ <enumeration value="forbidden"/>
+ <enumeration value="ignore"/>
+ <enumeration value="complete"/>
+ </restriction>
+ </simpleType>
+
<group name="wireObjectGroup">
<choice>
<element name="string">
@@ -575,17 +585,32 @@
</attributeGroup>
<attributeGroup name="assignmentAttributes">
+ <annotation><documentation>the assignment attributes will be used in
+ tasks and swimlanes to specify to whom these respectively are assigned.
+ </documentation></annotation>
<attribute name="assignee" type="string">
+ <annotation><documentation>An expression '#{expr}' that resolves to an identifier of
+ the actual actor that needs to execute the task. It can be a literal as well.
+ </documentation></annotation>
</attribute>
<attribute name="candidate-groups" type="string">
+ <annotation><documentation>An expression '#{expr}' that resolves to a comma separated
+ list of groups of actors with candidates to execute the task.
+ </documentation></annotation>
</attribute>
<attribute name="candidate-users" type="string">
+ <annotation><documentation>An expression '#{expr}' that resolves to a comma separated
+ list of actors that are candidate to execute the task.
+ </documentation></annotation>
</attribute>
<attribute name="swimlane" type="string">
+ <annotation><documentation>The name of the swimlane that will contain the actor that
+ needs to execute the task.
+ </documentation></annotation>
</attribute>
</attributeGroup>
- <complexType name="assignmentType">
+<!-- <complexType name="assignmentType">
<annotation><documentation>An element of type assignmentType will be used in
tasks and swimlanes to specify to whom these respectively are assigned.
</documentation></annotation>
@@ -609,13 +634,13 @@
needs to execute the task.
</documentation></annotation>
</attribute>
- </complexType>
+ </complexType>
<element name="assignment" type="tns:assignmentType">
<annotation><documentation>The assignment which specifies who needs to execute
task or who is among the candidates to execute it.
</documentation></annotation>
- </element>
+ </element> -->
<complexType name="swimlaneType">
<annotation><documentation>Elements of type swimlaneType will be used in the
Added: jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/complete/process.jpdl.xml
===================================================================
--- jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/complete/process.jpdl.xml (rev 0)
+++ jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/complete/process.jpdl.xml 2009-03-19 13:09:58 UTC (rev 4295)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process name="CancelComplete" xmlns="http://jbpm.org/4/jpdl">
+
+ <start g="20,20,48,48">
+ <transition to="open case" />
+ </start>
+
+ <task
+ name="open case"
+ g="96,16,127,52">
+
+ <transition to="wait"/>
+ </task>
+
+ <state name="wait" g="255,16,88,52"/>
+
+</process>
Added: jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/ignore/process.jpdl.xml
===================================================================
--- jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/ignore/process.jpdl.xml (rev 0)
+++ jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/cancel/ignore/process.jpdl.xml 2009-03-19 13:09:58 UTC (rev 4295)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process name="CancelComplete" xmlns="http://jbpm.org/4/jpdl">
+
+ <start g="20,20,48,48">
+ <transition to="open case" />
+ </start>
+
+ <task
+ name="open case"
+ cancel="ignore"
+ g="96,16,127,52">
+
+ <transition to="wait"/>
+ </task>
+
+ <state name="wait" g="255,16,88,52"/>
+
+</process>
Added: jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/handler/process.jpdl.xml
===================================================================
--- jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/handler/process.jpdl.xml (rev 0)
+++ jbpm4/trunk/modules/examples/src/test/resources/org/jbpm/examples/task/handler/process.jpdl.xml 2009-03-19 13:09:58 UTC (rev 4295)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process name="TaskHandler" xmlns="http://jbpm.org/4/jpdl">
+
+ <start g="20,20,48,48">
+ <transition to="open case" />
+ </start>
+
+ <task
+ name="open case"
+ g="96,16,127,52">
+
+ <handler class="org.jbpm.examples.java.AssignTask">
+ <field name="assignee"><string value="John Doe"/></field>
+ </handler>
+
+ <transition to="wait"/>
+ </task>
+
+ <state name="wait" g="255,16,88,52"/>
+
+</process>
More information about the jbpm-commits
mailing list