MAIN arrow Samples-5.1 arrow UseOfLoop_while

UseOfLoop_while

Print E-mail

zip usageofloop_while 05/02/2008,22:37 17.06 Kb

 

Description:

This use case explains the functionality of loop within a process.
The given example accept input as an integer type say '1' which acts as a initial value in a process from where the execution will start and the process continues to execute until and unless the maximum limit is reached (integer value 10) after which it displays the output.

 

Use case dependencies:

loop.xsd: The schema used is "loop" which is of "integer" type

 

Requirements:

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

 

Process Download & Import:

1.Download 'UsageOfLoop_while.zip'.
2.Go to File > Import...
3.Select 'Existing Projects into Workspace', in the wizard, click on Next >

4.Select "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.

 

usageof_while.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 "UsageOfLoop_while", click on Finish.
  3. Right click on the project; go to New > select "Business Process Diagram".
  4. Provide diagram name as "UsageOfLoop_while", and click to finish.
  5. A pool with a task is available in BPMN Editor Pane, name default pool as "Client" and task as "send".
  6. Right click on client pool and select "Set pool non executable".
  7. Add new pool by click on BPMN Editor (select "Add Pool" option from pop up menu) and name it as "UsageOfLoop_while".
  8. Focus on send task; drag out going message flow icon to "UsageOfLoop_while" pool and select the option "Connect to a new Task", name this new task as "receive".
  9. Focus on receive task and drag the outgoing sequence flow icon to "Connect to a new Task looping", name this new task as "loop".
  10. Focus on loop task and drag the outgoing sequence flow icon to "Connect to a new Task", name this new task as "reply".
  11. Focus on reply task and drag the out going message icon from boundary and connect to "send" task in the Client Pool.
  12. Import schema files from zip file into the project ((or) You can also create your own schema from File > New > Other > XML > XML Schema).
  13. Drag and drop loop.xsd > tns:loop schema node on to incoming message flow from "send" task to "receive" task.
  14. A message "Set schema element 'loop' as the content of the message" will prompt you, click on it.

Defining Outgoing Mapping:

  1. Make sure Mapper view is visible (go to Windows > Show View > Mapper).
  2. In the process model select "loop" task.
  3. Go to Window-> Show View->Mapper Palette and select it.
  4. Drag the Mapper Palette to other location from where you can easily dnd any operator onto the Mapper.
  5. Click on "loop" tab in the mapper tool bar.
  6. Go to Mapper Palette and expand "Functions and Operators on numerics >Comparison of Numeric Values" and dnd "op:numeric-less-than" onto the Mapper Area.
  7. Click on "creates a new operator" button available in the Mapper tool bar.
  8. Drag the mouse pointer from the tool bar to work area of mapper and click on it.
  9. A textbox will be available, provide "10" in the text box without double quotes.
  10. Click on "thisReceiveRequestMsg.body" node in the left side of the mapper and then click on the left edge of the " < ".
  11. Click on the right edge of text box displaying " 10 " and then click on the left edge of text box displaying " < ".
  12. Again click on the right edge of the " < " and then click on "while" node given in the right side of Mapper.
  13. Now click on "assign" tab in the mapper tool bar.
  14. Go to Mapper Palette and expand "Functions and Operators on numerics >Operators on Numeric Values" and dnd "op:numeric-add" onto the Mapper Area.
  15. Click on "creates a new operator" button available in the Mapper tool bar.
  16. Drag the mouse pointer from the tool bar to work area of mapper and click on it.
  17. A textbox will be available, provide "1" in the text box without double quotes.
  18. Click on "thisReceiveRequestMsg.body" node in the left side of the mapper and then click on the left edge of text box displying " + ".
  19. Click on the right edge of text box displaying " 1 " and then click on the left edge of text box displaying " + ".
  20. Again click on the right edge of text box displaying " + "and then click on "$thisReceiveRequestMsg.body" node given in the right side of Mapper.
  21. Select "reply" task in the process model.
  22. Click on "$thisReceiveRequestMsg.body" node in left side of mapper and then click on "$thisReceiveResponseMsg.body" node in right side of mapper which will make an association.
  23. Save the process model.
  24. 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/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. In the processes list you should see "UsageOfLoop_while:UsageOfLoop_while" process with a package name "UsageOfLoop_while", select it and click to Start.
  7. This should generate a form with an input field.
  8. Type '1' in loop field, then click on Submit button.
  9. This will replace the page with an output like "receiveResponse: 10".
Last Updated ( Feb 06 2008 )
  < Prev Next >