Usecase: Here, we will generate outbound 850 EDI using standalone mode and REST request -response pattern.
Implementation Steps:
Step1: create a Trading-Partner-Lookup to keep all the Host company and TP related EDI Interchange ID, Group Id and Qualifier.
Step2: Create an App driven Orchestration style and configure Rest trigger to post Application data and receive back the EDI payload.
Step3: Add B2B action and configure it for the outbound direction.
Step4: configure the map action that occurs between rest adapter and B2B action to transform the back end application XML message to edi-xml-document.
Part1: specify the edi delimiters
Here, I used the following inside the edi-xml-document > headers > interchange-ctrl elemnt
element-separator : *
segment-terminator: ~
subelement-separator: :
Part2: Using the created TP lookup , insert the EDI Identifiers in the Interchange and Group Headers.
Under edi-xml-document > headers > interchange-ctrl.
sender-id-qualifier: dvm:lookupValue("tenant/resources/dvms/Trading-Partners-Lookup","TPID","Host Company","EDI_InterchangeID_Qualifier","TP Not Found")
sender-id: dvm:lookupValue("tenant/resources/dvms/Trading-Partners-Lookup","TPID","Host Company","EDI_Interchange_Identifier","TP Not Found")
receive-id-qualifier:
dvm:lookupValue("tenant/resources/dvms/Trading-Partners-Lookup","TPID",/nssrcmpr:execute/ns23:POMsgOutput/ns23:tradingPartnerId,"EDI_InterchangeID_Qualifier","TP Not Found")
receive-id:
dvm:lookupValue("tenant/resources/dvms/Trading-Partners-Lookup","TPID",/nssrcmpr:execute/ns23:POMsgOutput/ns23:tradingPartnerId,"EDI_Interchange_Identifier","TP Not Found")
- Interchange Control number (ISA13, IEA02)
- Group control number(GS06,GE02)
- Transaction set control number(ST02, SE02)
No comments:
Post a Comment