• Register Now
  • Forgot Password?
Intalio
  • Product
  • Services
  • Partners
  • Customers
  • Community
  • Company
Print E-mail
Contributed by KJCh Shivanand on Dec 30 2008

zip invokeinternalwsdl 30/12/2008,02:20 18.75 Kb

Summary

This Use case illustrates how we can invoke internal wsdl in the process.

 

Use case dependencies

message.xsd:    Schema used is "start" of "string" type.

 

Requirements

1. Intalio BPMS Designer 5.2
2. Intalio BPMS Server 5.2 

 

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.

 

Process Download & Import

1. Download " InvokeInternalWSDL.zip"
2. Go to File > Import.
3. Select General > Existing Projects into Workspace and click Next >
4. Select the "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.
invokewsdl.jpg

Explanation of the files used

Collect the wsdl “HelloWorld-HelloWorld.wsdl” from [Intali|Server]/var/processes/Helloworld.
Note: Here we are using HelloWorld Process wsdl which is pre deployed.

 

Steps to remake the process

1. Go to File >New > select "Intalio|BPMS Business Process Project“.
2. Provide project name as "InvokeInternalWSDL", and click on Finish.
3. Right click on the project; go to New> select "Business Process Diagram”.
4. Provide diagram name as “InvokeWSDL” 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 "InvokeWSDL".
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. Create a new folder under “InvokeInternalWSDL”, right click on project; go to New > select “Folder”
13. Provide folder name as “WSDL” click on Finish.
14. Copy the collected wsdl from the server and paste it in “WSDL” folder.
Note: Make sure build automatically was selected.
15. 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.
16. Expand the wsdl “HelloWorld-HelloWorld.wsdl” under the project and drag the "Receive_Message" operation from “CanonicServiceFromClient > canonicPort” and drop it on “WSDL” pool.
17. Click on “Provide operation 'Receive_Message' bound to port 'canonicPort' inside service 'CanonicServiceForClient'.(single task)”.
18. Focus on invoke task in “InvokeWSDL” pool and drag the out going message flow icon and connect it to receive task in the "InvokeWsdl" pool.
19. Now focus on "Receive_Message" task in “WSDL” pool and drag the out going message flow icon and connect it to invoke task in the "InvokeWSDL" pool.
20. Drag and drop message.xsd > tns:start schema node on to incoming message flow from "send" task to "receive" task.
21. 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 “helloWorld-HelloWorldReceive_Message.body” node.
4. Now select the task “reply” in modeler area and go to the mapper area.
5. Click on “helloWorld-HelloWorldReceive_MessageResponse.body” 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. 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 “InvokeWSDL :InvokeWSDL ” process with a package name “InvokeInternalWSDL”, check the box under project and click to start.
8. This should generate a form with an input text field.
9. Type 'World' in start field, then click on Submit button.
10. This will replace the page with an output like "receiveResponse: HelloWolrd.

Note: This sample is an example to educate user on:
1.    How to use wsdl operation to invoke deployed processes.

Last Updated ( Dec 30 2008 )
 
[ Back ]

Copyright © Intalio, 1999-2012.

  • Copyright Notice |
  • Privacy Policy |
  • User Agreement