Manual creation of actions

To create an action, you need to go to the “Applications” -> “Actions” -> “Business Actions” tab and click on the “Add Action” field (see Figure 150).

image250

Figure 150 – Creating an action

When you click on this field, the “Action Model” window opens (see Figure 151).

image251

Figure 151 – “Action Model” window

The Action Model window contains the following elements:

  1. Action name – field for entering the name of the action.

  2. Name – field for entering an action parameter. As an action parameter, you can select one or more parse tree elements that are critical within this action.

  3. Mandatory – a binary field that can take the values “Yes” or “No” (“image252” or “image253”, respectively). This field is responsible for the mandatory presence of a parameter for the action.

  4. An array is a binary field that can take the values “Yes” or “No” (“image254” or “image255”, respectively). This field is responsible for characterizing the parameter as an array of data.

  5. Model – when you click the highlighted icon, it opens the “Editing parameter model” window (see Figure 152).

image256

Figure 152 – “Edit” window

  1. Allow empty value - a binary field that can take the values “Yes” or “No” (“image257”, “image258” respectively). This field allows or denies the empty value of the selected model parameter.

  2. Count values as random strings - a binary field that can take values

“Yes” or “No” (“image259”, “image260” respectively). This field allows or denies interpreting the selected action model parameter as a random string.

  1. Selecting a model class—selecting from a list of possible classes of an action model parameter. The list with descriptions is presented in the table section 14.

Table 14 – Action model classes

Class

Description

Options

Length range

Immutable sequence of integers

Length between – select the values between which the length will be considered

Sample

Allows you to specify, using a regular expression, the value of an action model parameter

  • Regular expression – regular expression input field for the action model parameter value

  • Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Transfer

Listing valid options for the value of an action model parameter

Acceptable options – an input field for strictly defined acceptable values for an action model parameter

E-mail

Checking the value of an action model parameter to see if it matches the standard form of an email address

Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Date and time

Checking the value of an action model parameter to ensure it matches its date and time format

  • Format – date and time format input field

  • Valid values – limit date and time values to a specified period (no restrictions by default)

  • Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Number

Checks the value of an action model parameter to ensure it contains only numbers

  • Allow floating point numbers – a field that allows the use of a floating point number as an action model parameter value

  • From…To – range that the values of the action model parameter can take.

  • Acceptable options – an input field for strictly defined acceptable values for an action model parameter

URL

Checks the value of an action model parameter against its uniform resource identifier

  • Allow absolute URLs – allows the use of absolute URLs as the value of an action model parameter

  • Allow relative URLs - allows the use of relative URLs as an action model parameter value

  • Allow URL with parameters – allows the use of a URL with parameters as the value of an action model parameter

  • Allowed URL schemes – enter allowed URL schemes (HTTP, HTTPS) in the action model parameter value

  • Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Line

Checks the value of an action model parameter against its string

Acceptable options – an input field for strictly defined acceptable values for an action model parameter

File name

Checks that a file is passed as the value of the action model parameter

  • Valid extensions – valid values for the file extension that is passed as the value of the action model parameter

  • Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Bank card number

Checks the value of the action model parameter to ensure that it corresponds to the standard form of a bank card number

Acceptable options – an input field for strictly defined acceptable values for an action model parameter

String of hexadecimal digits

Checks the value of an action model parameter against its string of hexadecimal digits

Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Structure

Checks that a structure (json, xml, query) is passed as the value of the action model parameter

  • Incorrect model, needs to be revised - turns off the existing model and trains it again the next time the job runs

  • Types of structures – possible values json, xml, query

  • Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Token

Checks that a token with the specified length is passed as the value of the action model parameter

  • Maximum token length – field for entering the maximum length of the action model parameter value

  • Acceptable options – an input field for strictly defined acceptable values for an action model parameter

GUID

Verifies that a statistically unique 128-bit identifier is passed as the action model parameter value

Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Universal text model

Checks that a generic text model is passed as the value of the action model parameter. A generic model cannot be created manually (Can only be created automatically)

  • Incorrect model, needs to be revised - Turns off the existing model and trains it again the next time the job runs

  • Acceptable options – an input field for strictly defined acceptable values for an action model parameter

Expectation of length

Checks that the average (weighted by the probabilities of possible values) value of a random variable is passed as the value of the action model parameter

  • Expectation of length

  • Standard deviation - a parameter value whose length differs from the mathematical expectation of the length by more than 3 standard deviations will be considered anomalous

Univariate Gaussian distribution

Checks that the action model parameter value is passed a value that falls within the specified model

Model in JSON format

Multivariate Gaussian distribution

Checks that the action model parameter value is passed a value that falls within the specified model

Model in JSON format

  1. Status is a field for selecting one of three options: success, validation error, logic error.

  1. Save the action to the database if it is found in the transaction - a binary field that can take the values “Yes” or “No” (“image263” or “image264” respectively). This field is responsible for saving the action to the database if it is found in the transaction.

  2. Requires response parsing - a binary field that can take the values “Yes” or “No” (“image265” or

“image266“ respectively). If the action uses a success condition, this field must be included.

  1. Save – saves the changes made.

  2. Cancel – cancels the changes made.

After saving the changes, the action will appear on the Business Actions tab with the specified name. You can edit its conditions by clicking on the “Add rule” field (if there are already conditions for the action, to edit the conditions you need to click on the “image267” icon on the left side of the “Conditions” field), which will open the condition designer, in which you can add conditions by clicking on “Add condition” (see Figure 154).

image268

Figure 154 – Adding conditions

In the window that opens, you need to set one of three values for the “Condition Class” field:

  • regular expression – checking whether a value in a given branch of the parse tree matches a regular expression;

  • exact value - checking whether the value in a given branch of the parse tree corresponds to the entered value;

  • presence of paths – checking the presence of a given branch of the response parsing tree.