Conditional branches
Tutorial 7 🔎
dependency injection - initial branch
conditional branches - final branch
conditional branches pull request - pull request with code changes
Overview​
In this tutorial we explain how conditional transitions can be organized in a process scheme. Furthermore, we describe a process example where different priorities are defined based on Actions that are executed as result of defining certain types of Conditions.

The following stages are covered:
- Writing conditions in
ActionProvider. - Application build and run.
- Running the process.
Survey processing case​
In this case a quite simple logic for processing a survey is presented in the process scheme where the priorities for processing the queries of potential clients are calculated through defining several conditions.
Overall, a particular survey is received where the following information is identified:
- Technology stack - it means which technology is implemented by the prospective client or company.
- Amount of developers - how many developers work for the company.
- Job title - the specific designation within an organization, normally associated with a job description.
First, the technology stack is validated. When it is different to .NET, the survey is just dismissed and the process is terminated. Otherwise, the process goes on.
Next, the amount of developers is verified. It enables to determine the size of the company: Small, Medium and Big.
Then, the job position is checked. Here, the job title is evaluated by considering the departments: Development, Management and Other.
The mechanisms for defining the described Conditions are specified in this section.
Once the Conditions are defined, the priorities for processing the surveys are calculated. These priorities will be set automatically as: High, Medium and Low.