MAIN arrow Samples-5.1 arrow TerminateProcess

TerminateProcess

Print E-mail

 

zip terminateprocess 06/02/2008,03:00 9.79 Kb

 

Description

This "process flow" use case "Terminate a Process" illustrates the termination of a process with the help of conditional flow using a data-based exclusive gateway.If the input given as 'yes', the condition returns true and the generated output is 'This is correct'. But if any other input value is passed then a soap timeout exception is generated and the process terminates with no output.

 

Use case dependencies

message.xsd: Schema used is "start" 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 'TerminateProcess.zip'.
2.Go to File > Import...
3.Select 'Existing Projects into Workspace', in the wizard, click on Next >
4.Browse to select the downloaded archive file & Click to Finish.
5.Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.

 

 terminateprocess.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. Right click on the project; go to New > "Business Process Diagram".
  2. Provide File name as "TerminateProcess", and click to finish.
  3. A pool with a task is available in BPMN Editor Pane, name default pool as 'Client' and task as 'send'.
  4. Right click on client 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 "TerminateProcess".
  6. Focus on send task; drag out going message flow icon to "TerminateProcess" pool and select the option "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 Exclusive data-based gateway", name this new gateway as "Select_output".
  8. Focus on Select_output gateway and drag the out going sequence flow icon to "Connect to a new Task". Name this new task as "output".
  9. Again focus on Select_output gateway and drag the out going sequence flow icon to "Connect to a new Task". Name this new task as "default".
  10. Right click on the Connection between Select_output gateway and default task and select the option "Sets as default select_output".
  11. Focus on the default task and drag the outgoing sequence flow icon to "Connect to a new Terminate End Event".
  12. Focus on output task and drag the out going message icon from boundary and connect to "send" task in the Client Pool.
  13. Import schema files from zip file into the project ((or) You can also create your own schema from File > New > Other > XML > XML Schema).
  14. Drag and drop message.xsd > tns:start schema node on to incoming message flow from "send" task to "receive" task.
  15. A message "Set schema element 'start' 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 "Select_output" gateway.3.Click on "creates a new operator" button available in the Mapper tool bar.
  3. Drag the mouse pointer from the tool bar to work area of "Condition for [Select_output-output]" Mapper and click on it.
  4. A textbox will be available, provide "=" in the text box without double quotes.
  5. Repeat steps 3, 4 and provide "yes" within double codes.
  6. Click on "$thisReceiveRequestMsg.body" node in the left side of the Mapper.
  7. Click on the left edge of the "=" operator.
  8. Again Click on the right edge of the "yes" and then click on the left edge of the "=" operator.
  9. Again click on the right edge of the "=" operator and then click on "condition" node given in the right side of Mapper.
  10. Select "output" task in the modeler and go for Mapper.
  11. Click on "creates a new operator" button available in the Mapper tool bar.
  12. Drag the mouse pointer from the tool bar to work area of Mapper and click on it.
  13. A textbox will be available, provide "This is correct " in the text box within double quotes.
  14. Click on the right edge of the "This is correct " and then click on "$thisReceiveResponseMsg.body" node given in the right side of Mapper.
  15. Save the process model.
  16. 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. Also verify & check "Deploy processes" select_output before 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 "TerminateProcess: TerminateProcess" process with a package name "TerminateProcess", select it and click to Start.
  7. This should generate a form with a check box field.
  8. Type 'yes' in start field, then click on Submit button.
  9. This will replace the page with an output like " receiveResponse: This is correct ".
Last Updated ( Feb 06 2008 )
  < Prev Next >