A Brief Introduction to the complete jbpm and SSH instances

Source: Internet
Author: User
Tags jbpm

This section briefly introduces the complete jbpm and SSH instances. If it is another version of the framework, it is easy to doProgram.

Process Definition

It is recommended to use the plug-in under eclipse provided by jbpm for the definition of the process. The graphical configuration plug-in installation file can be found under jbpm-starters-kit-3.1.4 \ jbpm-designer \ jbpm-GPD-feature \ eclipse, pay attention to the version. In this way, you can compress the three files in the defined process description into a zip package and deploy them in a unified manner to the database, so that the current node information of the image can be displayed in the B/S system.

1. Plug-in Installation

Copy the jbpm-GPD-feature folder to c: \ Program Files \ MyEclipse-6.0M1 \ eclipse \ plugins, pay attention to your own ecplise path.

Create a MyEclipse-6.0M1 file in the c: \ Program Files \ jbpm-gpd.link \ eclipse \ links folder. Content is as follows: Path = c: \ Program Files \ MyEclipse-6.0M1 \ eclipse \ plugins \ jbpm-GPD-feature.

Then restart eclipse to use the process definition function.

2. Process Definition

In the eclipse environment, choose File> New> JBoss jbpm under other> process definition. You must specify the folder to be created in your project file.

This will generate three files: gpd.xml?processdefinition.xml=processimage.jpg.

Processdefinition. XML is the process definition file. In this example:

 
 
  1. <?XML Version="1.0" Encoding=UTF-8"?>
  2. <Process-Definition Name="Document test process">
  3. Start-state name = "start" transition name = "Submit Michael approve " to = " zhangsan approval " transition
  4. </Start-state>
  5. <Task-node Name="Zhang San approval">
  6. <Task Name="Approval 1">
  7. <Assignment Actor-ID="James"/>
  8. </Task>
  9. <Transition Name="Submit for approval by Li Si" To="Li Si approval"></Transition>
  10. </Task-node>
  11. <Task-node Name="Li Si approval">
  12. <Task Name="Approval 2">
  13. <Assignment Actor-ID="Li Si"/>
  14. </Task>
  15. <Transition Name="Submit to Wang Wu for approval" To="Wang Wu approval"></Transition>
  16. </Task-node>
  17. <Task-node Name="Wang Wu approval">
  18. <Task Name="Approval 3">
  19. <Assignment Actor-ID="Wang Wu"/>
  20. </Task>
  21. <Transition Name="End Process" To="End"></Transition>
  22. </Task-node>
  23. <End-state Name="End"></End-state>
  24. </Process-Definition>

The processimage.jpg file is the image generated by the definition process, and The GPD. xml file is the coordinate description of the graphic file. It is used to display the flow picture position under B/S.

The GPD. xml file in this example

 
 
  1. <?XML Version="1.0" Encoding=UTF-8"?>
  2. <Process-digoal Name="Document test process" Width="801" Height="477">
  3. node name = "start" x =< /span> "308" Y = "4" width = "140" height = "40"
  4. <Transition Name="Submit to Michael Jacob for approval">
  5. <Label X="5" Y="-10"/>
  6. </Transition>
  7. </Node>
  8. <Node Name="Zhang San approval" X="310" Y="90" Width="140" Height="40">
  9. <Transition Name="Submit for approval by Li Si">
  10. <Label X="5" Y="-10"/>
  11. </Transition>
  12. </Node>
  13. <Node Name="Li Si approval" X="313" Y="192" Width="140" Height="40">
  14. <Transition Name="Submit to Wang Wu for approval">
  15. <Label X="5" Y="-10"/>
  16. </Transition>
  17. </Node>
  18. <Node Name="Wang Wu approval" X="308" Y="307" Width="140" Height="40">
  19. <Transition Name="End Process">
  20. <Label X="5" Y="-10"/>
  21. </Transition>
  22. </Node>
  23. <Node Name="End" X="307" Y="401" Width="140" Height="40"/>
  24. process-digoal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.