For a business process, define how the request received from the service requester will be processed. The Hello business process of the HelloBusinessProcess sample program executes processing as follows:
Generated string: string-output-by-Hello-service |
Define a business process of the HelloBusinessProcess sample program as follows:
The following table shows the values that you need to set when adding a business process.
Table 5-2 Values that need to be set when adding a business process
Item | Value to be set | Description |
---|---|---|
Business process name | HelloBusinessProcess | Specify the name of the business process. |
Status persistence | yes | Specify whether to leave records in the database. Records left in the database can be used to check the progress of a process. For this sample program, you leave records in the database. Therefore, select yes. |
Import check box in the BPEL file area | Clear the check box. | Specify whether to import the BPEL file that was created by using a tool in the upper process. If you import the BPEL file, the activities necessary for the business process are automatically displayed. For this sample program, you do not import the file. Therefore, clear the check box. |
Service ID | HelBP | Specify the ID of the business process. |
The following is the procedure for adding the Hello business process.
For a business process, variables are used to define activities. Therefore, the variables to be used must be set before activities are defined. The following table shows the variables to be used for the Hello business process.
Table 5-3 Variables to be used for the Hello business process
Variable name | Type | XSD file |
---|---|---|
InputData | XML | InputData.xsd |
OutputData | XML | OutputData.xsd |
The following is the procedure for setting the variables to be used for the Hello business process.
The following table shows the activities that are necessary for the business process of the HelloBusinessProcess sample program.
Table 5-4 Activities necessary for the business process of the HelloBusinessProcess sample program
Value to be set | Description |
---|---|
Receive activity | Receives a response from the service requester |
Invoke service activity | Calls the Hello service |
Data transformation activity | Edits a string |
Reply activity | Returns the processing result to the service requester |
The following shows the activity deployment procedure.
Define each of the activities that were placed on the canvas.
Item | Value to be set | Description |
---|---|---|
Activity name | Receive | Specify the name of the activity. |
Operation name | getHelloString | Specify the name of the operation that is used to call a service component from the service requester. |
Body allocated variable | InputData | From the drop-down list, select the variable to be allocated to the body of the request message for the business process. |
Header allocated variable | None | Set this item when you allocate a variable to the header of the request message for the business process. This item is not used for this sample program. Therefore, do not set this item. |
Correlation set group | None | Set this item when you allocate a correlation set group to an activity. This item is not used for this sample program. Therefore, do not set this item. |
Communication model | Sync | Specify the communication model of the operation. The Hello service used for this sample program is a Web Service. Therefore, set Sync. |
Instance generation | yes | Select whether to initialize the process when a request message is received. For this sample program, set yes. |
Item | Value to be set | Description |
---|---|---|
Activity name | HelloService | Enter the name of the activity. |
Service name | HelloServiceAdapter | From the drop-down list, select the name of the service component to be called by sending a request message. |
Operation name | getHelloString | Among the operations for the service component (Hello service adapter) specified in Service name, select the name of the operation that is to be called from the drop-down list. |
Communication model | Sync | The communication model set for the operation specified in Operation name is displayed. |
Body allocated variable (in the Request message area) | InputData | From the drop-down list, select the variable to be allocated to the body of the request message that calls the stock management service. |
Header allocated variable (in the Request message area) | None | Set this item when you allocate a variable to the header of the request message that calls the stock management service. This item is not used for this sample program. Therefore, do not set this item. |
Body allocated variable (in the Response message area) | OutputData | From the drop-down list, select the variable to be allocated to the body of the response message to be received from the synchronization operation. |
Header allocated variable (in the Response message area) | None | Set this item when you allocate a variable to the header of the response message to be received from the synchronization operation. This item is not used for this sample program. Therefore, do not set this item. |
Correlation set group | None | Set this item when you allocate a correlation set group to an activity. This item is not used for this sample program. Therefore, do not set this item. |
Item | Value to be set | Description |
---|---|---|
Activity name | EditOutputString | Specify the name of the activity. |
Variable (in the Source Variables area) | OutputData | Select the transformation-source variable from the drop-down list, and then click the Add button. |
Variable (in the Destination Variable area) | OutputData | Select the transformation-destination variable from the drop-down list. |
DataTransDefnFile | EditOutputString | Specify a name for the data transformation definition file. |
Item | Value to be set | Description |
---|---|---|
Activity name | Reply | Specify the name of the activity. |
Operation name | getHelloString | Specify the name of the operation specified for the corresponding receive activity. |
Body allocated variable | OutputData | From the drop-down list, select the variable to be allocated to the body of the response message. |
Header allocated variable | None | Set this item when you allocate a variable to the header of the response message. This item is not used for this sample program. Therefore, do not set this item. |
Correlation set group | None | Set this item when you allocate a correlation set group to an activity. This item is not used for this sample program. Therefore, do not set this item. |
Fault name | None | Define the reply activity as fault processing, and then specify the fault name to be used when a response message that indicates that a fault occurred in the service requester is received. No fault processing is used for this sample program. Therefore, do not set this item. |