SimplestWorkflowDevelop...
|
Here we suppose you already installed jBoss GPD - an Eclipse plugin for jBPM process development.
from jBoss site (at current moment latest version is 3.2.2) and unzip it in some place.
Then you need to add this runtime into your workplace. To do it open "Window"->"Preferences" and there "JBoss jBPM"->"Runtime Locations"
![]() |
In opened dialog click "Add" and specify location there you unziped jBPM (name will be specified automatically).
![]() |
Enter Project Name and Project Location in next screen (standard Eclipse form) and then choose jBPM Version, will be used in this project (Previosly configured in Eclipse).
![]() |
After creation you will see your new project in "Project Explorer"
![]() |
![]() |
And specify name ("SimplestWorkflow" for example).
New Workflow will be created and Workflow Editor (currently empty) will be opened. This editor has Toolbox with available graphical objects, for all select graphical objects you can specify different properties in "Properties" Tab. You can always switch Workflow Editor from default "Diagram" mode to "Design" or "Source" (tabs at the bottom of editor) to see generated XML file.
Now, we can start to develop our first simplest workflow. This workflow should describe simplest personal task, then somebody may create task for himself, and then complete it at some moment.
By same way you can create End-Node "Personal Task Finished"
![]() |
For Start-Node we need to specify task - some action - some action, performed by person. To do in, select Start-Node in our workflow and in properties tab select "Task" and turn-on "Configure Task".
In Enabled "Task" dialog we can specify task options: specify Name ("Start Personal Task") and some description on General Tab.
![]() |
![]() |
![]() |
Lets Add Required "Comments" Variable for this task, as we create variable for Start-Task.
![]() |
Now, we need to link our nodes with transitions: select transition on Toolbox, and then click once on "Start Personal Task" Node and then second time on "Perform Personal Task" node. Transition will be created. by same way transition from "Perform Personal Task" to "Personal Task Finished" may be created.
To simplify placing nodes on diagram you can turn-on grid ("View"->"Show Grid" in main menu)
In our case we need "Perform Personal Task" be processed by same person, who created the Start-Task. To support such assignment EmForge stored name of user, created the Task in the special hidden variable "_owner" (Here you can get the list of special variables, created by EmForge)
But you should not care about this variable at all. To be able to assign task to "Process Instance Owner" - you need simple specify task assignment to special "_processOwner" swimlane:
![]() |
Next Article will describe how to deploy created workflow into EmForge.
| Last Modified by akakunin 8 months ago |