- Welcome
- Introducing Babelway B2B Integration
- Starting with Babelway
- Managing Account Environments
- Managing Channels
- The Catalogue
- Tracking Messages
- Managing Alerts
- Managing Your Account
- Best Practices
- Channels
- List of Channels
- View Change Log
- General
- Gateway In
- Message In
- Transformation
- Message Out
- Gateway Out
- Email Gateway Out
- Ftp Client Gateway Out
- SFTP Client Gateway Out
- Ftp Server Gateway Out
- AS2 Gateway
- Http Client Out Gateway
- Web Gateway
- Generic Gateway
- Internal Gateway Out
- Null Gateway
- OFTP Server Gateway out
- OFTP client Gateway out
- Http Out Gateway
- SOAP Gateway
- Soap Client Out Gateway
- X.400 Gateway out
- Aggregator Gateway Out
- Email Gateway Out
- Email Notifications
- Routing
- Testing
- List of Channels
- Building a Channel
- The Catalogue
- Tracking Messages
- Alerts
- Account Management
- Rest API
- Receive Orders From
- Receive Orders from Colruyt
- Receive Orders from Carrefour
- Receive Orders from Brico
- Receive Orders from Castorama
- Receive Orders from Cora BE
- Receive Orders from Delfood
- Receive Orders from Delhaize
- Receive Orders from DEliXL
- Receive Orders from Intergamma
- Receive Orders from Intermarche
- Receive Orders from JavaFresh
- Receive Orders from Makro
- Receive Orders from Match
- Receive Orders from Carrefour France
- Receive Orders from Colruyt
- Integrate Orders with
- Integration with Tradeshift
- Integration with Exact Online or Exact Globe
- Channel:SAP Idoc XML Order05 w/ Http client out
- System Metadata
- ODETTE Messages List
- External References
See: Managing Channels - Basic Channel Functions
Metadata is information about other data such as file name, channel or environment ID, mail addresses... that can be used as data to customize system outputs.
Metadata is useful to customize your own system output such as output file name and e-mail subject or body text.
All system metadata lists hereunder can be used when necessary.
Changing value assigned to a system metadata in drag and drop transformation
In drag and drop transformation you can use and route metadata linked to incoming message such as
Input File Name,
Input User... On the other hand, you can also add your own metadata in the
Message Definition Out
pane and map any node to this metadata. To add such a metadata, right click on
User defined metadata
and choose
Add
in the contextual menu.
This new metadata will then be available in following processing steps, for example it can be used in email notification body text as illustrated hereunder.
Using metadata to customize messages and file names
You can use system or user defined metadata in your output gateways and email notification configuration. The metadata values can be used to name output files sent through output gateways. or as part of a notification email subject and or body. The metadata used may even be different for success or failure messages as shown in following figures.
System metatada are referenced using syntaxt {com_babelway_messaging_context_***}. A list of available system metadata with returned variables and examples is available in System Metadata appendix.
User defined metatada are referenced using syntaxt {user-defined-property:your_metadata} where your_metadata is the name of your user defined metadata you want to reference as illustrated in the following example where the earlier user defined metadata is used as a name for the file sent as email attachment.
Concatenate values from a loop in a metadata
If you want to concatenate multiples values from a loop in a single metadata such as a message reference or a user defined metadata, you have 2 options:
1. Use a full custom xpath:
Do not map any loop.
Create a Xpath custom expression such as:
string-join (YOUR_XPATH, 'YOUR_SEPARATOR')
Where YOUR_XPATH is the path to all the element you want to concat such as:
/ediroot/interchange/group/transaction/loop/segment[@Id='NAD' and element[@Id='NAD01'] = 'BY']/element[@Id='NAD02']/subelement[@Sequence='1']
or
/csv/line/field1
Or drag a repeated element (such as the line hereover) on the custom function. All field1 elements under the repeated element will be concatenated and separated by the given separator.
$arg1/field1
YOUR_SEPARATOR is the separator between two elements of the list such as ' - ' for example.
2. Use the functions get-metadata and set-metadata
Map the loops to the output metadata
Create a Xpath custom expression with the following expression:
metadata-util:put($MSG,'com_babelway_messaging_context_message_reference', bfn:concat('YOUR_PREFIX', 'YOUR_SEPARATOR', 'YOUR_SUFFIX', metadata-util:get($MSG,'com_babelway_messaging_context_message_reference'), $arg1))Where
YOUR_PREFIX is the prefix added at the beginning of the result, ex: ' here is the list of value: '
YOUR_SEPARATOR is the separator added between the different elements, ex: ' – '
YOUR_SUFFIX is the suffix added at the end of the result ex: [i ' '[/i]
Drop the value of the element to the expression (= $arg1 )
Map the expression to the metadata
Babel Academy
Community Forum
Support



Prev




Up
Reference Manual