ESM-lyssnare implementerade målvillkor
ESM-lyssnare implementerade målvillkor
Kombinerat målvillkor
Kombinerar flera villkor (som också kan vara CombinedTargetConditions själva) till ett med operatorerna AND eller 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>VärdeMålvillkor
Jämför ett attributvärde från datakortet med en konstant med en operator. Vilka operatorer som stöds beror på datatypen, till exempel kan referenser inte jämföras med datakortets namn eller ID. Ett undantag från detta är en referens till källan eller referens från källan (konfigurerad med attributkod).
Efter värde
<!-- 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>Med hänvisning till källan
<!-- 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>Med hänvisning från källan
<!-- 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 pertyTargetCondition
Jämför datakortets attributvärde med ett annat attributvärde med hjälp av en operator. Vilka operatorer som stöds beror på vilka datatyper som används.
<!-- 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>Källa Pro pertyTargetCondition
Jämför attributvärdet på måldatakortet med ett attributvärde på källdatakortet med hjälp av en operator. Vilka operatorer som stöds beror på vilka datatyper som används.
<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>Entitetsmålvillkor
Ska vi spara ett nytt datakort: ja eller nej
<!-- 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>SpecialTargetCondition
Detta villkor kan användas för att definiera/kontrollera följande egenskaper:
- En mall, som källdatakortet är (särskilt villkor krävs i rotvillkoret i XML).
- Ligger datakortet i en specifik mapp (mappkod) eller någon annanstans.
- Är datakortet samma eller ett annat än källdatakortet (till exempel när målvillkor hänvisar till samma mall som källdatakortet kan man exkludera källdatakortet från möjliga måldatakort).
- Refererar måldatakortet till källan via en specificerad referenssökväg (target_refers_to_source)? Sökvägen definieras med hjälp av attributkoder enligt följande: template_code1:attribute_code1$template_code2:attribute_code2... Den första mallkoden är koden för målmallen och attributkoden är en kod för ett sådant attribut, som kan referera till de datakort som är nästa i sökvägen. Det sista mall- och attributkodparet används för att markera ett attribut som refererar direkt till källdatakortet. (Sedan: 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>