Usage of propagate tag in CIM rulebase constraints

Usage of propagate tag in CIM rulebase constraints

book

Article ID: KB0087002

calendar_today

Updated On:

Products Versions
TIBCO Collaborative Information Manager -
Not Applicable -

Description

Resolution:
The propagate tag can be used in rulebase constraints to propagate changes to other records. The propagate tag can be of two types: rulebase or inline.

In the following example, the current record context is passed down as a record CONTAINSLINK variable.

&ltaction>
&ltpropagate type="rulebase">
&ltvar&gtCONTAINSLINK</var>
&ltliteral&gtcustom/rulebase/RollDownStatus</literal>
</propagate>
</action>

The rulebase is defined in a file relative to the environment variable $MQ_COMMON_DIR.

In the following example with propagate type="inline", the current record context is passed down as a record
variable called REL_CONTEXT. The LINK/HAZMATFLAG refers to the
HAZMATFLAG where the propagate tag was defined. This traverses the
CONTAINS link to the child record, and then copies the parent HAZMATFLAG
to the child. The end result is a child record with the same HAZMATFLAG value
as its parent.
&ltaction>
&ltpropagate type="inline">
&ltvar&gtREL_CONTEXT</var>
&ltaction>
&ltassign>
&ltvar&gtHAZMATFLAG</var>
&ltvar&gtLINK/HAZMATFLAG</var>
</assign>
</action>
</propagate>
</action>

Issue/Introduction

Usage of propagate tag in CIM rulebase constraints