欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

子流程---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

  1. xml version="1.0" encoding="UTF-8"?>
  2. process-definition
  3. xmlns="urn:jbpm.org:jpdl-3.2" name="testTaskNode02">
  4. start-state name="start">
  5. transition name="" to="task1">transition>
  6. start-state>
  7. task-node name="task1">
  8. event type="task-create">
  9. script>
  10. print("触发了task-create事件");
  11. script>
  12. event>
  13. event type="task-start">
  14. script>
  15. print("触发了task-start事件");
  16. script>
  17. event>
  18. event type="task-assign">
  19. script>
  20. print("触发了task-assign事件");
  21. script>
  22. event>
  23. event type="task-end">
  24. script>
  25. print("触发了task-end事件");
  26. script>
  27. event>
  28. task>
  29. assignment actor-id="bf015">assignment>
  30. task>
  31. transition name="" to="end1">transition>
  32. task-node>
  33. end-state name="end1">end-state>
  34. process-definition>
  35. xml version="1.0" encoding="UTF-8"?>
  36. process-definition
  37. xmlns="urn:jbpm.org:jpdl-3.2" name="slaveprocess">
  38. start-state name="start">
  39. transition name="" to="task1">transition>
  40. start-state>
  41. task-node name="task1">
  42. task name="slave task">
  43. assignment actor-id="slave">assignment>
  44. task>
  45. transition name="" to="end1">transition>
  46. task-node>
  47. end-state name="end1">end-state>
  48. process-definition>
  49. xml version="1.0" encoding="UTF-8"?>
  50. process-definition
  51. xmlns="urn:jbpm.org:jpdl-3.2" name="masterprocess">
  52. start-state name="start">
  53. transition name="" to="task1">transition>
  54. start-state>
  55. task-node name="task1">
  56. task name="master task">
  57. assignment actor-id="master">assignment>
  58. task>
  59. transition name="" to="process1">transition>
  60. task-node>
  61. process-state name="process1">
  62. sub-process name="slaveprocess">sub-process>
  63. variable name="masterVar" access="read">variable>
  64. variable name="slaveVar" access="write">variable>
  65. transition name="" to="task2">transition>
  66. process-state>
  67. task-node name="task2">
  68. task name="master task2">
  69. assignment actor-id="master2">assignment>
  70. task>
  71. transition name="" to="end1">transition>
  72. task-node>
  73. end-state name="end1">end-state>
  74. process-definition>

小俊垃圾回收站