MAIN arrow Samples-5.1 arrow Multiple Start Messages

Multiple Start Messages

Print E-mail

 

zip multiplestartmessages 04/02/2008,05:26 16.30 Kb

 

Description

This use case illustrates the functionality of "Multiple Start Messages" which receives two inputs from user and allows him to obtain desired output.


Use case dependencies

message1.xsd: Schema used is "start1" which is of "string" type.
message2.xsd: Schema used is "start2" which is of "string" type.

 

Requirements

  1. Intalio|BPMS Server-5.1.1
  2. Intalio|BPMS Designer-5.1.1

Process Download & Import

  1. Download 'MultipleStartMessages.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 downloaded archive file.

  6. Click on Finish.

  7. Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.


multiple.jpg

* Please follow these below instructions to remake the process

 

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.

Steps to remake the process

  1. Go to File > New, select “Intalio|BPMS Business Process Project”.

  2. Provide Project name as “MultipleStartMessages”, Click on Finish.

  3. Right click on the project; go to New >, select "Business Process Diagram".

  4. Provide diagram name as "MultipleStartMessages", and click on Finish.

  5. A pool with a task is available in BPMN Editor Pane, name default pool as "Client" and task as "send1".

  6. Right click on client pool and select "Set pool non executable".

  7. Focus on pool, a pop menu will be available; select "Add Parallel Gateway" to add onto client pool.

  8. Focus on Parallel Gateway; a sequence flow icon will be available on boundary of the gateway, drag outgoing sequence flow icon from Parallel Gateway to "send1" task.

  9. Again focus on Parallel Gateway; drag outgoing sequence flow icon and release mouse control to select the option "Connect to a new Task", name the task as "send2".

  10. Add new pool by click on BPMN Editor (select "Add Pool" option from pop up menu) and name it as "MultipleStartMessages".

  11. "Add Exclusive Event-Based Gateway" to MultipleStartMessages pool.

  12. Focus on Exclusive Event-Based Gateway; drag out going sequence flow icon to "Connect to a new Message Intermediate Event", name this event as "receive1".

  13. Repeat step-12 and name new event as "receive2".

  14. Focus on send1 task in client pool, drag the out going message icon from boundary and connect to "receive1" message intermediate event in "MultipleStartMessages" Pool.

  15. Focus on "receive1" message intermediate event, drag sequence flow icon from boundary and select option to "Connect to a new Task", name it as "reply1".

  16. Drag the outgoing message icon from "reply1" task and connect to "send1" task in the Client Pool.

  17. Focus on "receive2" message intermediate event, drag sequence flow icon from boundary and select option to "Connect to a new Task", name it as "reply2".

  18. Drag the outgoing message icon from "reply2" task and connect to "send2" task in the Client Pool.

  19. Import schema files from zip file into the project (You can also create your own schema from File > New > Other > XML > XML Schema).

  20. Drag and drop message.xsd > tns:start1 schema node on to incoming message flow from "send1" task to "receive1" message intermediate event.

  21. A message "Set schema element 'start1' as the content of the message" will prompt you, click on it.

  22. Drag and drop message.xsd > tns:start2' schema node on to incoming message flow from "send2" task to "receive2" message intermediate event.

  23. A message "Set schema element 'start2' as the content of the message" will prompt you; click on it & save process model.

 

Defining Outgoing Mapping

  1. Make sure Mapper view is visible (go to Windows > Show View > Mapper).

  2. In the process model select "reply1" task.

  3. Drag and drop “fn:concat” function in the mapper area from “Functions on strings -> Functions on string values”
    Note: a text box will be available with concat function.

  4. In the mapper window click on “creates a new operator” again click on mapper area.
    Note: It will display a text box in the mapper area.

  5. Provide “world” with the double codes in the text box.

  6. Click on "$thisReceive1RequestMsg.body" node in left side of mapper and then click on left edge of the “concat()” function.

  7. Click on the right edge of the “ World” and again click on the left edge of the “concat()” function.

  8. Click on right side of the “concat()” function and again click on“$thisReceive1ResponseMsg.body” node in right side of the mapper.

  9. Select "reply2" task in process model.

  10. Drag and drop “fn:string-length” in middle of mapper are from the “Functions on strings -> Functions on string values”.

  11. Click on "$thisReceive2RequestMsg.body" node in left side of mapper and then click on right side of the string-length” function.

  12. Click on right side of “string-length” and again click on “$thisReceive2ResponseMsg.body" node in right side of mapper which will make an association.

  13. Save the process model.

  14. Now your process is fully implemented which is ready 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/bpms-console which takes to login screen for bpms-console.

  5. Login with the following credentials:
    username: 'admin' (without quotes).
    password: 'changeit' (without quotes).

  6. Bpms-console will be available with deployed processes list.

  7. You should see "MultipleStartMessages:MultipleStartMessages" process with a package name "MultipleStartMessages", select it and click on Start.

  8. This should generate a form with two check box fields naming "receive1" and "receive2".

  9. Check the checkbox for "receive1" and click on Invoke.

  10. Again a form generates with an input field to map input data.

  11. Type 'Hello' in start1 field, then click on Submit button.

  12. This will replace the page with an output like "receive1Response: Hello World".

  13. Similarly, you can obtain results for other check box "receive2".

Last Updated ( Aug 13 2008 )
  < Prev Next >