- 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 - Message Edit Functions
Create choice to manage conditional processing of your message definition.
A message is based on three node types as defined in the Message Definition chapter.
To identify a node or a set of nodes that can have several alternatives in its structure and/or value, you need to enclose the set of related alternatives within a Choice node and each alternative branch into an Option node.
A Choice node is a virtual node identifying alternative branches. Each alternative branch is a possible option and is represented by an Option virtual node as illustrated in the following example:
There are two Choice nodes, one for the buyer's information, that accepts either a company structure with a VAT number value, or a person structure with firstname, lastname and address values. The other Choice node is for the price of an Item, it can accept either a price with a 0% or a 21% VAT.
In this latter case, both alternative branches have the same structure, but they have different static values (0 or 21) for their VAT node (static value nodes are green).
It is mandatory that each Option of a Choice is uniquely identifiable compared to each others. They could be identified by having different structures (like the buyer's Choice example) or by having the same structure with different static values (like in the price Choice example).
Choice and drag and drop mapping
Choice nodes are not mappable, only Option nodes can be mapped (using drag and drop).
Option mapping
Input: option node
Output: any node
Effect: the output node will only be generated if the option has been identified in the input. In this sample, there will be a price-vat-exc node on the output only if a price with its VAT equals to 0 is present in the input.
Purpose: acts like an 'if', it is a conditional execution based on the presence of the option.
Mapping of nodes within an option node
Input: any node within an option node
Output: any node
Effect: this will map the node as usual only in the case that the parent option has been identified. Otherwise the mapping is not executed. It is not mandatory to map the parent option node, the condition will always be applied.
Special case: as the mapping is conditional, you can map multiple value nodes on the same target value node, as long as the source has a parent option node.
Babel Academy
Community Forum
Support



Prev



Up
Reference Manual