Applicableif in the data schema | Community
Skip to main content
Level 4
February 27, 2024
Solved

Applicableif in the data schema

  • February 27, 2024
  • 1 reply
  • 530 views

Can anyone provide the explanation for Applicable if 


i couldnt able to get it through documentation 

why we are using with realtime example  ?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AnanthanJa

Hi @vani97,

 

The applicableIf clause is generally used when we wanted to restrict the usage of the attribute or element to certain conditions.

 

Consider the below element in broadLogRcp, 

 

<element applicableIf="HasPackage('nms:midReceiver')==false" label="Service"
name="service" noDbIndex="true" revIntegrity="neutral" revLink="broadLog"
target="nms:service" type="link">
<join xpath-dst="@id" xpath-src="@service-id"/>
</element>

 

This link will not be established if the midSourcing package is present. 

1 reply

AnanthanJaAdobe EmployeeAccepted solution
Adobe Employee
February 28, 2024

Hi @vani97,

 

The applicableIf clause is generally used when we wanted to restrict the usage of the attribute or element to certain conditions.

 

Consider the below element in broadLogRcp, 

 

<element applicableIf="HasPackage('nms:midReceiver')==false" label="Service"
name="service" noDbIndex="true" revIntegrity="neutral" revLink="broadLog"
target="nms:service" type="link">
<join xpath-dst="@id" xpath-src="@service-id"/>
</element>

 

This link will not be established if the midSourcing package is present.