5.4 Plug-In Editor
When choosing the Plug-ins tab in the Service Editor, the window is shown with a tree structure on the left and a configuration area on the right, see Figure 25. The configuration area on the right shows the properties for the element currently selected in the tree.
The tree on the left contains the installed plug-ins, grouped in folders. The groups are as follows:
- Tariff structures - the root of a tree. This is the starting point for the selection or decision execution.
- Nodes - groups conditions, nodes, and modifiers. If the conditions under a node is evaluated true, the node opens and the execution continues. This mechanism makes it possible to take different paths and decisions in the tree depending on the value of the fields.
- Base Conditions - conditions that can be connected to a data field. This condition plug-in is data type aware, which makes it possible to use the condition towards any field of the supported data type. Base condition plug-ins are mapped to fields in the fields editor.
- Hierarchical base conditions - Hierarchical base conditions are conditions used in a selection tree, where they can be assigned to a specific hierarchical field using the FieldSelection condition. A hierarchical base condition can be assigned to any hierarchical field with matching collection type. Which collection types a hierarchical base condition supports is specified in the service.
- Generic Conditions - conditions that know how to get the value to be evaluated. These conditions do not need any additional information. Normally, they are service specific.
- Modifiers - the point in the selection tree where the data is manipulated, for example, a field value can be set, calculating a price, and so on.
The Plug-in declaration can be edited by adding, editing or deleting plug-ins in the groups. The groups themselves cannot be edited or deleted and new groups cannot be added.
Editing in the tree can be done by using the context-sensitive menu which is shown when right - click a tree element or by using the keyboard. The actions that can be taken in the tree are described in the next sub chapter. When saving the definition or selecting another tab in the Service Editor, the Plug-ins definition is validated and any inconsistent inputs are reported in a popup message.
