1. Home
  2. Know how
  3. How to Sample Typing Service?

How to Sample Typing Service?

The Typing Service is the service available in IBM Sterling B2B Integrator. The typing service runs a series of maps until one of the maps creates all the output nodes (in process data) that are defined in the “required_parmlist” parameter.

The Typing service has a list of required and optional parameters that it searches for in the translated document.
If all required parameters are present, the service is complete and ends with no errors.
If all required parameters are not present, the Typing service uses the next map in the list.
The service uses each map until a map produces a translation that provides all the required parameters from the primary document.
When the service has all of the required parameters, it places the values of the parameters into process data for use by other services.
The process data values can then be used to control the flow of the Business Process.

The typing service is used in conjunction with the PCM for finding out which process in the Data Flow to be executed.

In the PCM, for a particular partner we can have multiple transactions such as 850, 864 etc. Based on the input based the appropriate flow has to be kicked.

 

The typing service is given the required parameters of Sender ID, Receiver ID and DOCTRANS. It returns the values after executing the series of maps. If none of the map returns the required outputs, it throws the error and exit. If it succeed, then based on the Sender Id, Receiver ID and DOCTRANS (Transaction) the PCM flow is executed.

Typing Service 
<assign to="required_parmlist">SENDERID RECEIVERID DOCTRANS</assign>
<assign to="typing_maplist"> (list of map names) </assign>

 Please refer to IBM help docs for more information

The maps used by the Typing Service are similar to the usual maps used in Sterling Integrator.

The input structure is based on the input file. It can be X12, XML, Flat File, IDOCS etc. We have to create separate maps for each of the different structure and used it in the Typing Service.

The output structure is always going to be the same. It can be XML structure with our required fields (Sender ID, Receiver ID and DOCTRANS).

In the same way, we create multiple maps based on our requirements and use it in the Typing Service. After the execution of the Typing Service, it provides us with the required values as per our output from map. It is then used to match with the flows available in PCM.

That’s how, Typing Service with Typing Map works for executing the flow in PCM.

Updated on August 3, 2019

Was this article helpful?

Related Articles

Leave a Comment