uCosminexus Service Platform, Reception and Adapter Definition Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
This subsection describes how to set up receive activity and reply activity in business process definition screen after defining HTTP reception.
After defining the variables for request message and response message in activity settings, assign the variables defined in receive activity and reply activity.
- Organization of this subsection
- (1) Defining a variable
- (2) Assigning a variable
(1) Defining a variable
Define the following variables in [List of variables and correlation set] dialog box.
- Variable of request message (header)
- Variable of response message (header)
- Variable of request message (body)
- Variable of response message (body)
Procedure for defining a variable is as follows:
(a) Variables of request message and response message (header)
- Double click the [Variable and correlation set list] icon present on canvas of the business process definition screen.
The [Variable and correlation set list] dialog box is displayed.
- Specify any name in [Variable name].
- Select [XML] from the [Types] drop-down list.
- Click the [Browse] button of [Message format].
A dialog box to specify the message format is displayed.
- Specify the following files as per the variable:
- Variable of request message (header)
Installation directory of service platform\CSC\custom-reception\http\schema\urecp_http_header_request.xsd
- Variable of response message (header)
Installation directory of service platform\CSC\custom-reception\http\schema\urecp_http_header_response.xsd
- In the [Variable and correlation set list], click the [Add] button.
The variable is added.
Add the variable of response message (header) in the procedure same as Operation 2. to Operation 6.
(b) Variables of request message (Body) response message (body)
- Double click the [Variables and correlation sets] icon present on canvas of the business process definition screen.
The [Variable and correlation set list] dialog box is displayed.
- Specify any name in [Variable name].
- Select [XML] from the [Types] drop-down list.
- Click the [Capture] button of [Message format].
The [Capturing message format] dialog box is displayed.
- Check [Reception name] and select name of HTTP reception set up in the user-defined reception definition screen from the drop-down list.
- Select the operation set up in HTTP reception from the [Operation name] drop-down list.
- Perform following selections in the [Message type] drop-down list as per the variables:
- For variables of request message (body)
Select [Request message (body)].
- For variables of response message (body)
Select [response message (body)].
- Enter any name in [Message format].
- Click the [OK] button.
- Click the [Add] button in the [Variable and correlation set list] dialog box.
A variable is added.
Add a variable of response message (body) using the procedure same as that used for Operation 2 to Operation 10.
(2) Assigning a variable
The procedure for assigning a variable, which is added in receive activity and reply activity:
(a) For receive activity
- Double click receive activity present on the canvas of business process definition screen.
The [Receive activity] dialog box is displayed.
- Enter any name in [Activity name].
- Enter the operation name set in HTTP reception in [Operation name].
- Select a variable of the defined request message (body) from the drop-down list of [Body-assigned variable].
- Click the [Set] button of [Header-assigned variable].
The [Header-assigned variable] dialog box is displayed.
- Click the [Add] button.
- Select a variable of the defined request message (header) from the drop-down list of [Assigned variable] cell.
- Select the root-element from the drop-down list of [Root element] cell.
- Click the [OK] button.
The [Header-assigned variable] dialog box is closed.
- Click the [OK] button in the [Receive activity] dialog box.
(b) For reply activity
- Double click reply activity present on the canvas of business process definition screen.
The [Reply activity] dialog box is displayed.
- Enter any name in [Activity name].
- Enter the operation name set in HTTP reception in [Operation name].
- Select a variable of the defined response message (body) from the drop-down list of [Body-assigned variable].
- Click the [Set] button of [Header-assigned variable].
The [Header-assigned variable] dialog box is displayed.
- Click the [Add] button.
- Select the defined response message (header) from the drop-down list of [Assigned variable].
- Select the root element from the drop-down list of [Root element] cell.
- Click the [OK] button.
The [Header-assigned variable] dialog box is closed.
- Click the [OK] button in the [Reply activity] dialog box.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.