Skip to main content

Advanced Rule Syntax

Advanced Rules are used in Sigmafine WSA method calls in order to select a certain set of AF Elements, according to a configurable set of comparison rules.

Advanced rules can be specified using the following syntax:

[Comparison]\<ID_Logic\>[Comparison]\<ID_Logic\>…

Where:

[Comparison] = a selection rule used to select a certain set of AF elements

ID_LOGIC = the logical operator to combine more comparison rules

List of LOGIC IDs

ValueMeaning
01AND
02OR

A Comparison rule:

[PISystem|AFDatabase|\<ID_X\>\<ID_P\>~\<ID_Oper\>~\<ValueTest\>|\<ID_X\>\<ID_P\>~\<ID_Oper\>~\<ValueTest\>]

Where:

AFSystem = the AF System supporting the desired AF Database

AFDatabase = the AF Database holding the elements to be searched

ID_X = specified whether the rule applies to an AF Element or AF Attribute

List of ID_X

ValueMeaning
EElement
AAttribute

ID_P = specifies the information item used in comparisons

If ID_X = E the following table applies for AF Elements comparison.

List of ID_P

ValueMeaning
01Name
02Description
03Type
04Template
05Category
06Connection In
07Connection Out
08Connection Undirected
09Model

If ID_X = A the following table applies for AF Attributes comparison.

List of ID_A

ValueMeaning
01Name
02Value
03Description
04UOM
05Category
06Status
07Value Type
08Data Reference
09Settings

ID_OPER = specifies the comparison operator to be applied

List of ID_OPER

ValueMeaning
01equal to
02not equal to
03greater than
04greater than or equal to
05less than
06less than or equal to
07start with
08not start with
09end with
10not end with
11contains
12not contains

ClosedEXAMPLES

EXAMPLE 1:

[AFServer|AFDB1|E01~11~TK]02[AFServer|AFDB1|E02~07~Tank]

Returns all AF Elements whose name contains TK or whose description starts with Tank from database AFDB1 in AFServer

EXAMPLE 2:

[AFServer|AFDB1|E01~11~TK~A05~01~Rep]

Returns all AF Elements whose name contains TK and having at least one attribute whose category is equal to Rep whose description starts with Tank from database AFDB1 in AFServer