Processes
A process is a specific use of a designed procedure in the company. Creating a process starts the actual run of the designed sequence of steps. Steps in the process are created gradually as designed in the process chart. The designated users fulfil the tasks entered in the steps, and specific values are added to individual Variables and Products.
Processes book
The Processes book contains a list of all processes that have been created by users.

Picture: Processes - book
Description of columns:
s |
The |
SP |
The icons in this field show which phase the process is in. - the process is currently running,
|
Status |
Process status. This shows the status the process is in (for settings see the Procedures - Events book, Parameters, the ProcStatus parameter). |
Name |
Process name. |
Created by |
Name of the user who created the process. |
Created on |
Date and time of creation of the process. |
Pl. end |
Scheduled date by which the process is to be terminated. |
Act. termination |
Date when the process was actually terminated (when a step of the Termination type was created), or when the process was cancelled. |
Description of keys:
F5 |
Change of the process. Only a user with the Workflow - Processes - Edit processes right can change a process. |
F8 |
Delete process. Only a user with the Workflow - Processes - Administration right can delete a process. |
Alt+F8 |
Process Chart. With these keys the user can display the chart of this process. For a more detailed description, see the Work steps book - Procedure chart. |
Ctrl+F8 |
Cancel the process. A process can be cancelled by a user with the Workflow - Processes - Administration right, or if they have been assigned the Workflow - Processes - Cancel processes right and at the same time are included in the Responsible role selected on the first page of the Versioned procedures, book
|
Create process
A process can be created with the Ins key. The Procedures - book form appears, in which we select the header of the versioned procedure according to which the process is to run. The form displays all procedure headers that contain a procedure version from which a process can be created.
A process can only be created from a procedure that meets these conditions:
- the procedure must be currently valid,
- the user who wants to create the process must be included in the role entered on the Right to run tab (the Procedures book).

Picture: Procedures - book - list of procedure headers from which a process can be created
Description of columns:
Procedure |
Language name of the procedure header. |
Version |
Serial number of the procedure version that will be used for the process. |
Valid from |
Date from which the procedure version is valid. |
Valid to |
Date until which the procedure version is valid. If the date here is zero, the procedure version is valid indefinitely. |
Processes - basic data
On the basic data tab of the Processes book, the basic data about the process is displayed; the tabs show information about the Monitoring persons, process Participants, Variables, Products, Task instructions and Debugging parameters of the process.

Picture: Processes - basic data form
Description of fields:
Name |
Process name (this field can be edited). |
Procedure |
Name of the procedure header from which the process was created. |
Phase |
Process status, entered in the Procedures book on the Action tab using the "ProcStatus" parameter. |
Plan of termination |
Date and time of the scheduled termination of the process (this field can be edited). |
End date |
Actual termination of the process, the date and time when a step of the Termination type was created, or the date and time when the process was cancelled. |
Responsible person |
This person is responsible for the process; they are selected from the list of contact persons included in the roles entered on the Responsibility tab in the Procedures book. This field may or may not be mandatory (depending on the settings in the procedure). |
Priority |
Process priority, set for the procedure in the Procedures book, or changed directly for a specific process with the Change priority/time button. |
Change priority/deadline |
Button for changing the time conditions for steps and also for changing the priority of this specific process or the steps in this process. The values here are predefined according to the values set in the procedure. |
Description |
Description of the process entered for the procedure in the Procedures book on the Description tab. |
The Change deadline/priority button allows an authorised user to change the value of the Priority field predefined from the procedure.
Users who can make this change:
- The person who creates the process,
- the Responsible person of the process,
- a user with the Workflow - Processes - Administration right.
Change of process priority
After pressing this button, a form with the process chart and fields for changing the priority is displayed.

Picture: Change of process priority
If no step is selected, we enter the priority for the entire process. After the priority is changed, the system asks whether we also want to change the priority of all steps of this process. If we answer "Yes", the priority of all steps of the process is changed. If we answer "No", the steps keep their original priority.
We may want to change the priority of the process/steps if, for example, an important task needs to be solved, or an important contract arrives at the company that needs to be dealt with as a priority.
The changes we make here will be written to the so-called "Fields history" - a form that is displayed after pressing the icon next to the field. The original value, the new value, and information about who changed this value and when are recorded.
Description of priority icons:
|
Lowest priority. |
|
Low priority. |
|
Medium priority. |
|
High priority. |
|
Highest priority. |
Note: In the Work steps book, the user can sort records by priority and thus have the steps with the highest priority first in the list of steps in the book.
Monitoring persons
The left part of the form displays the monitoring persons entered in the Procedure from which the process was created. Additional contact persons for monitoring the specific process can be added with the Ins key.
Process participants
The right part of the form displays all participants, i.e. the solvers of the steps of this process. The user who created the process is also included here. Additional process participants can be added with the Ins key and by selecting a user from the Contact persons book; process participants can be deleted with the Del key.
Process variables
The Variables tab displays the process Variables used in the process. The individual columns display the Identifier of the variable (its abbreviation), the Name of the variable and its current Value in the process.
Double-clicking the left mouse button on a variable displays a form for entering the value of this variable. The entry of individual variable values is saved to the so-called Field value history. We therefore know when, who and how changed the value of the variable.

Picture: Processes form - basic data - Persons and variables tab
On the Products tab, specific products can be inserted into the process with the Ins key. After pressing it, the Products book is displayed, showing the list of Workflow products headers that we can insert into the process.
After selecting the given Workflow product, a specific list of products of the given type is displayed (e.g. the Invoices In book), where we can assign a specific product (a specific invoice in) to the process.

Picture: Processes - basic data form - Products tab
The Task instructions tab is displayed if the Show instruction option is checked in the Procedure. This tab contains:
- the Text tab - allows you to describe the process task instructions,
- the History tab - displays the history of changes to the task instructions.

Picture: Task instructions - Text and History
The Debug parameters tab is used to enter parameters that further modify the process (e.g. Suppressing the step assignee)
Dynamic steps grouping
- This is an extension of the current "Steps grouping" logic, which is set in the procedure on the step
- "Dynamic step grouping" has a higher priority than "Steps grouping in the procedure"
- The current "Dynamic step grouping" setting can be seen in the Processes module
- "Dynamic step grouping" will mostly be set by a script attached to the "Task instructions" step on the Approval action

Picture: Processes form - basic data - Steps grouping tab
Process workflow:
In the process, the assignee of the "Split" step sets which of the branches 1–4 the process is to follow. When this step is approved, the WkfSetGroupStep script is run, which dynamically sets the grouping on steps K1–K4. As soon as the "Grouping" step is to be created in the process, the system waits for all these grouped steps to be completed.

The WkfSetGroupStep.pas script linked to the "Split" step:
program WkfSetGroupStep;
info
Title = 'WkfSetGroupStep'; // Script Title
Keywords = 'WKF'; // Script Keywords
Author = 'EMEL'; // Script Author
end;
modules
ProcessDM: TWorkflowProcessDM;
var
lGroupName: String;
begin
if (CurrentDM is TWorkflowProcessDM) or (CurrentDM is TWorkflowSolverWorkStepDM) then begin
if (CurrentDM is TWorkflowProcessDM) then begin
ProcessDM := TWorkflowProcessDM (CurrentDM);
end else begin
ProcessDM := TWorkflowSolverWorkStepDM(CurrentDM).Process;
end;
lGroupName := ProcessDM.GetVariableValue('GROUPNAME');
if ProcessDM.GetVariableValue('KROK1') then
ProcessDM.WorkStepGroupChild.SetStepGroup('K1', lGroupName) else ProcessDM.WorkStepGroupChild.SetStepGroup('K1', '');
if ProcessDM.GetVariableValue('KROK2') then
ProcessDM.WorkStepGroupChild.SetStepGroup('K2', lGroupName) else ProcessDM.WorkStepGroupChild.SetStepGroup('K2', '');
if ProcessDM.GetVariableValue('KROK3') then
ProcessDM.WorkStepGroupChild.SetStepGroup('K3', lGroupName) else ProcessDM.WorkStepGroupChild.SetStepGroup('K3', '');
if ProcessDM.GetVariableValue('KROK4') then
ProcessDM.WorkStepGroupChild.SetStepGroup('K4', lGroupName) else ProcessDM.WorkStepGroupChild.SetStepGroup('K4', '');
end;
end.
Processes - Process Workflow
The Process workflow tab of the Processes book contains basic data about the process. The items display the User steps (i.e. the Work steps of this process) that have already been processed and the currently created step that is waiting to be processed. The tabs contain information about the step Comment, depending on which step is selected in the History of steps field.

Picture: Processes - process workflow form
Description of the columns of the User steps field:
S |
The Step status icon is displayed here (see Work steps - book Description of columns - Column S), depending on the status the step is currently in. |
|
T |
If the icon |
|
Type |
Step type: |
|
|
|
- a step of the Beginning type has been created. |
|
|
- a step of the End type has been created. |
|
|
- a step of the Notification type has been created. |
|
|
- a step of the Checkpoint type has been created. |
|
If there is no icon here, it is a step other than Beginning, End, Notification, Checkpoint, i.e. a normal process step. |
|
Pt |
The Step priority is displayed here (for a description see Work steps - book). |
|
Name |
The name of the step, comment, document or product is displayed. |
|
assignee |
Step owner (who is to process the step or who has processed the step). |
|
Sent by |
The owner of the previous step who sent the step to the step owner. |
|
Created on |
Date and time the step was created. |
|
Deadline |
The date and time by which the user is to complete the step (approve, refuse) are displayed here. |
|
Comment Tab
The Comment tab displays the Comment text of the item selected in the User steps field, see the picture above.
Description of keyboard shortcuts in browse mode:
Ctrt+F3 |
Forward - the currently selected step can be forwarded to another user. A list of users to whom the step can be forwarded is displayed (determined by the Assignee group on the step). Users are not allowed to forward steps to themselves. The exception is a user with the Administrator right in the workflow module. Such a user can forward to themselves any step of which they are not the assignee. |
Ctrt+F4 |
Deputize - the user can take over the currently selected step for resolution, i.e. deputize for the original assignee. |
Ctrl+F6 |
Reassess - this function is run if conditions are set in the procedure that do not allow subsequent steps to be created in the process. We use the function after making a modification in the design of a versioned procedure. Press the key after selecting the process step. This function must be used with caution. If changes are needed in an approved procedure, it is recommended to create a new version of the procedure in which the changes can be made. The current process that is not running as it should can be cancelled. After the new version of the procedure is approved, we can create a new process that will run according to the new version of the procedure. |
Ctrl+F8 |
Cancel - we can cancel the process. |
Shift+F8 |
Variables - after pressing this button, the Variable values settings form is displayed, showing the Process variables with their current values, provided they have not been marked as Internal in the Variables tab of the Versioned procedures book. |
Alt+F2 |
Read - we read the selected step. |
Alt+F3 |
Accept - we accept the selected step |
Alt+F5 |
Refuse - we refuse the selected step |
Alt+F6 |
Accept - we approve the selected step. |
F7 |
Comment - we enter a comment on the step or process. |
Alt+F8 |
Chart - we display the process chart |
Reports on Processes
Evaluation of Processes - Users
Unfinished processes
Process protocol
Detailed process protocol
Process statistics
Process indicator
User average response time
Average reaction time of users in procedures
Scheduled Task - New Process
In the Administrator/System/Task scheduler tree menu, it is possible to set up a new process to start automatically, either once or regularly at certain intervals.
After selecting the Workflow/New process batch item, the user enters the abbreviation of the procedure from which the process is to be started. A procedure started by this scheduled task must not require any user input when it is created (entering variable values, determining the assignees of the next step...).
Web Application - New Process
The web application allows a process to be started and its first step to be approved from an environment other than IS K2.
The standard script "WkfWSFTPConfiguration.pas" is used to configure the application in K2. Using this script, you can set the access data for the FTP server to which the copier uploads scanned documents, or a local or network directory with scanned documents. You can also set the document type for attachment on page 9.
An optional maintenance component is the "WkfWSScheduledTask.pas" script, which can be added to the scheduler. At the set interval, this script searches for processes created from the copier that were created but not completed, and cancels them. Such processes remain in K2 if the copier operator creates the process but does not complete the entry of variables (does not approve the process step) and closes the application on the copier.
Prerequisites:
- An Application server (AS) and a Web services server (K2 API) must be installed and correctly configured for IS K2.
- The procedure according to which the process is started is of a predefined specific type (SEKO), which allows the process to be started from the web application.
- Only the 1st step of the process can be approved.
- In the 1st step of the process, only variables of primitive data types (Boolean, Date, Currency, Long, Real, String, Time) can be set and approved
Procedure requirements:
- The type of process abbreviation must be "SEKO"
- The K2 user under which the Web application runs must be able to create this process
- The first step of the procedure must not contain any user interface on input or output (scripts with a user interface, assignee selection, etc.)
- Variables can be defined in the procedure, which can then be entered in the Web application. These variables must be listed in the "Step form" event of the first step of the procedure.
- After the variables are entered, the Web application approves the first step of the procedure, therefore the following step and its assignee must be clearly determined (it can branch according to the variable values).
The web application user must have these permissions:
- Code Lists/Documents/
- View attached documents
- New ext. document
- Attach and detach DMS documents
- Workflow/Procedures/View procedures
- Workflow/Procesy/
- New process
- Edit processes
- Cancel processes
- View worksteps
Example: Scanning a received invoice and starting a process to approve the invoice in.
To be able to start a process directly from the printer, a web browser must be installed in the printer and the application that starts the process must be uploaded. All scans are automatically saved to an FTP server, which must be set up in advance.
1. The user scans the invoice in and all its attachments. The scans are saved to the FTP server. After scanning the invoice and all its attachments, the user starts the process on the printer before the next document starts to be processed. All scans uploaded to the FTP server will be assigned to one process.
2. The user starts a specific process on the printer in the K2 applications. All scanned documents stored on the server will be attached to the started process and then deleted from the server.

Picture: Available processes
3. After the process is started, the system may require approval of the step variables.

Picture: Entering a process parameter
4. A process is created in IS K2, with all scanned documents attached on its page 9.