Warunki docelowe zaimplementowane przez nasłuchiwacza ESM
Warunki docelowe zaimplementowane przez nasłuchiwacza ESM
Połączony stan docelowy
Łączy wiele warunków (które same mogą być również CombinedTargetConditions) w jeden za pomocą operatorów AND lub OR.
<combined_target_condition boolean="OR">
<target_condition>
...
</target_condition>
<combined_target_condition>
<target_condition>
...
</target_condition>
<target_condition>
...
</target_condition>
</combined_target_condition>
</combined_target_condition>WartośćWarunekDocelowy
Porównuje wartość atrybutu z karty danych do stałej za pomocą operatora. Obsługiwane operatory zależą od typu danych, na przykład referencji nie można porównywać z nazwą ani identyfikatorem karty danych. Wyjątkiem jest odwołanie do źródła lub odwołanie ze źródła (skonfigurowane za pomocą kodu atrybutu).
Według wartości
<!-- Target condition that matches data cards where the status attribute's value is "Open" -->
<target_condition>
<value>
<attribute>
<code>status</code>
</attribute>
<operator>=</operator>
<compared_value>Open</compared_value>
</value>
</target_condition>Odnosząc się do źródła
<!-- Target condition that matches data cards which refer to source data card -->
<target_condition>
<reference_to_source>
<attribute>
<code>Target entity's attribute code</code>
</attribute>
</reference_to_source>
</target_condition>Odniesienie ze źródła
<!-- Target condition that matches data cards which are referred by source data card -->
<target_condition>
<reference_from_source>
<source_attribute>
<code>Source entity's attribute code</code>
</source_attribute>
</reference_from_source>
</target_condition>Pro
Porównuje wartość atrybutu karty danych z wartością innego atrybutu za pomocą operatora. Obsługiwane operatory zależą od używanych typów danych.
<!-- Target condition that matches data cards where the attribute First name's value is not the same as Last name's -->
<target_condition>
<property>
<attribute>
<code>First name</code>
</attribute>
<operator><></operator>
<compared_attribute>
<code>Last name</code>
</compared_attribute>
</property>
</target_condition>Pro PropertyTargetCondition
Porównuje wartość atrybutu na karcie danych docelowych z wartością atrybutu na karcie danych źródłowych za pomocą operatora. Obsługiwane operatory zależą od używanych typów danych.
<target_condition>
<source_property>
<attribute>
<code>target_status</code>
</attribute>
<operator><></operator>
<compared_attribute>
<code>source_status</code>
<current_value>true</current_value>
</compared_attribute>
</source_property>
</target_condition>Warunek docelowy jednostki
Czy zamierzamy zapisać nową kartę danych: tak czy nie
<!-- Target condition which matches a removed data card (data card is in the trashcan) -->
<target_condition>
<entity>
<state>entityIsDeleted</state>
<value>true</value>
</entity>
</target_condition>
<!-- Target condition which matches a hidden data card -->
<target_condition>
<entity>
<state>entityIsHidden</state>
<value>true</value>
</entity>
</target_condition>Specjalny stan docelowy
Warunek ten można wykorzystać do zdefiniowania/sprawdzenia następujących właściwości:
- Szablon, który stanowi kartę danych źródłowych (warunek specjalny wymagany w warunku głównym w XML).
- Czy karta danych znajduje się w konkretnym folderze (kod folderu) czy gdzieś indziej.
- Czy karta danych jest taka sama jak karta źródłowa czy inna (na przykład gdy warunki docelowe odnoszą się do tego samego szablonu co karta danych źródłowych, można wykluczyć kartę danych źródłowych z możliwych kart danych docelowych).
- Czy docelowa karta danych odwołuje się do źródła poprzez określoną ścieżkę odwołań (target_refers_to_source). Ścieżka jest definiowana za pomocą kodów atrybutów w następujący sposób: template_code1:attribute_code1$template_code2:attribute_code2... Pierwszy kod szablonu to kod szablonu docelowego, a kod atrybutu to kod takiego atrybutu, który może odwoływać się do kart danych znajdujących się dalej w ścieżce. Ostatnia para kodów szablonu i atrybutu służy do oznaczenia atrybutu, który odwołuje się bezpośrednio do źródłowej karty danych. (Od: Efecte 4.1 4113).
<root_target_condition>
<template_condition>
<code>computer</code>
</template_condition>
<combined_target_condition boolean="AND">
<target_condition>
<folder>
<code>Removed</code>
<operator>!=</operator>
</folder>
</target_condition>
<target_condition>
<not_equals_source></not_equals_source>
</target_condition>
<target_condition>
<target_refers_to_source>
<path>system:related_cis$app_instance:related_cis$runtime_engine:related_cis</path>
</target_refers_to_source>
</target_condition>
</combined_target_condition>
</root_target_condition>