uCosminexus Service Platform, Basic Development Guide
You can create a service requester that sends requests to a standard synchronous reception (SessionBean) for business process re-execution.
The procedure for creating a service requester that sends a request to the standard synchronous reception (SessionBean) for business process re-execution is the same as that for creating an ordinary service requester that sends requests to the standard synchronous reception (SessionBean). For details about the creation procedure, see 8.4.1 Procedure for Creating a Service Requester (Standard Synchronous Reception (SessionBean)).
The tasks in the individual procedures are described below.
The stub acquisition method is the same as that used for creating an ordinary service requester that sends requests to the standard synchronous reception (SessionBean).
For details about stub acquisition, see 8.4.2 Acquiring Stubs.
The instance creation method is the same as that used for creating an ordinary service requester that sends requests to the standard synchronous reception (SessionBean).
For details about instance creation, 8.4.3 Creating Instances.
To invoke a method that sends a request for business process re-execution, use invokeBPXML().
An example of a method that sends a request for business process re-execution is shown below.
The following example shows the method for requesting re-execution of the business process.
Example: Requesting business process re-execution
String result = ws.invokeBPXML( // method invocation serviceName, // service name bpRequestType, // request type for business process bpProcessId, // process ID for business process clientID, // client correlation ID requestFormatID, // request format ID responseFormatID, // response format ID operationName, // operation name userData); // user message |
The parameters that become the arguments of the method are different from those used in creating an ordinary service requester that sends requests to the standard synchronous reception (SessionBean). The following table shows the details of the parameters that are specified for a service requester that sends a request to a synchronous reception (SessionBean) for business process re-execution.
Table 8-13 Parameter details (standard synchronous reception (SessionBean)/business process re-execution request)
Parameter name | Data type | Parameter (invokeBPXML) | Explanation |
---|---|---|---|
Service name | java.lang.String | serviceName | This is the service name of the request destination. This parameter is required. For the service name of the request destination, specify the business process defined in the development environment. |
Request type for business process | java.lang.String | cscBpRequestType | Indicates a request message type. To request business process re-execution, specify a RECOVER string.# |
Process ID for business process | java.lang.String | cscBpProcessID | This is a business process instance ID. Specify either a value acquired from error information or the value that is output to the message log. |
Client correlation ID | java.lang.String | clientID | This is a correlation identifier for uniquely identifying the request message from the service requester. Specify NULL for this parameter. |
Request format ID | java.lang.String | cscRequestFormatID | This is an ID for uniquely identifying the request message format from the service requester. Specify NULL or an empty character ("") for this parameter.# |
Response format ID | java.lang.String | cscResponseFormatID | This is an ID for uniquely identifying the response message from the HCSC server. Specify NULL or an empty character ("") for this parameter.# |
Operation name | java.lang.String | serviceOperationName | This is an operation name corresponding to the service name at the request destination. Specify NULL or an empty character ("") for this parameter.# |
User message | java.lang.String | msg | This is the request message from the service requester. Specify NULL or an empty character ("") for this parameter.# |
The request message creation method is the same as that used for creating an ordinary service requester that sends requests to the standard synchronous reception (SessionBean).
For details about request message creation, see 8.4.5 Creating Request Messages.
The response message acquisition method is the same as that used for creating an ordinary service requester that sends requests to the standard synchronous reception (SessionBean).
For details about response message acquisition, see 8.4.6 Acquiring Response Messages.
The method of installing a service requester for acquiring error information is the same as that used for creating an ordinary service requester that sends requests to the standard synchronous reception (SessionBean).
For details about error information acquisition, see 8.4.7 Acquiring Error Information.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.