Environment: Cloud only General InformationThis opening ID is a precommit trigger. For more information about the specifities of a precommit trigger, see About Precommit Triggers.
Input Objects
Context Object ParametersNo context object parameters. Sample
Trace(1, "Execution MyCATRule on ", ThisObject.PLM_ExternalID )
Report("Information", "infoMsg ", "attribute PLM_ExternalID changed to #", ThisObject.PLM_ExternalID )
if (ThisObject.PLM_ExternalID == "error")
{
Parameters.Message = "This is an error"
Validation = false
}
else
{
Report("Warning", "warnMsg", "This is a warning")
ThisObject.SetAttributeString("PLMEntity.PLM_ExternalID ", "modified by script")
Validation = true
}
| ||||||||||||||||