Dependencies
Runnerty provides a powerful feature to establish dependencies between processes. Not only it is possible to set up dependencies to other processes end states. You can also use operators to evaluate values, add complex conditions using operators and multiple expressions.
#
Process dependenciesIt is very easy to establish dependencies between processes using the property "depends_process"
in our processes. If you want to know how to configure and use processes in your chains, please click here.
We can set up a dependencie to other process end state using "$end"
and "$fail"
operators:
In the example below PROCESS_B
will start when PROCESS_A
ends:
Note than we can simplify this action just by adding "depends_process": ["PROCESS_A"]
In this example PROCESS_B
will start if PROCESS_A
fails:
#
OperatorsIt is possible to add operators to the dependencies if we need to evaluate more than one process:
Dependencies of two processes:
TIP
We can simplify this action just by adding "depends_process": ["PROCESS_A","PROCESS_B"]
#
Complex dependencies:Using operatios Runnerty offers the possibility to add complex dependencies between our processes.
In this example process E will start only if process A or B fails and process C and D end:
#
EvaluationsWith Runnerty we can also establish dependencies of an evaluation using values of our processes or chains. If you want to know more about the use of values in Runnerty, click on here.
#
EvaluatorsThe structure of the evaluator is {"value 1": {"$condition": "value 2"}}.
Of course in these values you can make use of all the functions.
These are the evaluators you can use:
These are some examples of how to use evaluators in the dependencies of a process:
Moreover, we can use the conditions however we want in the depends_process
property and create complex evaluations:
#
Multiple expressionsAt this point, you probably imagine that it is also possible to mix dependencies with other processes states and values evaluations. This is a simple example of how to do that: