MAIN arrow Samples-5.1 arrow Invoking Internal WSDL

Invoking Internal WSDL

Print E-mail

 

zip invokeinternalwsdl 13/02/2008,04:42 13.41 Kb

 

Description:

This Use case illustrates process of invoking internal wsdl in the process.

 

Use case dependencies:

test.xsd: Schema used is of "Complex" type.

Requirements: 

  1. Intalio|BPMS Server-5.1.1
  2. Intalio|BPMS Designer-5.1.1
  3. SO_04-Client_To_SO-04_Pool.wsdl

 

Process Download & Import:

  1. Go to File > Import...
  2. Select 'Existing Projects into Workspace' in the wizard and click on Next >
  3. Browse to select the downloaded archive file.
  4. Click to Finish.
  5. Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.

 

invokeinternalprocess.jpg

 

Explanation of the files used:

Collect the wsdl “SO_04-Client_To_SO-04_Pool.wsdl” and its dependencies “message.xsd” from Intali|BPMS Server-5.1.1/var/processes/Helloworld.
Note: Here we are using HelloWorld Process wsdl which is pre deployed.

 

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 "InvokeProcess", and click on Finish.
  3. Right click on the project; go to New> select "Business Process Diagram”.
  4. Provide diagram name as “InvokeProcess” click on 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 "InvokeProcess".
  8. Focus on send task; drag out going message flow icon to "InvokeProcess" pool and select the option "Connect to a new Task", name this new task as "receive".
  9. Focus on “receive” task and drag the out going sequence flow icon to "Connect to a new Task". Name this new task as "invoke".
  10. Focus on “invoke” task and drag the out going 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.
  12. Copy the collected wsdl and its dependencies from the server and paste it in the project.
  13. Note: Make sure build automatically was selected.
  14. Add new pool by click on BPMN Editor (select "Add Pool" option from pop up menu) and name it as "InvokeWSDL" and make the pool as non-executable.
  15. Expand the wsdl “SO_04-Client_To_SO-04_Pool.wsdl” under the project and drag the receive from “Client_To_SO-04_Pool_Service” and drop it on “InvokeWSDL” pool.
  16. Click on “Provide operation 'receive' bound to port 'Client_To_SO-04_Pool_Service_http' inside service 'Client_To_SO-04_Pool_Service'.(single task)”.
  17. Focus on invoke task in “InvokeProcess” pool and drag the out going message flow icon and connect it to receive task in the "InvokeWsdl" pool.
  18. Now focus on receive task in “InvokeWsdl” pool and drag the out going message flow icon and connect it to invoke task in the "InvokeProcess" pool.
  19. Drag and drop message.xsd > tns:start schema node on to incoming message flow from "send" task to "receive" task.
  20. 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.
  2. Select task “invoke” in the modeler area and go to mapper view.
  3. Click on "$thisReceiveRequestMsg.body" node in the left side of Mapper area and again click on right side of “sO_04-Client_To_SO-04_PoolMsg.start” node.
  4. Now select the task “reply” in modeler area and go to the mapper area.
  5. Click on “sO_04-Client_To_SO-04_PoolMsg1.start” node in left side of the mapper and again click on “thisReceiveResponseMsg.body” node in the right of the mapper.
  6. Save the process.
  7. Save the process model.
  8. 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 following credentials:
       username: 'admin' (without quotes).
       password: 'changeit' (without quotes).
  6. bpms-console will be available with deployed processes list.
  7. You should see “InvokeProcess :InvokeProcess ” process with a package name “InvokeProcess”, check the box under project and click to start.
  8. This should generate a form with an input text field.
  9. Type 'Hello' in start field, then click on Submit button.
  10. This will replace the page with an output like "receiveResponse: HelloWolrd.
Last Updated ( Feb 13 2008 )
  < Prev Next >