ESM Listener - toteutetut Target Condition -ehdot
ESM Listener - toteutetut Target Condition -ehdot
CombinedTargetCondition
Yhdistää useita ehtoja (jotka voivat myös itse olla CombinedTargetConditioneja) yhdeksi operaattoreilla AND tai 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>ValueTargetCondition
Vertaa datakortin attribuutin arvoa johonkin vakioon jollain operaattorilla. Tuetut operaattorit riippuvat tietotyypistä, esimerkiksi reference-arvoja ei voi verrata datakortin nimeen tai id:hen. Poikkeuksena tähän on reference to source tai reference from source (määritetty attribuuttikoodilla).
Arvon perusteella
<!-- 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>Reference to source -perusteella
<!-- 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>Reference from source -perusteella
<!-- 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>PropertyTargetCondition
Vertaa datakortin attribuutin arvoa jonkin toisen attribuutin arvoon jollain operaattorilla. Tuetut operaattorit riippuvat käytetyistä tietotyypeistä.
<!-- 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>SourcePropertyTargetCondition
Vertaa kohdedatakortin attribuutin arvoa lähdedatakortin attribuutin arvoon jollain operaattorilla. Tuetut operaattorit riippuvat käytetyistä tietotyypeistä.
<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>EntityTargetCondition
Ollaanko tallentamassa uutta datakorttia: kyllä vai ei
<!-- 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
Tätä ehtoa voidaan käyttää seuraavien ominaisuuksien määrittämiseen/tarkistamiseen:
- Malli, jota lähdedatakortti edustaa (erikoisehto vaaditaan XML:n root-ehdossa).
- Onko datakortti tietyssä kansiossa (kansiokoodi) vai jossain muualla.
- Onko datakortti sama vai eri kuin lähde (esimerkiksi kun kohde-ehdot viittaavat samaan malliin kuin lähdedatakortti, lähdedatakortin voi sulkea pois mahdollisista kohdedatakorteista).
- Viittaako kohdedatakortti lähteeseen määritetyn reference-polun kautta (target_refers_to_source). Polku määritetään attribuuttikoodeilla seuraavasti: template_code1:attribute_code1$template_code2:attribute_code2... Ensimmäinen mallikoodi on kohdemallin koodi, ja attribuuttikoodi on sellaisen attribuutin koodi, joka voi viitata polun seuraaviin datakortteihin. Viimeistä malli- ja attribuuttikoodiparia käytetään merkitsemään attribuuttia, joka viittaa suoraan lähdedatakorttiin. (Alkaen: 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>
Table of Contents