Context Object Parameters
Parameter Names |
Types |
Read/Write |
Comments |
PropagationMode
|
String
|
Read |
Input parameter which specifies if the propagation must be performed on
attribute value or on attribute visibility only. Authorized values are:
- Edition (visibility only)
- Valuation
|
EditAttributeId
|
String
|
Read |
Input parameter which identifies the attribute that has been
modified and whose edition requires propagation. |
Policy
|
String
|
Read |
Policy name. |
The attribute visibility and propagation is directly applied on the instance handled
by the BL.
Sample
The following sample shows how to automatically fill the Description and makes this
attribute not editable in the UI.
<Scripts>
<Script OpeningID="PLMAttributesPropagation"
Type="MyPLMProduct"
ScriptName="MyProductAttrPropagationScript" />
</Scripts>
This family references the script that contains the business logic implementation, which
looks like the following CATRule
file:
let p(ValuePointer)
let propagationMode(String)
propagationMode = Parameters->GetAttributeString("PropagationMode")
If(propagationMode==”Edition” OR propagationMode == "Valuation")
{
ThisObject.V_description = "My Description"
p = ThisObject.GetAttributeValuePointer("V_description")
p.Constant = True
}