Changing process conditions

The window for changing process conditions opens inside the workflow administration interface by clicking on the 'Edit conditions' button. This window consists of two parts - a display of conditions in the form of a tree with nodes on the left, and a table of conditions located in the selected node on the right.

A node, or condition, can be marked by pressing the left mouse button either inside a tree or inside a table. By marking the conditions within the tree, the table will show all the conditions that are inside the node in which the selected condition is located, and the corresponding node will be automatically marked within the table.

Likewise, by marking conditions within a table, the same node will automatically be marked inside the tree.

In the lower right corner of the window there are two buttons, 'Save changes' to save all entered changes, and a 'Cancel' button to discard all changes.

The table consists of two columns with data:

  • 'Type' - a condition data type, which can be 'string' (text), 'int' (integer), 'double' (decimal), 'date' (date), 'regex' (regular expression), 'or '(expression' or ') and' and '(expression' i ').
  • 'Display' - text display of conditions. The view by condition data type looks like this:
  • for string: "LIKE" written_string "'
  • for int and double: 'BETWEEN "min_value" AND "max_value"'
  • for dates: 'BETWEEN "start_date" AND "end_date"'
  • for regex: "REGEX" entered_form "'
  • for or: 'OR condition'
  • for and: 'AND condition'

Inside the table on the right are two more columns - 'Edit' and 'Del', which contain icons for editing and deleting the entered conditions.

Enter a new condition

Below the tree view are two buttons used to enter a new condition. These are the ‘Insert’ and ‘Insert child’ buttons. The 'Insert' button is used to enter a new condition within the same node in which the selected condition is located. The 'Insert child' button is used to enter a new condition within the node / condition that is highlighted. This button is active only if one of the following conditions is checked: root node, condition 'and' or condition 'or'.

Pressing one of these buttons will open a window for entering a new 'Edit condition', consisting of a 'Type' field and an input field, which change depending on what is selected under 'Type'.

The 'Type' field indicates the type of data that is selected via the drop-down menu. The data type can be 'string' (text), 'int' (integer), 'double' (decimal), 'date' (date), 'regex' (regular expression), 'or' (expression 'or') and 'and' (expression 'i').

Each condition has its own name, which is entered within the 'Name' field.

  • When entering a text (string) condition, it is necessary to enter the value 'String value'. This condition indicates that the text must be equal to that entered value.
  • When entering an integer value (int), it is necessary to enter the minimum value 'Min value' and the maximum value 'Max value'. This condition indicates that the integer value must be greater than or equal to the minimum, and less than or equal to the maximum value.
  • When entering a decimal value (double), it is necessary to enter the minimum value 'Min value' and the maximum value 'Max value'. This condition indicates that the decimal value must be greater than or equal to the minimum, and less than or equal to the maximum value.
  • When entering the date, the start date 'Min date' and the end date 'Max date' must be entered. This condition indicates that the date must be between the start and end date.
  • When entering a regular expression (regex), it is necessary to enter the text that indicates the form that must be met.
  • When entering 'And' and 'Or' expressions, there are no additional input fields, except for entering names.
  • Below the data entry form is the text 'Data verification', which during the entry shows the result of checking that all data is entered correctly.

There are two buttons in the lower right corner of the window: 'Cancel' to reject the entry, and 'OK' to enter a new condition. The 'OK' button is only active if all data has been entered correctly.

Changes in conditions

The conditions can be changed by clicking on the corresponding icon in the 'Edit' column of the table on the right. Clicking on this icon will open the 'Edit condition' window. The appearance and functionality of this window are the same as when entering a new condition.

In the lower right corner of this window there are two buttons: 'Cancel' to reject the changes, and 'OK' to enter changes to the selected condition. The 'OK' button is only active if all data has been entered correctly.

Delete conditions

The condition can be deleted by clicking on the corresponding icon in the 'Del' column of the table on the right.

Below the data entry form is the text 'Data verification', which displays the result of checking that all data has been entered correctly during entry.