Book Contents

Book Index

Definition of variables

A variable is an object by means of which we can enter specific values of various quantities in a process and in a process step, namely numeric, text and date values. Depending on the settings in the procedure, a process can have several variables entered. The specific values filled into these variables can then decide the further course of the process.

Definition of variables book

The Definition of variables book is a list of definitions of variables and metrics that can be set in procedures and entered in processes, thus allowing specific values to be stored in the created process step.

In the Procedures book it is possible to:

pic_1136_2023

Picture: Definition of variables - book

Description of fields:

Identifier

Abbreviation of the variable.

Lang. name

Language name of the variable.

Default value

Default value of the variable.

Description

Type of the variable.

Language descr.

Language description of the variable.

Visible in process

Whether the variable is visible in the process.

Visible in work step

Whether the variable is visible in the work step.

Metrics

Indicator of whether it is a metric.

Definition of variables - basic data

On the basic data tab of the Definition of variables book, all data about the variable is displayed.

pic_1137_2023

Picture: Definition of variables - basic data

Description of fields:

Identifier

Abbreviation of the variable; this field must be unique and is mandatory.

Name

Name of the variable.

Measurement frequency

User code list of the measurement frequency of the variable.

Header

Header of the variable. The text of this field appears as the name of the variable that the user is to enter in the process. It is therefore important to define the header in such a way that the user knows what to fill in as the variable value.

Classification

User code list of the classification of the variable.

Type

Type of the variable. Filling in this field is mandatory. It determines what type of value will be filled in in the process (number, date, text, ...).

Size

Information about the maximum size of the variable.

Decimal places

Information about the number of decimal places of the variable.

Offer in processes columns

By checking this field, the user will be able to see the value of this variable on page 0 of the Processes book, after selecting the specific variable in the "column selection".

Offer in steps columns

By checking this field, the user will be able to see the value of this variable on page 0 of the Steps/To Be Processed) book, after selecting the specific variable in the "column selection".

Metrics

By checking this field we specify that it is a metric; the variable then enters reports as a metric.

Bind

Properties of the variable link.

Type

Specification of the Link type of the variable. It contains a list of links to K2 books.

Parameters

(1, 2)

Numeric parameter value that uniquely identifies a record from the Type of the link (e.g. group number). It is used to register a positive link.

Description

Description of the variable.

Default value

Default value of the variable, which is filled in when a step or process is created.

Language name

Localised name of the variable.

Lang. header

Localised header of the variable.

Language description

Localised description of the variable.

To simplify display settings, especially for multiple users, we can use the Column masks function and create our own settings (masks) according to our needs. These settings are saved under a specific name, under which they can be called up again for any user.

Creating a custom code list

In variables, you can create your own code lists and insert values into them. Users then select variable values for steps from these values using a drop-down menu in the steps.

Creating custom code lists is intended only for Administrators, because these are advanced settings and knowledge of basic database operations is required.

Procedure for entering a variable with the creation of a code list:

1) We enter the Abbreviation, Name and Header. fields

2) We enter the Type field - according to what abbreviation we will enter in the variable values that will be prefilled for users:

3) We enter the maximum Size of the field (no more than 25 characters can be entered),

4) We enter the Link:

pic_2855_2023

Picture: Entering a variable with a custom code list, creating values in the code list

Products

The Workflow products book is a list of all saved versions of workflow products that have been created. The book is used to link K2 products with processes in workflow. Using registered points assigned to a certain kind of K2 product (invoice, order, ...), we can run scripts and parameters that will perform various actions with products and processes (creating a process when a product is saved, preventing confirmation of a product until the process is approved).

pic_1084_2023

Picture: Workflow products

Description of columns:

C

Status of the product (confirmed, cancelled).

Language name

Language name of the product header.

Version

Serial number of the product version, assigned automatically by the program. (For each header, versions are numbered in ascending order from 1.)

Valid from

Date from which the product version is valid. (The product version is valid only if the product is approved.)

Valid to

Date until which the product version is valid (if the product is approved).

Description of keys:

F5

Change of a workflow product. Neither the product header nor its version number can be changed. A confirmed workflow product cannot be changed either.

F6

Copy of a workflow product. Pressing this key on a certain product version creates a copy of it; the version number is increased by one from the last version of the product with the same header.

F8

Delete a workflow product. A confirmed workflow product cannot be deleted.

Alt+F2

Confirmation of a workflow product (switching the workflow product to the Approved status). When a workflow product is confirmed, the date and time in the Valid from field is set to the current moment, unless another date has already been set. For the previous valid workflow product, Valid to is set to the current moment, unless another date has already been set. This applies if the previous approved version of the product has an unlimited date in the Valid to field. If another version of the procedure with the same header is valid at the moment of confirmation, we must enter a date in the Valid from field of the newly confirmed product so that the dates do not overlap with the earlier approved version of the product.

Ctrl+F2

Undo the confirmation of a workflow product (from the Approved status back to the Editing status). When the confirmation of a workflow product version is undone, the Valid from and Valid to fields do not change, nor does Valid to of the preceding product. Changes can again be made in the version of the product whose confirmation was undone.

Products - basic data

On the basic data tab of the versioned Workflow products, the product header is selected, basic information about the products is entered and so-called Registered points are defined.

pic_1085_2023

Picture: Workflow products - basic data

Description of fields:

Product

Abbreviation and language Name of the product header.

Version

Version number.

Valid from

Date from which the product version is valid (the product is valid only if it is Approved).

to

Date until which the product version is valid (if it is Approved); if this date is zero, the product version is valid indefinitely.

Registered points

List of registered points that add functionality to the product or process (for a more detailed description, see below).

Order

If several registered points with the same script are entered, this is the order in which they were inserted.

Registered points

To work with registration points, the Products in WF in registration points option must be checked in the Administrator-Client parameters book.

A Registered point is a certain moment that is "captured" when working with a Product for which the registered point is entered, and at this moment a certain operation is performed.

Registered points are data points, which means that they are connected in a data module and have a positive number.

When working with a Product, certain operations are performed which these registered points are to capture. If a registered point is entered for a product, it is evaluated together with the expression entered in the Filter field (see the description below). If all conditions are met, the script or the parameters entered for this registered point are run.

pic_1086_2023

Picture: Form for entering a Registered point of a product

Description of fields:

Reg. point

In this field, the Registered point is selected from the list of registered points saved in K2.

Function

Here you enter the number indicating the Function No. that is to be performed at the registered point. (This is a selection of one of the functions of the registered point, a further division of the registered point.)

Script

A script is selected from the list of scripts, which will then be run at the registered point.

Editor

If a script is selected, then after clicking this field a text editor with the content of the script is displayed.

Parameters

Used to insert parameters that will be handled at the registered point.

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.

Filter conditions

Here you add supplementary (restricting) conditions that make the registered point more precise. (For example, here we can enter the condition that the document must be from cost centre 001, and if it is a document from another cost centre, the registered point is not evaluated and neither the script nor the parameter is executed.) The condition must be entered in a programming language. E.g.: We want the entered script to run only if the invoice price is greater than CZK 50000. The filter field will contain: PROD(CenaM)>50000. The expression "PROD" is filled in automatically after selecting a product field.

Filter service

Used to restrict the running of the script entered here. When this field is clicked, a form with auxiliary buttons for entering conditions in the Filter field appears.

pic_1242_2024

Picture: Form for entering an expression in the Filter field

Description of the fields in the form:

nt

Logical expression NOT (to negate the expression in brackets).

ad

Logical expression AND (logical conjunction).

or

Logical expression OR (logical disjunction).

"P

Contains the list of fields of the selected document type. Here we can select the field we want to enter into the condition.

"V

Contains a link to the Procedures book, where after selecting a procedure the list of Variables of this procedure is displayed, from which we can select a variable and add it to the condition.

New TRANSFERPRODUCT parameter

Used to transfer a product from/to the superior process.

The parameter is used in a subordinate procedure, where on the respective step, on the action tab, we select an input event with the TransferProduct parameter.

pic_5044_2023

Picture: TransferProduct parameter in a subordinate procedure

In the form we select a product and thereby determine which product, e.g. FP or DOKUMENT etc., we want to transfer.

pic_5043_2023

Picture: Form for product transfer

Next we select the direction of the transfer. The parameter transfers the product both from the superior to the subordinate process and from the subordinate to the superior process.

pic_5042_2023

Picture: Form for product transfer - selection from/to the superior process

Products book - header

We use product headers so that we can attach various kinds of K2 products to procedures and perform further operations with them (confirmation, cancellation, loading field values from products into variables). We add K2 products to procedures by means of the Insert product parameter.

Each product header can have several product versions. However, for each header only one product version can be valid at any given moment. By creating a product version, we can add registered points to products, as well as other scripts and parameters run by these registered points.

The Products book can be displayed on the basic data tab of the Products book by calling up the menu in the Product field (using F12).

pic_1210_2023

Picture: Products - book - display of the list of product headers

In this book, we can create a new product header with the Ins key, or select a previously created header for the product version with the Enter key. After pressing the F5 key, we can change the data of the selected product header on the basic data tab. We save a new or changed product header with the F2 key.

Products - basic data of the header

pic_1211_2023

Picture: Products - basic data - Product header

Description of fields:

Abbreviation

Abbreviation of the product header. The abbreviation is mandatory and must be unique.

Name

Language name of the product header.

Type

Code list specifying which Document type the product will contain (bank statement, invoice in, document, ...). These types are predefined by the program and contain links to the individual K2 document books.

Language name

This field allows you to assign a name in a foreign language (see User parameters - Language).

Description

Long description of the product.