Filter
Before you begin
In order to use the features in this section you need to have an active Spojit account. If you don't have an account you can checkout out the pricing and register here. If you already have an account you can login here.
This service will allow a path to be filtered in the workflow based on a condition.
Filtering the path¶
If the condtion in the configuration evalutes to "true" the path will continue as normal. If the condition evaluates to "false" the path will be skipped from that point forward.
Option | Description | Default | Required |
---|---|---|---|
Condition | The conditions being evaluated. | - | TRUE |
Important
Strings need to surrounded by double quotes in order to evaluate correctly. You can also use brackets to enforce order of operations.
Conditions¶
Condition | Description | Example | Result |
---|---|---|---|
== | Equals | 1 == 1 | TRUE |
!= | Not equals | 1 != 1 | FALSE |
>= | Greater than or equals to | 3 >= 1 | TRUE |
<= | Less than or equals to | 5 <= 1 | FALSE |
> | Greater than | 3 > 1 | TRUE |
< | Less than | 5 < 10 | TRUE |
in | Is a value in array | 3 in [4, 3] | TRUE |
and | AND operator | (("status" == "status") and ("order" == "order")) | TRUE |
or | OR operator | ((1 == 1) or (5 > 5)) | TRUE |
Example configuration and mapping
The following example shows you how to configure the filter to add a condition.
The filter doesn't require any service data setup.
The filter doesn't output any data.