MAIN arrow Samples-5.1 arrow Change Schema

Change Schema

Print E-mail

 

zip changeschema 24/03/2008,01:48 9.23 Kb 

 

Description:

This use case explains how to change a schema in a process. Process by itself is very simple one that accepts an input from user and returns the same as output.

 

Use case dependencies:

message.xsd: The schema used is "start" which is of "string" type.
message1.xsd: The schema used is "start1" 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 "changeschema.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, click on Finish.

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

 

 

changeschema.jpg

* Please follow these below instructions to remake the process

 

Preconditions:

1.Make sure Intalio|BPMS server is up and running successfully.
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 the File > New > select “Intalio|BPMS Business Process Project".

  2. Provide project name as "ChangeSchema" and click on Finish.

  3. Right click on project, go to New > select “Business Process Diagram" and click on Finish.

  4. Provide diagram name as "ChangeSchema" and click on Finish.

  5. A pool with a task is available on the modeler window. Name the default pool as "Client" and default 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 "ChangeSchema".

  8. Focus on send task; drag out going message flow icon to "ChangeSchema" 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", name this task as “reply”.

  10. Focus on “reply” task and drag the out going message icon from boundary and connect to "send" task in the Client Pool.

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

  12. Drag and drop message.xsd > tns:start schema node on to incoming message flow from "send" task to "receive" task.

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

  1. Go to the "File > New > select “Intalio|BPMS Business Process Project".

  2. Provide project name as "ChangeSchema" and click on Finish.

  3. Right click on project and go to "New > select “Business Process Diagram" and click on Finish.

  4. Provide diagram name as "ChangeSchema" and click on Finish.

  5. A pool with a task is available on the modeler window. Name the default pool as 'Client' and default 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 "ChangeSchema".

  8. Focus on send task; drag out going message flow icon to "ChangeSchema" 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", name this task as “reply”.

  10. Focus on “reply” task and drag the out going message icon from boundary and connect to "send" task in the Client Pool.

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

  12. Drag and drop message.xsd > tns:start schema node on to incoming message flow from "send" task to "receive" task.

  13. 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. Select "reply" task in process model.

  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 "ChangeSchema:ChangeSchema" process with a package name "ChangeSchema", select it and click to Start.

  7. This should generate a form with an input field.

  8. Type “First Schema” in “start” field, then click on Submit button.

  9. This will replace the page with an output like "receiveResponse: First Schema".

  10. Go back to modeler area in the designer, right click on attached schema element on message
    connection from “send” task to “receive” task and select “Unlink attached Schema element”.

  11. Drag and drop message1.xsd > tns:start1 schema node on to incoming message flow from "send" task to "receive" task.

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

  13. Save the process diagram.

  14. Repeat steps 1-6 given under Process Deployment & Execution.

  15. Type “Second Schema” in “start1” field, then click on Submit button.

  16. This will replace the page with an output like "receiveResponse: Second Schema".

 

Last Updated ( Mar 24 2008 )
  < Prev