MAIN arrow Samples-5.1 arrow ComplexVariable

ComplexVariable

Print E-mail

zip complexvariable 04/02/2008,05:31 13.59 Kb

 

Description:

This use case illustrates the method of assigning the input data to complex variable and getting the same as output.

 

Use case dependencies

complexType.xsd: schema used is "complexMessage" which is a complex type that contains 2 elements of 'string' type:
Question
Answer

 

Requirements

1. Intalio|BPMS Server-5.1.1

2. Intalio|BPMS Designer-5.1.1

 

Process Download & Import

1.Download 'Complex_Variable.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 the downloaded archive file.
6.Click on Finish.
7.Update project builders by right click on project; go to BPMS Designer Tools > Update BPMS Builders.

 

complex.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. Go to File > New, select “Intaio|BPMS Business Process Project”.

  2. Provide Project name as”CompexVariable”, click on Finish.

  3. Right click on project; go to New > select "Business Process Diagram".

  4. Provide diagram name as "ComplexVariable", 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 "ComplexVariable".

  8. Focus on "send" task in Client pool, drag the out going message icon from boundary to "ComplexVariable" ,select the option "Connect to a new Task" and name this newtask as "receive".

  9. Focus on "receive" task, drag outgoing sequence flow icon from boundary and select option to "Connect to a new Task", name this new as "Assign to Variable”.

  10. Focus on "Assign to Variable" task, drag outgoing sequence flow icon from boundary and select option to "Connect to a new Task", name this new task as "Compute".

  11. Focus on "Compute" task, drag outgoing sequence flow icon from boundary and select option to "Connect to a new Task", name this new task as "reply".

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

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

  14. Drag and drop complexType.xsd > tns: complexMessage schema node on to incoming message flows from "send" task to "receive" task.

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

  16. Drag and drop complexType.xsd > tns: complexMessage schema node on to outgoing message flows from "reply" task to "send" task.

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

 

Working in Data Editor

In order to store a complex schema, we need a complex variable. A complex variable could be declared in the Data Editor using following steps:

  1. In the Data Editor, expand 'ComplexVariable' node and Right-click on "declarations" and select 'create variable'.

  2. In the 'Create Variable' window give variable name as 'complexvariable'(without quotes) and click Create button.
    Note: If you expand the declarations node now, you should see a new variable '$complexvariable with an error message saying "Attributes 'element' or 'type' or 'messageType' and 'part' must be defined on a variable declaration".

  3. Go to right panel of Data Editor and expand ComplexVariable node.

  4. Expand the node called "namespace:xmlns:tns=http://www.example.org/ComplexType".

  5. Dnd 'schema type (tns:complexMessage)' on 'complexvariable' variable given under "ComplexVariable->declarations".

  6. Right click on "complexvariable" node and select "Initialize variable content".

 

Defining Outgoing Mapping

  1. Make sure Mapper view is visible (otherwise go to and select Windows > Show View > Mapper).

  2. In the process model select "Compute" task.

  3. Click on "$thisReceiveRequestMsg.body" node in left side of mapper and then click on "$complexvariable" node in right side of mapper which will make an association.

  4. Select "reply" task in process model.

  5. 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.

  6. Save the process model.

  7. Now your process is fully implemented to and is valid to deploy and execute within Intalio|BPMS Server.

 

Process Deployment & Execution

  1. Click on Deploy Project to Intalio|BPMS Server button in toolbar.

  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 availble with deployed processes list.

  7. You should see "ComplexVariable:ComplexVariable" process with a package name "ComplexVariable", select it and click to Start.

  8. This should generate a form with two text box fields naming "Question" and "Answer".

  9. In the textboxes give the input values as:
    Question: " What is your Name"
    Answer: "My Name is Alice." then click on Submit button.

  10. The output will be displayed as:
    Question: "What is your Name"
    Answer: "My Name is Alice."

Last Updated ( Feb 06 2008 )
  < Prev Next >