ebXML BPSS Doc Parsing Service

The ebXML BPSS Doc Parsing service validates the document based on the Conditional Expression specified in the BPSS.

The following table provides an overview of the ebXML BPSS Doc Parsing service:

System name BPSSDocParser
Graphical Process Modeler (GPM) categories All Services, Internet B2B > ebXML
Description Validates the document based on the Conditional Expression specified in the BPSS.
Business usage It helps to determine the SUCCESS or FAILURE of the state of the transaction.
Usage example A business process that needs to determine the end state of the transaction can invoke this service by passing the required parameters.
Preconfigured? Must be installed and deployed before it can run. There are no configuration parameters required.
Requires third-party files? No
Platform availability All supported Sterling B2B Integrator platforms
Related services No
Application requirements No
Initiates business processes? No
Invocation Not applicable
Business process context considerations No
Returned status values None
Restrictions No

Implementing the ebXML BPSS Doc Parsing Service

To implement the ebXML BPSS Doc Parsing service, complete the following tasks:
  1. Create an ebXML BPSS Doc Parsing service configuration. See Managing Services and Adapters.
  2. Configure the ebXML BPSS Doc Parsing service. For information, see Configuring the ebXML BPSS Doc Parsing Service.
  3. Use the ebXML BPSS Doc Parsing service in a business process.

Configuring the ebXML BPSS Doc Parsing Service

To configure the ebXML BPSS Doc Parsing service, you must specify settings for the following fields in the GPM:

Field Description
Config Name of the service configuration.
documentId The ID of the document. Required.
documentKey Contains the value PrimaryDocument.
expression The conditional expression as specified in the BPSS. Enclose the expression with ' instead of single quotation marks. Required.

Output from Service to Business Process

The following values are passed from the service to a business process:

Field Description
validityStatement/validate/value Indicates if the documents are validated correctly. Possible values are true and false.

The following examples show an input message coming back to the business process:

Example 1

<validityStatement>
   <validate>
      <value>true</value>
   </validate> 
</validityStatement>

Example 2

<validityStatement>
   <validate>
      <value>true</value>
   </validate> 
</validityStatement>

Business Process Example

This business process assumes that the output message values are found in the process data:

<operation name="ValidateDoc">
	<participant name="BPSSDocParser"/>
	<output message="validateCondExpr">
	<assign to="documentId" from="documents/document[1]/doc:document-id/text()"/>
	<assign to="expression" 
    from="string(ProcessSpecification/Package/BinaryCollaboration
     [@name=//binaryCollaboration/text()]
/Success[@fromBusinessState=//businessTransactionActivity/text()]/
     ConditionExpression/@expression)"/>
	</output>
	<input message="validateCondResponse">
	<assign to="result" from="validityStatement/validate/value/text()"/>
	</input> 
</operation>