MAIN arrow Samples-5.1 arrow VersionProcess

VersionProcess

Print E-mail
zip versionprocess 04/02/2008,05:35 23.88 Kb

Description:

This use case illustrates process of invoking wsdl that displays version of axis.
The services are pre deployed in Intalio|BPMS Server and the main requirement is to import the wsdl into process to obtain results.

 

Use case dependencies

version.xsd: Schema used is of "complex" type.

 

Requirements

1. Intalio|BPMS Server-5.1.1

2. Intalio|BPMS Designer-5.1.1

 

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 'VersionProcess.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,

  6. Click on Finish.

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

 

versionprocess.jpg

Steps to remake the process

  1. Go to File > New, select “Intalio|BPMS Business Process Project”.

  2. Provide project name as “VersionProcess”, click on Finish.

  3. Import wsdl file "Version.wsdl" from zip file attached, directly under "VersionProcess" project.

  4. Right click on the project; go to New >, select "Business Process Diagram".

  5. Provide diagram name as "TestVersion", and click on Finish.

  6. A pool with a task is available in BPMN Editor Pane, name default pool as 'Client' and task as 'send'.

  7. Right click on client pool and select "Set pool non executable".

  8. Add new pool by click on BPMN Editor (select "Add Pool" option from pop up menu) and name it as "TestVersion".

  9. Focus on send task in Client pool, drag the out going message icon from boundary and release mouse control onto TestVersion pool to select the option "Connect to a new Message Start Event".

  10. Focus on Message Start Event, drag sequence flow icon from boundary and select option to "Connect to a new Task", name the task as "invoke".

  11. Focus on invoke task, drag sequence flow icon from boundary and select option to "Connect to a new Message End Event".

  12. Drag the outgoing message icon from Message End Event and connect to "send" task in the Client Pool.

  13. Repeat step 8 & 7, name the pool as "GetVersion".

  14. Drag and drop "getVersion" operation onto GetVersion pool (Go to Process Explorer > Version.wsdl > Version > VersionSOAP11port_http).

  15. Focus on invoke task in TestVersion pool, drag the outgoing message icon from "invoke" task and connect to "getVersion" task in GetVersion pool, similarly create connection in vice versa direction.

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

  17. Drag and drop version.xsd > tns:response schema node on to outgoing message flow from message end event to "send" task.

  18. A message "Set schema element 'response' 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 Message End Event in process model.

  3. Click on "$axis2GetVersionResponseMsg.part1" node in left side of mapper and then click on "$thisEventStartMessageResponse.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.

Scenario in the Axis 2:

(To retrieve "Version.wsdl" in the Axis2)

    1. Make sure Intalio-bpms server is already started.

    2. Open a web browser, provide url as: http://localhost:8080/axis2/.

    3. Click on the "Services" link where list of available services are given.

    4. Verify that "Version" is present there.

    5. Click on the "Version" it displays respective wsdl file.
      Note: This is the same wsdl that is attached. So if you need the wsdl you can save this wsdl file on your system.

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. Bpms-console will be available with deployed processes list.

  7. In the processes list you should see "TestVersion:TestVersion" process with a package name "VersionProcess", select it and click to Start.

  8. This should generate a form with an input field to map input data.

  9. Click on Submit button.

  10. This will replace the page with an output like
    EventStartMessageResponse:
    return: Hello I am Axis2 version service , My version is @axis Version@

  11. Similarly, you can obtain results for other values.

Last Updated ( Aug 13 2008 )
  < Prev Next >