Create Assignments

A BPMN Assignment element enables data to be copied between messages, and new data to be inserted, using expressions within a BPEL Process. A BPMN Assignment element maps to a BPEL assign activity and copies the specified value from the source to the target.

In Enterprise Architect, Assignment elements should be created in the Assignments package in SupportingElements. If they are created elsewhere, they cannot be enacted correctly.

To create a new Assignment in your model, follow the steps below:

  1. Navigate to and open (or create, if necessary) the BPEL diagram under the Assignments package.
  2. Open the BPMN 1.1 Types page of the Toolbox (More tools | BPMN 1.1).
  3. Drag an Assignment element from the Toolbox onto the diagram. The BPEL Properties dialog displays.
     
    Assignment_Dlg

 

  1. In the Name field, type a name for the Assignment.
  2. In the Assign Time field, click on the drop-down arrow and select either Start or End. This determines whether the assignment occurs at the start or end of an Activity.

In the Copy From panel:

  1. In the Type field, click on the drop-down arrow and select either Literal, Expression or Message.
  2. If you select Literal, the Literal field is enabled and the Message and Part fields are disabled. Type a value in the Literal field.
  3. If you select Expression or Message, the Literal field is disabled and the Message and Part fields are enabled.

Note:

If you select Expression, Enterprise Architect uses the getVariableData Xpath 1.0 function to create the expression from the selected Message and Part.

  1. To the right of the Message field, click on the [ ... ] button and select a Message created under the SupportingElements package.

Note:

Messages are created when you create a Web Service.

  1. (Optional) To the right of the Part field, click on the [ ... ] button and select a Message Property.

In the Copy To panel:

  1. To the right of the Message field, click on the [ ... ] button and select a Message created under the SupportingElements package.
  2. To the right of the Part field, click on the [ ... ] button and select a Message Property. This field is mandatory if you have entered a value in the Part field in the Copy From panel.
  3. Click on the OK button to close the dialog.

 

To return to the BPEL Properties dialog for subsequent editing:

  • Double-click on the element in the diagram or Project Browser (the Shows Properties option must be selected in the Double click on browser panel of the Options dialog) or
  • Right-click on the element in the diagram or Project Browser and select the BPEL | BPEL Properties context menu option.

See Also