peopleactivity 24/11/2008,05:15 21.54 Kb
Summary:
This use case illustrate the working of PeopleActivity process. This process is initiated by using bpms console . After that process is created and completed by “ui-fw”.
Requirements:
1.Intalio BPMS Designer 5.2.
2.Intalio BPMS Server 5.2.
Preconditions:
1.Make sure Intalio|BPMS Server is up and running fine.
2.Make sure the Process Explorer pane does not contain any Intalio|BPMS Business Process Project with same name.
Process Download & Import:
1.Download “PeopleActivity.zip”.
2.Go to File > Import.
3.Select General > Existing Projects into Workspace and click Next >
4.Select the "Select archive file" radio button
5.Browse to select the downloaded archive file, click to Finish.
6.Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.
Steps for remake workflow form:
1.Go to "File > New > select "Intalio|BPMS Business Process Project".
2.Provide project name as "PeopleActivity", click to finish.
3.Right click on the project select New > "WorkFlow Form".
4.Provide File name as “PA” and click on Finish.
5.A Intalio| Designer Form Editor is visible on screen. Drag and drop Text Input control from Workflow Palette on form editor.
6.Go to Properties window and type “Request:” under Control Label property.
7.Drag and drop Radio Button control on form editor.
8.Go to Properties window, under Items property click on “Item Property” button.
9.A new window Item Property open where you define label and corresponding value for the defined label.
10.Type “Yes,I accept the request” under Label and corresponding to this label type “yes” for Value.
11.Click on New button to add the new label and value.
12.Similarly, type “No,I reject the request” under Label and give “no” for Value.
13. Click on OK button.
14.Drag and drop Text Area control on form editor.
15.In the Properties window under Control Label type “Comment:”.
16.Save workflow form.
Steps for remake process:
1.Right click on project, go to New > Business Process Diagram.
2.Provide File name as “PA”, click on Finish button.
3.A pool with a task is available in BPMN Editor Pane, name default pool as “Start” and task as 'Start process'.
4.Right click on start pool and select "Set pool non executable".
5.Add new pool by click on BPMN Editor (select "Add Pool" option from pop up menu) and name it as "PA".
6.Focus on 'Start process' task , drag out going message flow icon to "PA" pool and select the outgoing sequence flow icon to "Connect to a new Task", name this new task as 'receive'.
7.Focus on the receive task and drag the outgoing sequence flow icon to "Connect to a new Task", name this new task as “Create People Activity”.
8.Focus on the Create People Activity task and drag the outgoing sequence flow icon to "Connect to a new Task", name this new task as "Complete People Activity".
9.Go to Project, select workflow form “PA.xform”, drag and drop this form on the 'Start' pool and click on the second option “Use PA for People Activity (create and complete)”. It is now showing two tasks name as “PA-create” and “PA-complete”.
10.Select the 'Start' pool and go to Properties window, under it click on “Workflow” button.
11.Assign Role to “examples\manager” within the “Roles(s)” text box.
:You can also provide different roles to different tasks on pool but its always a good practice to give Roles to pool instead of tasks if all the tasks pool have similar roles.
12.Select ”PA-create” task and in property window give some description for this task: “PeopleActivity” within the “Description” text box .
13.Save Process Model.
Define Outgoing Mappings:
1.Select “Create People Activity” task.
2.Instantly Mapper displays with three frames, where:
Left frame (1st) reflects source side
Middle frame (2nd) reflects Mapper area
Right frame (3rd) reflects target side.
3.Go to Window > Show View > select Mapper Palette. Go to Mapper toolbar, on source side select “$thisReceiveRequestMsg.body” node.
4.Click on plus shaped button of “$pACreateTaskRequestMsg.root” node target side of mapper and further click on “taskInput” > “input”.
5.Connect “$thisReceiveRequestMsg.body” to “$pACreateTaskRequestMsg.root”.
6.Select “Complete People Activity” task.
7.Go to mapper tool bar, click on “create a new operator” button.
8.Drag the mouse pointer from the tool bar to work area of mapper and click on it.
9.A text box will appear in editing mode.
10.Provide “OK” in the text box within double quotas.
11.Click on target side of the mapper “$TaskCompletionResponseMsg.root” node.
12.Connect right hand side of the textbox displaying “OK” with “status” within the “$TaskCompletionResponseMsg.root” node 13.Save the mapping connections.
Process Deployment & Execution:
1.Click on Deploy Project to Intalio|BPMS Server button in tool bar.
2.Make sure you select all runtime files while exporting to Intalio|BPMS Server.
3.Click on Finish button.
4.This process is started by logging into bpms console and final result is displayed on workflow UI.
5.Open a web browser, provide url as: http://localhost:8080/bpms-console which takes to login screen for bpms-console.
6.Login with the following credentials:
username: 'admin' (without quotes).
password: 'changeit' (without quotes).
7.Under the "Processes", select the checkbox corresponding to the name "PA:PA" under package name "PeopleActivity" given under the list of processes and click on "Start" under "Processes" tab.
8.The “Process Invocation” window is opened.
9.In the textbox given input as:
ReceiveRequest : Hello
10.Click on Submit button.
The output is dispalyed as;
ok:
11.After then logout from bpms-console screen.
12.Open a web browser, provide url as: http://localhost:8080/ui-fw which takes to login screen for workflow UI.
13.Login with the following credentials:
username: 'examples\ewilliams' (without quotes).
password: 'password' (without quotes).
14.Under Tasks tab you should see “PeopleActivity” link, click it to view form.
15. The form generated displays;First displays “Request” having value which have taken from bpms-console screen: Hello
16.Select any option from radio buttons among two options: say Yes, I accept the request.
17.Enter the comments in the ''Comments” text area say Test Comment.
18.Click on Complete button to complete the process.
19.The form displays the result in read only mode.
Note:
This sample is an example to educate users on:
1.How to create PA process.
2.How to invoke PA process.
