子流程---5
程序员文章站
2022-05-13 13:30:17
...
? xml version = 1.0 encoding = UTF-8 ? process-definition xmlns = urn:jbpm.org:jpdl-3.2 name = testTaskNode02 start-state name = start transition name = to = task1 / transition / start-state task-node name = task1 event type = task-create
- xml version="1.0" encoding="UTF-8"?>
- process-definition
- xmlns="urn:jbpm.org:jpdl-3.2" name="testTaskNode02">
- start-state name="start">
- transition name="" to="task1">transition>
- start-state>
- task-node name="task1">
- event type="task-create">
- script>
- print("触发了task-create事件");
- script>
- event>
- event type="task-start">
- script>
- print("触发了task-start事件");
- script>
- event>
- event type="task-assign">
- script>
- print("触发了task-assign事件");
- script>
- event>
- event type="task-end">
- script>
- print("触发了task-end事件");
- script>
- event>
- task>
- assignment actor-id="bf015">assignment>
- task>
- transition name="" to="end1">transition>
- task-node>
- end-state name="end1">end-state>
- process-definition>
- xml version="1.0" encoding="UTF-8"?>
- process-definition
- xmlns="urn:jbpm.org:jpdl-3.2" name="slaveprocess">
- start-state name="start">
- transition name="" to="task1">transition>
- start-state>
- task-node name="task1">
- task name="slave task">
- assignment actor-id="slave">assignment>
- task>
- transition name="" to="end1">transition>
- task-node>
- end-state name="end1">end-state>
- process-definition>
- xml version="1.0" encoding="UTF-8"?>
- process-definition
- xmlns="urn:jbpm.org:jpdl-3.2" name="masterprocess">
- start-state name="start">
- transition name="" to="task1">transition>
- start-state>
- task-node name="task1">
- task name="master task">
- assignment actor-id="master">assignment>
- task>
- transition name="" to="process1">transition>
- task-node>
- process-state name="process1">
- sub-process name="slaveprocess">sub-process>
- variable name="masterVar" access="read">variable>
- variable name="slaveVar" access="write">variable>
- transition name="" to="task2">transition>
- process-state>
- task-node name="task2">
- task name="master task2">
- assignment actor-id="master2">assignment>
- task>
- transition name="" to="end1">transition>
- task-node>
- end-state name="end1">end-state>
- process-definition>
小俊垃圾回收站