MAIN arrow Samples-5.1 arrow UsageOfScope

UsageOfScope

Print E-mail

 

zip usageofscope 06/02/2008,03:37 8.79 Kb

 

Description 

This use case illustrates the use of "Scope" by using "Subprocess" task.The input for this process is received by a simple task and output is generated within the subprocess. Since the outgoing message comes under the scope of the subprocess, it cannot be accessed outside the subprocess.

 

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 'UsageOfScope.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.
5. Click to Finish.
6. Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.

 

usageofscope.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 "UsageOfScope", 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 "UsageOfScope".
  6. Focus on send task; drag out going message flow icon to "UsageOfScope" 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 Subprocess", name the default task available in side the subprocess as "reply".
  8. Focus on reply task and drag the out going message icon from boundary and connect to "send" task in the Client Pool.
  9. Import schema files from zip file into the project ((or) You can also create your own schema from File > New > Other > XML > XML Schema).
  10. Drag and drop message.xsd > tns:start schema node on to incoming message flow from "send" task to "receive" task.
  11. 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 "reply" task.
  3. 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.
  4. Save the process model.
  5. 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. In the processes list you should see "UsageOfScope:UsageOfScope" process with a package name "UsageOfScope", select it and click to Start.
  7. This should generate a form with a check box field.
  8. Type 'Hello Intalio' in start field, then click on Submit button.
  9. This will replace the page with an output like "receiveResponse: Hello Intalio".
Last Updated ( Feb 06 2008 )
  < Prev Next >