Creating Inbound Relationship for Non-EDI Data
You can create an inbound relationship to define the rules for processing an inbound message. This section helps you in creating an inbound relationship for Non-EDI data.
To create a Non-EDI inbound relationship:
Go to Develop > Solutions > B2B > Relationships.
Select the Trading Partner activity for which you want to define the inbound relationship from the left menu and then click Inbound Relationship tab.
Click CreateNew.
Select Others(Non-EDI) and click Next.
- Type the name and description for the Inbound relationship in the Name and Description.
- Select the project from the Project for which you want to create a non-EDI inbound relationship.
- Select the format of the data receiving from the partner from the Sender Format Type.
- Provide the type of the inbound document in the Document Type.
- Type the document version of the inbound document in the Document Version.
- Select the type of event that you want to use to look up the inbound data from the Event Type. The supported event types are File, Mail, JMS, and FTP.
- Depending on the chosen Event Type, select the event from the Event Service. This is the event that you have configured to look up the inbound data.
- Select Decrypt Source File check box to decrypt an incoming encrypted EDI file and then select a decryption activity from the Data Security in order to decrypt source file.
- Select Partner Identification Required check box to identify a partner based on the content. You need to define a partner identifier. The event and the Partner Identifier is same for another trading partner also.
Select the partner identifier from the Partner Identifier or click to create a new partner identifier.
Using Partner Identifier, you can define the two XPath expression to filter the inbound data.
For information on how to create a Partner Identifier, refer to Creating Partner Identifier.
- Type the value of Identifier1 XPath and Identifier2 XPath (defined in selected Partner Identifier) in the Identifier1value and Identifier2 value.
Select the process flow to process inbound data from the Process Flow.
Ideally, you should select default B2BI_Default as a process flow. In case you select another process flow, the logs will not be generated.
Select the mode for processing Non-EDI file from the Processing Mode. The available options are Transform and Route.
Transform: This will transform and route your non-EDI file to HL7 formats.
Route: This will move your non-EDI file from one location to another.
Select the mapping activity to map the fields of inbound data with the fields of the target data from the Mapping.
Mapping is applicable only if you select Transform option as a Processing Mode.
Select the target type from the Target Type. Depending upon the selection of the Processing Mode (Transform or Route), the target type options may differ.
Select the target activity from the Target Service.
Steps 19 to 22 are applicable only for File, LAN File, and FTP Target types.Type the name of the target file in the File Name. This field is enable for File, FTP, LAN File, and Mail Target type.
File Name can contain date-time stamp followed by % in the format: File_Name%%dd-mm-yy_hhmmssSS%%. For example, test_output%%01-01-2016_15-15-23%%.If you have selected Mail Target as Target Type then you can dynamically override the file name. For more information, refer to Dynamically Overriding File Name.
Select the format of the time stamp from Time Stamp Format of the time stamp format. This appends the selected date and time stamp in the name of the newly created file.
In case, you provide date-time stamp in the File Name and select the format from the Time Stamp Format then both time stamps will get appended to the target file name.- Select Create Unique File check box to create a target file with a unique name. When this option is selected, a unique number is appended to the file name.
Type the extension of the target file in the File Extension.
Select Encrypt Target file check box to encrypt the target file and then select the encryption key to encrypt the file from the Data Security.
Click here to know about Data Security.- Select Create Archive File check box to create an archive of the generated output file. This creates a direct copy of the generated output file in the Archive Target as mentioned in an inbound relationship for future access. You have two strategies to create an archive file:
- Default: For default strategy type, do the following:
- Provide the path to the archived file in the Archive Folder Name. Provide the folder path with the path provided in the abpm.solution.b2b.archive.basepath property (Administer > Update System Properties > Solution Properties > EDI Solution Properties > Default B2B Archiving Policy).
- Select Auto Organised Archive Folder Based On Date check box to create folders in the format YYYY/MM/DD on the path specified in the Archive Folder Name.
- Select the time stamp in the Archive File Time Stamp.
- Create Target Activity: For this option, you can further select the Archive Service Type and Name.
- Select View Plain Text Archived File check box to view the encrypted files generated at the archival location in a plain text. This option appears if you have selected Encrypt Target File check box.
- Default: For default strategy type, do the following:
Select Send Error Notification check box to receive the error notifications.
If you select this option, you need to do some additional settings. For more information, refer to Receiving EDI Notification.
Expand Advanced Properties.
For information on Advanced Properties, refer to Changing Advanced Properties.- Click Save. This creates your inbound relationship.
Dynamically Overriding File Name
In Non-EDI relationship, you can dynamically override the file name while using Mail Target as a target type. Follow the below steps to dynamically override the file name:
- In Data Mapping activity, create a context variable and define the filename. For example, set-context variable ('filename_variable','Dynamic') in data mapping.
Where, filename_variable is the context variable and Dynamic is the value of the file name which you want to use for the mail target filename. Now, in Non-EDI relationship, enter the File Name value as $$filename_variable$$.
Where, filename_variable is the context variable you set in the Data Mapping activity.In case, you want to dynamically override the mail target file name in a Process flow, then set the File Name value as $$filename_variable$$ in Mail Target.