Procedures
A procedure is a generally designed rule that defines common rules and sequences of steps of a certain kind of process in the company. A specific process then runs according to this rule.
Each procedure has its header and procedure version. So-called procedure versioning makes it possible to make changes to kinds of procedures that are currently being used for processes. A new procedure version is created for the same header, and in this newly created version the user can then make changes while the processes currently running in the company use the unchanged, still valid version of the procedure.
Procedures book
The Procedures book is a list of all versions of workflow procedures.
Picture: Procedures - book
Description of columns:
C |
Procedure status (confirmed/unconfirmed/cancelled). |
N |
Deployment - if at least one process exists from the given procedure version, an icon is displayed: - means that processes have been created from the given procedure version, of which at least one is not yet terminated or is suspended.
If the column is empty, it means that no process has yet been created from the given procedure version. |
Version |
Serial number of the procedure version, automatically assigned by the program. |
Directive |
Indication of whether the procedure is a directive. |
Classification |
Classification of the procedure (ISO, operational, business) |
Valid from |
The procedure is valid from the specified date. |
Valid to |
The procedure is valid to the specified date. |
When approving versioned procedures, the dates in the "Valid from" and "Valid to" fields must not overlap for versions of one procedure header. I.e., one procedure header can have only one valid (approved) version at any given moment.
Description of keys:
Ins |
Creating a new version of the procedure. |
F6 |
New revision of the procedure (the release field keeps the same number as in the original procedure and the revision field is set to a number higher by 1). |
Alt+F2 |
Confirmation of the procedure (approval status). |
Alt+F3 |
Deactivation of the procedure. |
Ctrl+F2 |
Undo the confirmation of the procedure (from the approved status back to the editing status). |
Ctrl+F6 |
New release of the procedure (the release field is increased by 1 and the revision field is set to 1). |
Shift+F6 |
Copy of the versioned procedure. |
Note: Creating a new revision or release copies the procedure from which the function is run. As needed, we then adjust the release number, revision, validity, etc.
In Administrator - System - Multi company administration, it is possible to split procedures among own companies in the Workflow procedures module. This action also splits the processes. The name of the own company can then be found in the record preview.

Picture: Splitting a procedure in Multi company administration
Procedures - basic data
On the 1st tab of versioned procedures, we select the procedure header; it contains basic information about the procedure version, e.g. its validity and the roles that the given procedure version concerns.

Picture: Procedures - basic data - Goal tab
Description of fields:
Procedure |
Abbreviation of the procedure header, language Name of the procedure header. |
Version |
Procedure version number (assigned automatically by the program; numbered in ascending order from 1 for each header). |
Valid from |
Time value from which the procedure is valid. (For the procedure to be valid, it must also be confirmed.) |
to |
Time value until which the procedure is valid. |
Edition |
Release number of the versioned procedure. After checking the Directive field, this number can be edited. |
Standard |
General code list of standards for closer identification of the given directive (filled in by ourselves according to the valid ISO 9000 standards). The field is active after checking the Directive field. |
Classification |
Classification of the versioned procedure (general code list for closer identification of the given directive). |
Reviewed |
Date and contact person who reviewed the given procedure (directive). |
Sensitivity |
Selection from a user code list. |
Revision |
Revision number of the versioned procedure. After checking the Directive field, this number can be edited. |
Chapter |
Chapter abbreviation (general code list for closer identification of the given directive). The field is active after checking the Directive field. |
Directive |
Checking this field classifies the given versioned procedure as a directive. |
Authorised by |
Date and contact person who approved the given procedure version. |
Created by, Changed by, Confirmed by |
Date and user who created, changed or confirmed the given procedure version. |
Procedure document |
Abbreviation of the document assigned to the procedure. |
Display the "Task instructions" field |
If checked, the Task instructions tab is displayed in the Process and the Work step. |
Tab description:
Description |
Procedure description |
Target |
Description of the Goal of the given procedure version. (What the process solves.) |
Distribution list |
List of contact persons for whom the given procedure version (directive) is intended. |
Notification |
List of roles whose contact persons can see the entire versioned procedure in the Own procedures and steps book. |
Monitoring |
Contact persons included on this tab will have the processes created from this procedure included in the Monitored processes book. They will be able to monitor these processes even though they do not have the Process view mode right. This function is useful e.g. for monitoring processes in which the user's subordinates have various tasks. |
Right to run |
List of roles whose contact persons can create a process from this procedure version. |
Responsibility |
List of roles from whose contact persons the person responsible for the process can be selected when creating a process from the given procedure version. These persons can also cancel the process if they also have the Process cancellation right. These contact persons can also see the entire versioned procedure in the Own procedures and steps book.
|
Variables |
List of variables allowing users to enter additional values when handling a process. |
Process debug parameters |
List of parameters that can affect the process. For example, suppressing the step assignee according to the procedure. |

Picture: Procedures - basic data - Variables tab
Variables allow users to enter additional values when handling a process. This makes it possible to extend the data structure of the process (e.g. using this variable we can force the user to enter the cost centre for which the invoice for approval is intended, or to enter the start and end date of a holiday, ...).
We work with variables mainly when using parameters on the Action tab. The variables entered here are created in the Variables definition book and then selected from this book.
If we want to set further properties of a variable that will apply only to this procedure, we can set them right here, on the Variables tab. We thus insert variables for the whole procedure, and these variables are then used in steps. Variables are inserted here with the Ins key.

Picture: Procedure variable - form Procedures - Variables tab
Description of fields:
Variable |
In this field, we select a variable from the Variables definition book. |
Value |
Here we enter the Value that will be automatically stored in the Variable when a new process is created; the user will be able to overwrite the value in the process. |
Internal variable |
If the Procedure variable is marked as Internal, it is not displayed in the Steps book when pressing Shift+F8. A variable not marked as Internal is displayed with its current value after pressing these keys. |
Input passed variable |
If the same Variable exists in the subordinate process (subprocess) or the superior process, the values of this variable will be passed when this field is checked. Ex.: There is a process with step "A" with the variable value "5". In the following subprocess, there is step "B" with the same variable and with the Input passed variable field checked. The value "5" from step "A" is inserted into the value of this variable. |
Output passed variable |
On exit from the subordinate to the superior process or vice versa, the values of the same Variable will also be passed back when this field is checked. Ex.: In a subprocess, there is step "A" with the variable value "5". If, in step "B" of the superior process with the same variable and with the Output passed variable field checked, we insert the value "6" into this variable, this variable is also overwritten with the value "6" in step "A". |
Procedures - header
The Procedures book contains all headers of versioned workflow procedures. Each procedure header can have several procedure versions. However, for each header, only one procedure version can be valid at any given moment, and it will be used for the process.
The Procedures book can be displayed on the basic data tab by invoking the selection (using the F12 key) in the Procedure field.

Picture: Procedures - displaying the list of procedure headers
In this book, we can create a new procedure header with the Ins key, or select a previously created header for the versioned procedure by highlighting the header and pressing Enter.
When creating a procedure header, basic identification data is filled in.

Picture: Procedures - creating a Procedure header
Description of fields:
Abbreviation |
Abbreviation of the procedure header. The abbreviation is mandatory and there must not be more headers with the same abbreviation. |
Name |
Name of the procedure header. |
Type |
Type of the procedure header - a user code list, used e.g. for sorting or grouping headers by a certain criterion. |
Language name |
This field makes it possible to assign a name in a foreign language to the header (see User parameters - Language). |
Description |
Additional details about the record |
Procedures - editor
The procedure chart is defined on the editor tab of the Procedures book.
The chart is created from individual procedure steps (chart nodes) connected by arrows. Together they represent the run of the process.
Further information can be added to the procedure and to the chart objects (arrows and nodes) (on the Steps, Steps order and Links tabs), through which further conditions for the course of the process are entered, thereby refining its functionality.

Picture: Procedures - editor
A step or arrow in the chart is selected by marking the object with the left mouse button. This node is outlined in red. Depending on the selected node, information about this node is displayed on the tabs below the chart. Using the combination of Ctrl and the left mouse button, we can mark several nodes in red at once.
- If a step is marked, we enter or display information about the selected step on the tabs:
- Basic properties - name, grouping, priority, type and documentation text
- Completion dates - time for completion, calendar
- Description - text description of the step; it can be displayed when handling the step.
- Assignees - the roles that are to handle the given step and the deputizing mode are entered here.
- Action - parameters or scripts and their parameters can be entered for each step event. In processes, these parameters and scripts can set and calculate the values of variables, perform actions with K2 products, ...
- If an arrow is marked, we enter or display information about the selected arrow on the tabs:
- Basic properties - shape, action, order and process status
- Action - for the Input event , parameters and scripts can be entered, according to which it is evaluated whether this arrow can be passed.
The user invokes the form of an individual step or link either by double-clicking directly on the picture representing the step or link in the editor, or via the tables below the editor on the steps, steps order and links tabs. Here we select the required step or link and get to the same form. Here we can freely enter variables, scripts and more.
The chart defines the course (path) of the process.
To activate the panel with the step selection, it is necessary to switch to change mode (F5). The panel is then displayed in the upper left part of the editor. A node is placed into the chart by marking the relevant icon on the toolbar with the left mouse button (the icon becomes active), and then placing it by pressing the left mouse button in the area intended for the chart.
Chart properties:
- Each procedure must begin with only one step of the Initiation type and end with one step of the Termination type. These steps are already inserted into the chart when the process is created. The user can rename or move them.
- Individual steps must be connected by a Bind arrow. An arrow of the Bind type is executed during the process run if the step from which the arrow leads is approved. An arrow of the Feedback type is executed during the process if the step from which the arrow leads is rejected.
- Steps of the Transformation, Decision and Distribution types are equivalent in terms of processing. Steps of this type must be connected by an arrow both on the input and on the output.
- A step of the Notification type is supplementary (such steps are created at the given moment but have no influence on the further course of the whole process). No arrow has to lead from this step and the process is considered consistent.
- The graphical design of the process can be changed freely, e.g. by moving individual chart objects.
Connecting two nodes with an arrow:
- on the toolbar above the chart, select the arrow type by pressing the left mouse button on the arrow icon,
- on the node from which the arrow is to lead, press the left mouse button and, holding the button down, move the cursor to the node to which the arrow is to lead,
- release the mouse button.

Picture: Procedures - editor
Description of buttons:
|
Selection of objects |
If this icon is marked, we can select objects in the chart and move them. We cannot insert them into the chart. |
|
Initiation |
Step of the Beginning type - a mandatory step, marks the beginning of the process run; each versioned procedure always has exactly one such node. |
|
Termination |
Step of the End type - a mandatory step, marks the end of the process run; each versioned procedure always has exactly one such node. |
|
Transformation Decision Distribution |
Process steps must be connected by a Bind arrow; their functionality is identical. |
|
Nested procedure |
Step of the Nested procedure type - a process step that makes it possible to insert (nest) another procedure into the procedure. |
|
Notification |
Step of the Notification type - used to inform users. Similarly to the Checkpoint, it does not affect the process run. (E.g. it informs that the process has reached this step or that a certain step has been approved in the process.) |
|
Bind |
Forward arrow - the process continues to another node. |
|
Feedback |
Backward arrow - can lead to another (earlier) node of the process or to a step of the Termination type. |
Next to these buttons, three more buttons have been added: Copy, Insert and Delete. Their functionality and keyboard shortcuts are the same as when using these buttons in normal user activity. This means clicking on the selected node, using e.g. the Copy button or the Ctrl+C keyboard shortcut, and then inserting it into another part of the chart using the Insert button or Ctrl+V.
In the right part of this bar, it is also possible to zoom in on the chart using the + icon or zoom out using the - icon.
In the lower right part of the editor, there is a so-called React flow, which shows the overall layout of the designed chart. This is useful when building more complex diagrams.
On the Description tab, we can enter a description of the procedure or step. Clicking the required step (either in the editor or in the table below it) opens a form. Here, if the user is in change mode, they can add any description.
Descriptions are accessible in other books such as Steps, Processes, etc.
Descriptions can be localized into other languages with the Language description button (see User parameters - Language).

Picture: Procedures - editor - step - Description tab
On the Assignees tab, we enter the roles that are to handle the given step. It is also specified here how the step assignee is to be selected (the Selection method field). To select the assignees of a specific step, the user is shown the set of all contact persons entered in the roles. From this group of assignees, the user then selects the step assignee in a specific process.

Picture: Procedures - editor - step - Assignees
Description of fields:
Selection method |
The selected variant determines how and for whom the given step will be created. By default, All is entered here. |
|
|
One of them |
The step is created for all persons in the specified Role, but after the step is accepted by one of these assignees, the step is cancelled for the others. (If one assignee performs an event other than Loading, the step is cancelled for the others.) |
|
User-selected one of |
Before the next step is created, the user who is finishing the previous step is shown a list of contact persons from which the user:
|
|
All |
The step is created for all persons in the specified Role. All these persons must approve the step. The Approval event occurs only after the step is approved by the last person in the role. In the case of Rejection, however, rejection by one assignee is sufficient and the step is cancelled for the others. |
|
All - select by user |
Before the step is created, the user who is finishing the previous step is shown the option of selecting contact persons. The step is then created only for the marked persons. Further processing corresponds to the All selection method. |
Consider the Center |
The prerequisite is that the workflow is connected to the organizational structure. If a structure by job positions is defined in the organizational structure, the tree from this structure will be respected and the corresponding step will be displayed to the assignees from the given branch. |
|
Assignee is superior |
Checking this option adds the assignee - the superior according to the connected organizational structure. |
|
Allow the same step assignee multiple times |
Checking this option sets that the same assignee can be on a step in the process multiple times. This is the case when we want a specific person to approve the step multiple times from different positions of the org. structure. |
|
If the user is in change mode and wants to add a step assignee using the Insert key, the following form is displayed.
Description of fields:
Roles |
Here the step assignee is selected from the Roles book. Persons included in these roles can be selected to handle this step. |
Substitutability - Mode |
Deputizing mode, on the basis of which other persons can deputize for persons included in the role specified in the Role field when handling the step. Description of deputizing - see Deputizing. |

Picture: Procedures - editor - step - entering Assignees
In the function of searching for step assignees according to the org. structure, the validity of the org. unit and the validity of the person (FROM/TO) can also be taken into account

Picture: Validity of the organizational unit and person
Deputizing is used so that a step can be handled by a person other than the step assignee if the assignee is absent (i.e. has an Absence entered).
The deputizing mode is set for individual Roles in the Step assignee form:
- "Not set" - no deputizing takes place.
- "Superior" - the direct superior according to the organizational structure deputizes.
- "By role" - when selecting this mode, we enter the Roles that can deputize. All persons included in the Roles for deputizing can then deputize for the assignee.
- "By organ. structure" - the assignee is deputized by the person who is entered in the Organizational structure in the Organizational unit on the Deputies tab.
When deputizing in the "Superior" and "By role" modes, the Consider cost centre option can be enabled - in that case, only persons who have the same cost centre entered in the organizational structure as the assignee deputize.

Picture: Deputizing setting "By role"
All deputies are shown the specific steps in the Steps and Pending books. In these books, deputies can change the assignee (transfer the step to themselves) by running the Deputize operation and start handling the step.
Handling of the step can also be transferred to a deputy with the Forward operation. The following persons have the option to forward steps in a specific process:
- all step assignees (for whom the specific step was created),
- all deputies,
- users with the right to administer workflow processes.
Steps can be forwarded not only to deputies but also to other (or back to the original) step assignees.
When users handle steps, actions arise in the process. These actions control the run of the whole process.
There are user actions and system actions.
- User actions are triggered by the user themselves by performing certain operations on a process step in the Work steps book:
- when a step is created, the Create, event is recorded
- if the user opens the step, the Loading, event is created
- if the user accepts the step, agreeing to handle the given step, the Acceptance event arises,
- when forwarding, i.e. handing the step over to a deputy, the Forward event arises,
- when approving, the Approval event arises,
- when rejecting, the Rejection event arises.
- System actions are performed by the system; they are triggered after some user event:
- when a step is created, the Input, action is recorded
- if the step is terminated (i.e. approved or rejected), the Output action is created. If the step is intended for several users, the execution of this event waits for the step to be approved by the last user. However, if any of the users rejects the step during its course, this action runs immediately without waiting for the response of the other users,
- The Monitoring action is used for evaluating scripts.
By entering parameters or scripts we specify that some further activities are to be performed during this action. In this way, the process run can be further controlled, e.g.:
- influence the selection of persons for whom the step will be created,
- set the process status,
- calculate the value of process and step Variables and work with them,
- insert a Product, Document,
- work with product values.
By entering parameters and scripts in actions, these events are then triggered during the process at the specified actions.
- If, when reading the step, the user immediately approves or rejects it, the Acceptance action is also created automatically. The parameters and scripts entered in the acceptance action are run, and then the scripts and parameters entered in the approval, rejection and output actions are run.
- If the step is intended for several users and each of them must approve it, the approval action arises only when the step is approved by the last user.
- If any of the users rejects the step, the responses of the other users are no longer awaited and the Rejection action arises (or the Output event).
For a process, the actions record the Change of process status; for steps, the History of step actions is recorded (in the Processes book).

Picture: Procedures - Editor - Action tab
If several actions are defined for the same event, the system takes their order into account (actions with the lowest number have priority). The order can be adjusted in the table using the Order column - after clicking this column, arrows are displayed with which the order of the action can be changed.

Picture: Procedures - Editor - Action tab - arrows
Description of fields:
Abbreviation |
Abbreviation of the step. It is predefined and can be changed; it must be unique within the designed procedure. |
Name |
Name of the step. This name is also displayed in the chart next to the step. |
Language name |
Makes it possible to enter the Name of the step in other languages (see User parameters - Language). |
Type |
Step type (transformation, decision, distribution) |
Document text |
Any text that is displayed next to the step when printing the Procedure and Directive reports. |
Grouping |
Allows the user to include the given step in a group of steps (see Steps grouping below). |
Priority |
The Priority of the step is entered. The field is pre-filled according to the Priority entered in the procedure. In the Work steps/Pending book, the user can sort steps according to the priority entered here (the priority is displayed on the zero page in the Pt column by a flag symbol of different colours - see Work steps - Book). |
Type of time interval |
The Type of time interval is entered here. The field is pre-filled according to the Type of time interval entered in the procedure. |
Time for completion |
Based on the Time for completion of the step, the date by which the user is to handle the step (approve, forward, reject) is calculated. The date is displayed in the Process step in the Deadline field. The field is pre-filled according to the Time for completion entered in the procedure. The date for completion of the step also takes into account the values entered in the Type of time interval field. |
Calendar |
Type of the calendar used |
Notification of new step |
Checking this option sends notifications to assignees when a new process step is created. |
Notify |
Checking this option sends notifications to assignees about the deadline for completing a new process step. |
The Priority, Type of time interval and Time for completion of step fields are filled in here as the default value for steps. Each newly created step will have these values filled in these fields on the Action tab. If we change the values in these fields and the procedure already has some steps created, the system asks whether we want to change the changed value in the already created steps as well. If we answer "Yes", the value is changed in all steps and will apply to all newly created steps; if we answer "No", the new value will apply only to all newly created steps.
A new event is entered on the Action tab with the Ins key.
Description of fields:
Event |
Here the events are set at which Scripts are to be run or Parameters handled. The Procedure has the Input event set by default and it can be changed. The Arrow has the Input event set and it can be changed. Steps have several events preset, see the description below. |
Script |
Here we can select the Script that will be run at the action entered in the Event field. Description of scripts - see Scripts. In the Parameters field, we can also enter parameters that this script will use and evaluate. |
Parameters |
Used for inserting Parameters that will be handled at the specified event. Description of parameters - see Parameters. If we have entered a script and also want to enter parameters for the same event that do not belong to the script, we must enter these parameters in another item of the step (procedure). |
Up |
When several parameters are entered, the selected parameter can be moved up in the list. |
Down |
When several parameters are entered, the selected parameter can be moved down in the list. |
Copy, Insert |
Parameters can also be copied and inserted between individual steps. |
Link actions
When setting a link property, we determine to which status the process is to change when passing through this link (Don't change, Suspended, ...).
When a link is created, a property is created on the Action tab with Don't change entered in the Process status field.

Picture: Link action form opened after marking the link
The following properties can be entered for an arrow:
Name |
Arrow name - text displayed next to the arrow in the chart. |
Order |
Determines the order in which the arrows leading from one node were created and the order in which these arrows will be handled. |
Process status |
Here we can influence the process status. This can be used for decision-making at steps with a nested procedure or for displaying the process status, showing what status the process is in or whether the process ended with approval or rejection. If the process passes through this arrow, the process status changes to the one entered here:
|
Action |
Action type (Approval, rejection) |
Shape |
Link shape (polyline, straight, vertical, horizontal) |
Steps grouping
Steps grouping allows the user to combine several procedure steps into one group. The following step then views this grouping of steps as one unit (step). Steps grouping is used if persons at a step with the same (or a similar) task must not see each other's variable values. Therefore, they cannot be included in a role for one step. Each of them must approve the step separately, but the following step may be created only when all steps in the grouping are approved.
Note: Steps grouping can also be controlled dynamically. More detailed information can be found in Dynamic steps grouping.

Picture: Steps grouping
Creating Steps grouping
A step is included in a grouping by marking it and, on the Action tab, entering a single-digit number or letter in the Grouping field - the so-called grouping identification. This identification must be the same for all steps that we want to include in one grouping. In the chart, the grouping identification is visible after the step name as the letter or number of the grouping in brackets.
A Feedback arrow must lead from each step in the group. When a step is rejected by one user, this step is cancelled for all persons at the steps in the grouping and the step to which the Feedback arrow leads is created.
Example of use:
The persons assigned to the steps "Production cost centre", "Sales cost centre" and "Purchase cost centre" (hereinafter "Cost centre directors") are to approve the turnover that was sent to each "Cost centre director" by the person assigned to the step "Entering turnover and sending for approval". The step named "Turnover approved" must not be created until all "Cost centre directors" have approved their step. The steps "Production cost centre", "Sales cost centre" and "Purchase cost centre" were therefore included in Grouping "A". If all steps in this grouping are approved, the step named "Turnover approved" is created. If any person in grouping "A" rejects their step, the process returns to the step "Entering turnover and sending for approval". After the step "Entering turnover and sending for approval" is handled again, the steps in the grouping are created for all persons again.
Note: If the person at the step "Production cost centre" rejected the step before the persons at the steps "Sales cost centre" and "Purchase cost centre" managed to approve their step, this step is cancelled for them. However, if they have already approved this step, the step is not cancelled by the rejection by another user in the steps grouping.
For a more detailed description of scripts and parameters, see Workflow scripts and Workflow parameters.
Workflow parameters are entered in the Procedures book on the Editor tab on a specific process step. They are always entered for the step at which the user wants to evaluate/enter the parameter.
The parameter is evaluated at the moment when the user performs this specified event in the process step (or in the process).
Parameter "ProcStatus" - Process status:
- It is assigned to a procedure or a procedure step and specifies that the process status is to change at a certain Event of the given step.
- The value of this parameter contains the standard K2 statuses ("Beginning", "Approved", "End", "Cancel"...). However, the user can add further user statuses to the code list of process statuses (e.g. Assigned, Sent,...) with the Ins key and by filling in the relevant fields in the Book of values.
- The parameter is used e.g. to check what status the process is in, for planning and evaluating the process.
The "DocType" - Document type parameter allows the user to insert into the process a document stored on their computer. This is done using the Insert button in Attachments in the step detail in the Pending book. This button becomes active when the parameter is entered correctly in the procedure:
- In the Event field, select the "Form" event, and in the Parameters field, after pressing Ins, select the "DocType" parameter.
- The Types form is displayed, in which we enter, with the Ins key, various document types that we will assign to the step.
- The Document type field specifies which Document type will be inserted. The user can create the type themselves by pressing the Ins key in the Document type book and filling in the relevant fields.
- Checking the Obligatory option specifies that this document type must be inserted on the step, before the step is approved. If we do not enter the document in a specific process, the system will not allow the user to approve the step.
- When a document is inserted into a process, a record with a link to this document is created in the Documents (Administrator - Code Lists - Documents) book.

Picture: The Types form after selecting the "DocType" parameter
In the To Do / Steps book, the user switches to change mode and, in the Attachments table, inserts a Document using the Insert button
- If only one document type is set on the step, the user is shown directly a dialog with the directory specified in the Input folder field opened.
- If more documents are assigned to the step, pressing the button displays a list of document types, from which we select the one whose folder we want to open.

Picture: Pressing the Insert button, displaying the list of document types for insertion
- To select a document type, click the left mouse button on the document type. A dialog window is displayed in which we select the required document. This is how we insert the document into the process.
- If a "black dot" icon is shown next to a document type, inserting this document type into the step is obligatory. If we do not insert it, the system will not allow the step to be approved.
The "InsProd" parameter - Insert product allows the assignee of a process step to attach K2 Products (an invoice, a bank statement, a delivery note, ...) to this process. This is done using the Insert product button in the step detail in To Do. This button becomes active when the parameter is entered correctly in the procedure:
- In the Event field, we select the "Form" event and in the Parameters field, after pressing Ins, we select the "InsProd" parameter.
- The Products form is displayed, in which we use the Ins key to enter the various product types that we will assign to the step.
- The Product field specifies which Kind of product will be inserted. We select from the product headers that we created in the Products book. Using the Ins key, we can create a new product header.
- By checking the Obligatory option, we specify that this kind of product must be inserted into the step before the step is approved. If we do not enter the product in a particular process, the system will not allow the user to approve the step.

Picture: The Product form - entering products in the "InsProd" parameter
In the To Do book, the user switches to change mode and, in the Attachments table, inserts a Product using the Insert button.
- If only one product type is set on the step, the user is shown directly the book of the specified product, e.g. Invoices in, Job Cards, Sales Orders, ...
- If more products are assigned to the step, pressing the button displays a list of kinds of products, from which we select the one whose book we want to open.

Picture: The Work step form after pressing the Insert key in Attachments
- To select a product type, click the left mouse button on the product type. The book of products is displayed, e.g. Invoices in, Sales Orders, ... In the book, we select the required product. This is how we insert the product into the process.
- If a "black dot" icon is shown next to a product type, inserting this product type into the step is obligatory. If we do not insert it, the system will not allow the step to be approved.
The "UserStep" parameter - Owner by other step is used with the Input event and, based on the owner of another step, selects the contact person for whom the step will be created.
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select the "Input" event and in the Parameters field, after pressing Ins, we select the "UserStep" parameter.
- The Value field specifies the step according to which the owner of this step is to be selected.
- The condition is that both of these steps have the same Roles entered.
- If we want the step to be created for the person who created the process, the Role of this step must be the same as the Role entered on the Right to run tab on the first page of the Versioned procedure.

Picture: The Procedure steps - book form after selecting the "UserStep" parameter
Parameter - "Automatic attachment of documents" - AutoJoinDocument
- The parameter is set in the procedure; the document abbreviation is entered. (The document abbreviation is a string that must be enclosed in apostrophes in the expression, e.g. 'GOODSPICT000000361').
- The document abbreviation can be entered by an expression, i.e. the abbreviation can, for example, be stored in a variable.
- It is also possible to enter more documents in the parameter, i.e. a list of document abbreviations can be entered
The "SameUser" parameter - Same owner is used with the Input event. From the contact persons assigned to the step Role, it selects the step owner who has already processed the step before (rejected or approved it).
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select the "Input" event and in the Parameters field, after pressing Ins, we select the "SameUser" parameter.
Ex.: Five coordinators in a company send contracts to the director for signature. When the director refuses to sign a contract, the contract approval process returns to the coordinator who sent the contract to the director.
Using the "SelStep" parameter - Select the following step we allow the user, at the Output event (Approval or Rejection of the step), to select from the following process steps the step that is to be created. The user can also select more of these steps.
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select the "Approval" or "Rejection" event and in the Parameters field, after pressing Ins, we select the "SelStep" parameter.
- The condition is that there is more than one step following this step.
Using the "CalcVar" parameter - Calculation of variable value the specified value is assigned to the process variable at the specified event.
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select the event (an event of the process or of a process step) and in the Parameters field, after pressing Ins, we select the "CalcVar" parameter.
- The Expression entry form is displayed. Pressing the Ins key in this form displays the Create query form, which makes it easier to enter the calculation of the variable value. When building the expression, we use the same notation as in a programming language (e.g. for a string variable, we must enclose the variable in apostrophes).
Note: For an explanation of the nt, ad, or, IF, "V, "P buttons, see Description of fields in the editor, the "ArrowIf" parameter.
Ex. 1: In the picture below, the value "6" is set in the DNU process variable at the Approval event of this step.

Picture: The Create query form after selecting the "CalcVar" parameter for entering its Value
Ex. 2: {CALCVAR}[DATUM_OD]:=[DATUM_OD_PL] - the selected event of the step or process assigns the current value of the DATUM_OD_PL variable to the DATUM_OD variable.
Ex. 3: {CALCVAR}[DATUM_OD]:=0 - a zero date is assigned to the DATUM_OD variable.
Ex. 4: {CALCVAR}[DATUM_OD]:=%12.12.2012 - 12.12.2012 is assigned to the DATUM_OD variable. (We put the percent sign before the date value).
Ex. 5: {CALCVAR}[STAV]:='Výchozí' - the text "Výchozí" (Default) is assigned to the STAV variable. (A text value of a variable must be enclosed in apostrophes).
Using the "Validation" parameter - Check variables we ensure a check of the value of a variable entered in the process.
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select the step event at which we want the variable value to be checked and in the Parameters field, after pressing Ins, we select the "Validation" parameter.
- The Check variables form is displayed. It contains the Message for user field, which is used to define the text displayed when the process validation fails. There is also the Expression field, where we enter the variables and the conditions for their values that must be met so that the specified Event can be performed. The conditions of these variables must be written in the programming language. The buttons located after the Expression field can help us.
- Note: For an explanation of the nt, ad, or, IF, "V, "P buttons, see Description of fields in the editor, the "ArrowIf" parameter.

Picture: The Expression entry form after selecting the "Validation" parameter for entering its Value
Using the "SetVar" parameter - Variable setting we allow the step user to enter/change the value of a selected variable while the process is running (e.g. the invoice amount, the cost centre code, entering text...). The process can then be further evaluated and controlled according to this variable. (E.g. based on the cost centre entered, it is possible to determine to which persons the process will be directed next).
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select the event at which we want to enter the variable, and in the Parameters field, after pressing Ins, we select the "SetVar" parameter.
- When the Form event is selected, the variable is entered into the field when the step detail is opened by the user who will handle the step.
- When the Approval, Output or Rejection event is selected, a dialog window is displayed when this event is performed, in which the user fills in the value.
- The Variables form is displayed, where we use the Ins key to display the Variable form and, using the menu of the Identifier field, we display the list of variables. From this list, we gradually select the variables we want to display on the form. We can also enter more variables.
- By checking the Obligatory value or Read only option on the Variable form after selecting the variable, we determine whether the variable is to be read-only or editable and whether it must be entered when this step is approved.
The "UserVar" parameter - The User for work step allows us to create a step in the process for a contact person according to the value of a Variable. The parameter variable can be entered using the Expression entry form, which appears after selecting the "UserVar" parameter. We enter the variable in the Expression field, either using the "V button and selecting the offered variable, or we can type it manually by writing the variable Identifier in square brackets.
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select the "Input" event and in the Parameters field, after pressing Ins, we select the "UserVar" parameter.
- The Expression entry form is displayed, where, using the "V button, we enter the variable according to which the user for the step will be selected.
- Note: For an explanation of the nt, ad, or, IF, "V, "P buttons, see Description of fields in the editor, the "ArrowIf" parameter.
- We can also enter more variables containing the contact persons for whom the step is to be created.

Picture: The Expression entry form after selecting the "UserVar" parameter for entering its variable
For the parameter to work correctly, the variable must meet the following conditions:
- it must be created in the Variable definition book, where the following must be entered in the Bind field:
- Binding type - here we select which book the variable should refer to when the variable is selected (e.g. "WF - users in group"),
- Parameter 1 - here we enter the Record ID of the selected Role whose contact persons are to be offered when filling in the variable value
(E.g.: For the step, we want to select a person from those assigned to the Role with internal number "40". So we enter "40" in the Parameter 1 field.)
- in the Procedures book, on the basic data tab, this role must be entered on the Assignees tab,
- in the process, the variable must have a specific value entered (a specific contact person). If the user selects a person in the variable who is not in the Role of the given step, the step is created for the assignees in the Role, not for the person selected in the variable.
Ex.: In the picture above, it is specified, using the "V button, that the step in the process will be created for the person currently entered in the process in the value of the "USRGRP" variable.
The "ProdAct" parameter - Action on the product allows the specified action to be performed on the product that will be assigned to the process.
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select the step event at which we want the action on the product to be performed and in the Parameters field, after pressing Ins, we select the "ProdAct" parameter.
- The Entry of action on product form is displayed, where we enter the type of Product on which we want to perform the action and the Action we want to perform on the product.
E.g.: When the step is approved, the invoice in is confirmed; when the step is rejected, the invoice in is cancelled.

Picture: The Entry of action on product form after selecting the "ProdAct" parameter
Product
Here the product header is selected. The specific product that will then be assigned to the process is either confirmed or cancelled at the specified event.
Action
Here we enter the type of action that is to be performed on the product at the specified event. The following actions can be performed on a specific product assigned to a specific process:
- confirmation,
- cancellation.
If a product that does not meet the conditions for performing the action is assigned to the process, the K2 system will not allow us to perform the operation that performs this action.
- Ex.: In the designed procedure, the "ProdAct" parameter specifies that the invoice in is to be confirmed when the step is approved. The invoice in assigned to the process does not have a variable symbol entered. An invoice in without a variable symbol cannot be confirmed. Therefore, the system will not allow the step to be approved, because the invoice in does not meet the conditions for confirmation.
If a product on which the specified action has already been performed is assigned to the process, the K2 system will allow the operation to be performed.
- Ex.: In the designed procedure, it is specified that the invoice in is to be cancelled when the step is rejected. The invoice in assigned to the process has already been cancelled; nevertheless, the rejection of the step on which the "ProdAct" parameter is entered is performed.
The arrow parameter "AllStepsClosed" - Check the closure of existing process steps handles the convergence of steps into one "Merge" step - the merge is generated only when all steps of the process are finished. "Notification" steps are not taken into account.
The "AutoStepClose" parameter - Automatic end of step allows a step to be ended immediately based on a defined condition.
- This parameter is entered after selecting the procedure step on the Editor tab of the Procedures book and pressing the Ins key on the Action tab.
- In the Event field, we select Input and in the Parameters field, after pressing Ins, we select the "AutoStepClose" parameter.
- The Automatic end of step form is displayed, where we enter the type of Action we want to perform.
- In the Condition field, we define the condition under which the action will be performed. If no condition is defined, the action is performed.
The parameter is entered for an arrow, i.e. after selecting the arrow, and is used to evaluate whether the process should continue via this arrow.
E.g. the process can go through different steps for a higher invoice amount, for different cost centres entered on the invoice, ...
For the evaluation, we can use:
- values of variables that the user enters in the process,
- values of fields from products assigned to the process,
- values of fields calculated by mathematical or logical formulas.

Picture: Setting the value of arrows when entering the invoice amount
Description of the buttons in the form:
nt |
Logical expression "not" (for negating the expression in brackets). |
ad |
Logical expression "and" (logical conjunction). |
or |
Logical expression "or" (logical disjunction). |
IF |
Logical expression "if" (used to select a value under certain conditions). |
"V |
Used to select a variable from the Book of procedure variables. Pressing this button displays the Variable definition book. |
"P |
Used to enter a field from an assigned K2 product (from an invoice, an order...). The value of this field will be evaluated while the process is running. Here an aggregate function ("first", "last"...) is entered, which determines the method of evaluating the variable if the process contains more products of the same type (e.g. more invoices in): Ex.: The process has 3 invoices in assigned. The first has a Net amount of 300 CZK, the second 200 CZK and the third 10 CZK.
|
Export and import of a procedure
Export
The export is performed on the current record by running the Function from the ribbon - Export procedure.

Picture: The Export form
In the input form, in the Output file field, we enter the path and the file name. After pressing the OK button, the xml file is saved.
Import
The import is performed by running the Function from the ribbon - Import procedure.

Picture: Import form
In the input form, in the Input file field, we select the file.
During the import, we can check the following options:
- Import into current version - if enabled, the imported procedure is inserted into a previously created version of the procedure, which, however, must not have any steps created.
- Keep people in the role - if enabled, the contact persons are also imported for newly imported roles. If disabled, the roles are imported without contact persons.
The procedure is always imported in the "editing" status, with all the data entered in the imported procedure. The contact person fields Authorised by and Reviewed are not imported.
If the roles or variables contained in the imported procedure do not exist in the K2 into which we import the versioned procedure, they will be created including the assigned contact persons.
If the product contained in the imported procedure does not exist in the K2 into which we import the versioned procedure, only the header of this product is created. If we also want to import the version of the given product, we use the function in the book of workflow products (see Export and import of a workflow product).
Versioned procedures - reports
Distribution register
Procedure
Process diagram
List of metrics
List of processes
List of abbreviations
Directive