Difference between revisions of "Examples: Simple"
From OpenKM Documentation
Line 5: | Line 5: | ||
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
− | |||
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="simple"> | <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="simple"> | ||
<start-state name="start"> | <start-state name="start"> | ||
Line 15: | Line 14: | ||
</event> | </event> | ||
</start-state> | </start-state> | ||
+ | |||
<state name="state"> | <state name="state"> | ||
<event type="node-enter"> | <event type="node-enter"> | ||
Line 28: | Line 28: | ||
</transition> | </transition> | ||
</state> | </state> | ||
+ | |||
<end-state name="end"> | <end-state name="end"> | ||
<event type="node-enter"> | <event type="node-enter"> | ||
Line 39: | Line 40: | ||
== Form definition == | == Form definition == | ||
+ | None | ||
[[Category: Workflow Guide]] | [[Category: Workflow Guide]] |
Revision as of 11:28, 26 January 2010
Process image

Process definition
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="simple">
<start-state name="start">
<transition name="to_state" to="state"></transition>
<event type="node-leave">
<script>
print("Node start");
</script>
</event>
</start-state>
<state name="state">
<event type="node-enter">
<script>
print("Node state");
executionContext.leaveNode();
</script>
</event>
<transition name="to_end" to="end">
<action name="action" class="com.openkm.MessageActionHandler">
<message>About to finish!</message>
</action>
</transition>
</state>
<end-state name="end">
<event type="node-enter">
<script>
print("Node end ("+executionContext.getVariable("message")+")");
</script>
</event>
</end-state>
</process-definition>
Form definition
None