notifications 11/12/2008,22:07 16.12 Kb
Summary:
This use case illustrate the functionality of workflow notification task. This sample takes input from radio button say one. After starting the process it will notify the user about response which is displayed on the screen.
Use Case Dependencies:
1.start.xform.
2.start.xform.xsd .
3.notify.xform.
4.notify.xform.xsd .
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 “Notification.zip”.
2.Go to File > Import...
3.In Import wizard, select 'Existing Projects into Workspace', click on Next >.
4.Select the "Select archive file" radio button.
5.Browse to select the downloaded archive file.
6.Click on Finish.
7.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 “NotificationProcess”, click to finish.
3.Right click on the project select New > "WorkFlow Form".
4.Provide File name as “start” and click on Finish.
5.Click on “Open Perspective” window. Select “Intalio|Designer Form Editor” perspective. It will change your designer perspective to form editor perspective. In this perspective you can create workflow forms.
6.A Intalio| Designer Form Editor is visible on screen. Drag and drop Radio Button control from Workflow Palette on form editor.
7.Go to Properties window, under Items property, click on “Item Property” button.
8.A new Item Property window opens where you define label and corresponding value for the defined label.
8.Enter “One” under Label and corresponding to this label type “1” for Value.
9.Click on New button to add the new label and value.
10.Enter “Two” under Label and corresponding to this label type “2” for Value.
11.Similarly, type “Three” under Label and corresponding to this label type “3” for Value.
12.Click on “OK” button.
13.In Properties window, type “Select your choice:” under Control Label property.
14.Add another workflow form in the project.
15.Provide File name as “notify” and click on Finish.
16.Drag and drop Text Box control on form editor.
17.In the Properties window, enter “Response:” under Control Label property.
18.Save the workflow form.
Steps for remake process:
1.Right click on project, go to New > Business Process Diagram.
2.Provide File name as “NotificationProcess”, click on Finish button.
3.A pool with a task available in BPMN Editor Pane will be displayed, name it as “Client”.
4.Right click on 'Client' pool and select "Set pool non executable".
5.Go to Project folder “NotificationProcess”, select workflow form “start.xform”, drag and drop this on the client pool, it will show up an menu and select the option “Use start for People Initiating Process Activity (initProcess)” from menu displayed. It is showing new task name as “start-init” on client pool.
6.Again go to project folder “NotificationProcess”, select workflow form “notify.xform”, drag and drop this form on the client pool and click on the third option “Use notify for Notification (notify)”. Now its showing new task name as “notify-notify” on client pool.
7.Add new pool by click on BPMN Editor (select "Add Pool" option from pop up menu) and name it as “Notification”.
8.Focus on “start-init” task, drag outgoing message flow icon to "Notification" pool and “Connect to the new Task”, name this new task as receive.
9.Focus on the receive task and drag the outgoing message flow icon to “Client” pool and connect to the ”start-init” task.
10.Focus on the receive task and drag the outgoing sequence flow icon to "Connect to a new Exclusive Data-based gateway", name this new gateway as "Choice".
11.Focus on Choice gateway and drag the out going sequence flow icon to "Connect to a new Task". Name this new task as "output 1".
12.Repeat step 11 and name the available task as "output 2".
13.Repeat step 11 and name the available task as "output 3".
14.Repeat step 11 and name the available task as "default".
15.Right click on the Connection between “Choice” gateway and “default” task and select the option "Sets as default choice".
16.Focus on “output 1” task and drag the outgoing sequence flow icon to "Connect to a new Exclusive data-based gateway", name this new gateway as "Resultant".
17.Focus on “output 2” task and drag the outgoing sequence flow icon and connect to "Resultant" gateway.
18.Focus on “output 3” task and drag the outgoing sequence flow icon and connect to "Resultant" gateway.
19.Focus on “default” task and drag the outgoing sequence flow icon and connect to "Resultant" gateway.
20.Focus on “Resultant” gateway and drag the out going sequence flow icon to "Connect to a new Task". Name this new task as "notify".
21.Focus on the notify task and drag the outgoing message flow icon to “Client” pool and connect to the ”notify-notify” task.
22.Focus on the “notify-notify” task and drag the outgoing message flow icon to “Notification” pool and connect to the ”notify” task.
23.Click on “Client” pool.
24.Go to Properties window > click on “Workflow” section.
25.Assign role to “examples\manager” within the “Role(s)” text box.
26.Click on “start-init” task.
27.Go to Properties window > click on “Workflow” section.
28.Provide name “Notifications” within the “Description” text box.
29.Similarly repeat steps 26 – 28 for “notify-notify” task.
30.Save the process.
Define Outgoing Mappings:
1.Go to Mapper toolbar, select “Choice” gateway.
2.Create variable “msg” using Data Editor.
3.Initialize variable “msg” with the default value.
4.Drag the mouse pointer from the tool bar to work area of "condition for [choice-output 1]" Mapper and click on it.
5.A textbox will be available in editing mode, provide "=" in the text box without double quotes.
6.Repeat steps 4 and provide "1" without double quotes.
7.Click on “$startInitProcessRequestMsg.root” node in the left side of the mapper.
8.Within this node, click on “taskOutput” > output > choice.
9.Connect “choice” with the left edge of the textbox displaying “=” operator.
10.Again Click on the right edge of the "1" and then click on left edge of textbox displaying "=" operator.
11.Again click on the right edge of the "=" operator and then click on "condition" node given in right side of Mapper area.
12.Select "condition for [choice-output 2]" in Mapper tool bar.
13.A textbox will be available in editing mode, provide "=" in the text box without double quotes.
14.Repeat steps 4 and provide "2” without double quotes.
15.Click on “$startInitProcessRequestMsg.root” node in the left side of the mapper.
16.Within this node, click on “taskOutput” > output > choice.
17.Connect “choice” with the left edge of the textbox displaying “=” operator.
18.Again Click on the right edge of the "2" and then click on left edge of textbox displaying "=" operator.
19.Again click on the right edge of the "=" operator and then click on "condition" node given in right side of Mapper area.
20.Select "condition for [choice-output 3]" in Mapper tool bar.
21.A textbox will be available in editing mode, provide "=" in the text box without double quotes.
22.Repeat steps 4 and provide "3” without double quotes.
23.Click on “$startInitProcessRequestMsg.root” node in the left side of the mapper.
24.Within this node, click on “taskOutput” > output > choice.
25.Connect “choice” with the left edge of the textbox displaying “=” operator.
26.Again Click on the right edge of the "3" and then click on left edge of textbox displaying "=" operator.
27.Again click on the right edge of the "=" operator and then click on "condition" node given in right side of Mapper area.
28.Select "output 1" task in modeler and go for Mapper area.
29.Click on "creates a new operator" button available in the Mapper tool bar.
30.Drag the mouse pointer from the tool bar to work area of Mapper and click on it.
31.A textbox will be available in editing mode, provide "you have made the first choice" in the textbox within double quotes.
32.Click on right edge of "you have made first choice" and then click on "$msg" node given in right side of Mapper area.
33.Select "output 2" task in modeler and go for Mapper area.
34.Click on "creates a new operator" button available in the Mapper tool bar
35.Drag the mouse pointer from the tool bar to work area of Mapper and click on it.
36.A textbox will be available in editing mode, provide "you have made the second choice" in the textbox within double quotes.
37.Click on right edge of "you have made second choice" and then click on "$msg" node given in right side of Mapper area.
38.Select "output 3" task in modeler and go for Mapper area.
39.Click on "creates a new operator" button available in the Mapper tool bar
40.Drag the mouse pointer from the tool bar to work area of Mapper and click on it.
41.A textbox will be available in editing mode, provide "you have made the third choice" in the textbox within double quotes.
42.Click on right edge of "you have made third choice" and then click on "$msg" node given in right side of Mapper area.
43.Select "default" task in modeler and go for Mapper area.
44.Click on "creates a new operator" button available in the Mapper tool bar
45.Drag the mouse pointer from the tool bar to work area of Mapper and click on it.
46.A textbox will be available in editing mode, provide "Made choice is not available" in the textbox within double quotes.
47.Click on right edge of "Made choice is not available" and then click on "$msg" node given in right side of Mapper area.
48.Select “notify” task in modeler and go for Mapper area.
49.Click on “$msg” on left side of the mapper area and then click on “$notifyNotifyRequestMsg.root” > input > input > Response.
50.Save the process.
Now your process is fully implemented to and is valid to deploy and execute within Intalio|BPMS Server.
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.Open a web browser, provide url as: http://localhost:8080/ui-fw which takes to login screen for workflow UI.
5.Login with the following credentials:
username: 'examples\ewilliams' (without quotes).
password: 'password' (without quotes).
6.Under Processes tab you should see “Notifications” link, click it to view form.
7.The form generated displays:
Radio box “Select your choice:”.
8.Select radio button among given three say One.
9.Click on Start process button to start the process.
10.Click on “Refresh” and then click on “Notifications” link available under Notifications Tab.
11.The form will display text field with result in read only mode: you have made first choice.
12.Click on 'Dismiss' button to dismiss the process.
Note:
This sample is an example to educate users on:
1.How to create a notification message for a process initiated by a user.

