Solution items in work¶
Here we discuss usage of three kinds of items: filters, decision trees and symbol panel.
Filters and decision trees¶
Item of such kinds is some complex object, and in practice it has one of three status states (note that the user can use item always):
- preset solution, see Solution items
The user can not modify it, Names of such solutions are marked by preffix symbol @
- dynamical solution
The user can create, modify, rename and delete it. This item is persistent object, so the user can use it in next sessions.
- working solution
Item in this state is editable but temporary. It can be stored as solution one (by setting its name).
For both kinds of solution items there is REST API request provides operations over solution items: create/update and delete:
If request in REST API uses filter item, it can be determined in argument:
filter either as name of filter solution item
conditions or list of condition descriptors, as working copy of item
If request in REST API uses decision tree item, it can be determined in argument:
dtree either as name of decision tree solution item
code or as decision tree code, as working copy of item
Panels¶
Panels are lists of names (symbols), and their usage as solution items is slightly different from one for filters and decision trees:
Panels are split onto groups by panel type. The full name of solution item type for panels has prefix
panel.
, the current version of the system supports only one type "Symbol", so the full name of this type ispanel.Symbol
Preset and dynamical panels are supported as well as for filter and decision tree types. Preset panel names are marked by prefix symbol
@
Notes¶
For all types of solution items the common namespace is provided. It means that there can no be such a confusion that two solution items of different kinds have the same name. An attempt to create second solution item with the same name (and different kind) is automatically blocked. Use solutions request with entry argument to prevent such a situation in the Front-End logic.
For each type of solution items the system provides version integer indicators of the type common state: indicator increases if any solution item of this type created, updated or deleted. Indicators are reset on restart of the system. Indicators can be used in the Front-End logics for detection when the correspondent information on solution items should be reloaded from Back-End.
Names for dynamical solution items must start with any letter ("alpha") symbol (any alphabet) and must not contain spaces; in terms of js the criterium is as follows:
/^\S+$/u.test(name) && (name[0].toLowerCase() != name[0].toUpperCase())
Length of name for dynamical solution must not exceed 255 symbols.