Tagging Rules page

Since of 2402 Figaf Tool supports enhanced quering of tracked objects. The feature provides a possibility to define tagging rules that apply a condition (xpath/regex) to specified scope of objects to assign a technical tag, created together with the rule, to objects that match condition. You can create, update, import, export, delete tagging rules and process tagging.

1. Create tagging rule

To create new tagging rule follow steps:

  1. Go to Tagging Rules page.

  2. Click on plus. It opens Add tagging rule dialog:

    create tagging rule
  3. Enter the fields:

    1. Tag name defines technical tag name. This tag will be created during the tagging rule creation and attached to objects that match condition during tagging process. Tag name must be unique.

    2. Displayed name defines displayed name of tagging rule.

    3. Complexity rate defines numeric representation of estimate in some units (for example story points or days).

    4. Platform defines platform.

    5. Agents defines a list of agents.

    6. Object type defines object types.

      Script Collection and Cpi Function Libraries types aren’t supported.
    7. Name pattern defines regex that check if matches the tracked object name.

    8. Direction defines direction (Sender or Receiver) of Communication Channel.

    9. Adapter type defines adapter type for Communication Channel. If there is no required type in the list, type the value manually.

    10. Condition type defines condition type: either XPath or Regex.

    11. Condition defines any valid XPath or Regex. It is possible to test the condition clicking on Test button. It will open the dialog where you can select Object to test and test your Expression.

      Examples of supported XPath expressions:

      • /ns2:CommunicationChannel/MasterLanguage/text()

      • /ns2:CommunicationChannel/AdministrativeData/ResponsibleUserAccountID/text()

      • /ns2:CommunicationChannel/AdapterSpecificAttribute[Namespace]/Name/text()

      • /ns2:CommunicationChannel/AdapterSpecificAttribute[Namespace]/Name

      • /CommunicationChannel/AdapterSpecificAttribute[Namespace]/Name

      • /CommunicationChannel/MasterLanguage

      • count(/ns2:CommunicationChannel/AdapterSpecificAttribute)

      • substring(/ns2:CommunicationChannel/Description/text(), 1, 10)

      • /ns2:CommunicationChannel/AdapterSpecificAttribute[contains(Name, 'source')]/Value/text()

      • sum(/ns2:CommunicationChannel/AdapterSpecificAttribute[Name='file.pollInterval']/Value)

      • //brick[@path='/ADRMAS03/IDOC/E1ADRMAS/E1BPAD1VL/STREET']

      • //FolderPathID[text()="/my-folder/test/"]

      • //FolderPathID[.="/my-folder/test/"]

      • //ns2:CommunicationChannel[starts-with(AdministrativeData/LastChangeUserAccountID, 'user')]

      • //ns2:CommunicationChannel[ends-with(AdministrativeData/LastChangeUserAccountID, 'user')]

      • //ns2:CommunicationChannel[contains(AdministrativeData/LastChangeUserAccountID, 'user')]

      • //ns2:CommunicationChannel[matches(AdministrativeData/LastChangeUserAccountID, 'user')]

  1. Apply condition to internal payload enables possibility to define condition to internal payload for Function Library, Message Mapping and Mapping Template types.

  2. Apply on synchronization enables automatic tagging rule process during synchronization. Default value is true.

  3. Description defines description.

    1. Save the data.

Once tagging rule is created, related technical tag will created automatically.

2. Import tagging rules

It is possible to import prepared JSON file with tagging rules configuration, e.g.

[{
  "tagName" : "Tag 1",
  "displayedName" : "Tagging Rule 1",
  "objectType" : "PACKAGE",
  "platform" : "CPI",
  "evaluatorType" : "REGEX",
  "condition": ".*",
  "description" : "Test Description",
  "agentSystemIds" : [ "cpi1", "cpi2" ]
}, {
  "tagName" : "Tag 2",
  "displayedName" : "Tagging Rule 2",
  "objectType" : "PACKAGE",
  "platform" : "CPI",
  "evaluatorType" : "REGEX",
  "condition": ".*",
  "description" : "Test Description",
  "objectScopeCriteria" : {
    "type" : "default-filter",
    "namePattern" : ".*"
  },
  "agentSystemIds" : [ "cpi1" ]
}, {
  "tagName" : "Tag 3",
  "displayedName" : "Tagging Rule 3",
  "objectType" : "CHANNEL",
  "platform" : "PRO",
  "evaluatorType" : "XPATH",
  "condition" : "//ns2:CommunicationChannel[starts-with(AdministrativeData/LastChangeUserAccountID, 'user')]",
  "objectScopeCriteria" : {
    "type" : "communication-channel-filter",
    "namePattern" : "test",
    "direction" : "RECEIVER",
    "adapterType" : "JMS"
  },
  "agentSystemIds" : [ "pro-1", "pro-2", "pro-3" ]
}, {
  "tagName" : "Tag 4",
  "displayedName" : "Tagging Rule 4",
  "complexityRate" : "44",
  "objectType" : "MESSAGE_MAPPING",
  "platform" : "PRO",
  "evaluatorType" : "XPATH",
  "condition" : "//generic/textInfo",
  "applyConditionToInternalPayload" : true,
  "applyOnSynchronization": false,
  "agentSystemIds" : [ "T75", "D75" ]
}]

To import tagging rules follow steps:

  1. Prepare JSON file with tagging rules configuration.

  2. Go to Tagging Rules page.

  3. Click on Import and select the prepared file.

  4. Select agents for each platform in Please select agents dialog and submit changes.

Then tagging rules and technical tags will be created.

3. Process tagging

To process tagging select tagging rules and click on Process tagging button. Then related technical tags will be attached to objects that match the condition and belong to defined scope (platform, agents, object type, name pattern, direction, adapter type).

Tags can also be attached by hand or imported in bulk — see Tag tracked objects. Tagged objects can then be filtered on the Landscape Overview page.