Integrate Software AG Products Using Digital Event Services 10.4 | Integrate Software AG Products Using Digital Event Services | MashZone NextGen Help | Appendix | Legacy Presto components | Mashables and Mashups | Mashups in MashZone NextGen Wires | Creating Mashups in Wires | Add If/Else Conditions | Execution Condition Limitations
 
Execution Condition Limitations
There are some specific limitations you must consider when constructing if/else logic in Wires:
*If you want only one condition to be met, all of the conditions must bemutually exclusive. The common usage for if/else logic in programming languagesis to check each condition until one is found to be true. Once a condition ismet, that clause is executed and all subsequent conditions are skipped.
With execution conditions in Wires,each branch is independent. Every branch is evaluated todetermine if it should execute without regard to any other branch. If theconditions are not mutually exclusive, multiple branches will run.
*The mathematical operators, such as > or != are best used with numeric data . You may need to use casting functions, such asToNumber, in the Data Decorator, Mapper or Transformer blocks to make sure thatdata is treated as numeric.
*Block conditions do not have a way to specify Elselogic (no previous conditions are met). To handle the behavior you want if noconditions are met, you must define a condition that is the reverse of allother conditions. See If/Else Examples for an example.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release