Precommit Openings: Retrieving AuditTags
EKL scripts for precommit openings can use AuditTags to
retrieve the event information of the object.
Benefits: You can create a business rule according to the events that occurred, or did
not occur, on the object.
The following sample contains a script that issues a message with the audit tag information it has retrieved for the object:
let UserFactAuditTag(EKLAuditTag)
let EventAuditTag(EKLAuditTag)
let TagInfo (String)
let lTags (List)
lTags = Parameters.AuditTags.GetValue(ThisObject)
if lTags.Size() > 1
{
UserFactAuditTag = lTags.GetItem(1)
EventAuditTag = lTags.GetItem(2)
TagInfo = "Modeler operation details - " + "UserFact: " + UserFactAuditTag + " / Event: " + EventAuditTag + " / Instance Title: " + ThisObject.PLM_ExternalID + " / Instance Description: " + ThisObject.GetAttributeString("PLMInstance.V_description")
Trace(1, TagInfo)
}
else
{
Trace(1, "No audit tags found on this object")
}
Validation = true
For example, in the following sample for the addinterface precommit
opening, the rule uses AuditTags to allow the replacement of an
interface only if the name of the new interface is test. Otherwise,
the rule blocks the action and issues an error message.
Let interfaceName(String)
Let lTags(List)
Let aTag(EKLAuditTag)
Let tagName(String)
Validation = false
Trace(1, "Execution MyCATRule on ", ThisObject.PLM_ExternalID )
lTags = Parameters.AuditTags.GetValue(ThisObject)
aTag = lTags.GetItem(1)
if (NULL <> aTag)
{
tagName = aTag.name()
Trace(1, "Tag: " + tagName)
if (tagName == "REPLACE")
{
Set interfaceName = Parameters.Macros.GetString("NEWINTERFACE")
if (interfaceName == "test")
Validation = true
}
}
if (Validation == false)
ReportUXMessage("add interface forbidden: " + interfaceName)
Learn more
Deprecation of Properties Panel Creation and Properties Update Openings
You can no longer create business logics with the Properties Panel Creation
(PropertiesInitialization) and Properties Update
(PropertiesPropagation) opening IDs to customize properties in web apps. You can still modify existing business rule script created on a previous
level.
Benefits: You can no longer deploy these deprecated business logics. You can use ER
generic server openings and UX openings instead that provide more
capabilities.

When selecting
Business Logic for 3DEXPERIENCE Dashboard
(Legacy) in
Data Setup, you can no longer create new resource tables and associated business rules.

Learn more