-
Notifications
You must be signed in to change notification settings - Fork 8
Examples
Nitin Motgi edited this page Aug 19, 2017
·
2 revisions
Following are few useful examples on the usage of expressions.
- User wants to include a condition within a pipeline that would decide on the errors generated to whether proceed further or not. If there are 10% of errors generated by input data, we would like to terminate the pipeline.
(token['Normalization']['error'] / token['Database']['output']) > 0.1
OR
var percentage = (token['Normalization']['error'] / token['Database']['output']);
if (percentage > 0.1) {
false;
} else {
true;
}
Conditional Plugin - A boolean expression to control flow in pipeline.