Context Object Parameters
Table 1. Business Object Standard Parameters
| Parameter Name |
Type |
Read or Write |
Comments |
EVENT |
String |
Read |
Any of the supported events. |
NAME |
String |
Read |
Business object name |
ORGANIZATION |
String |
Read |
The organization that owns the business object
|
OWNER |
String |
Read |
The owner of the business object |
PHYSICALID |
String |
Read |
The physical ID for the business object |
POLICY |
String |
Read |
The business object policy |
PROJECT |
String |
Read |
The project (collaborative space) that owns the
business object |
REVISION |
String |
Read |
Business object revision |
TYPE |
String |
Read |
Business object type |
Table 2. Additional Parameters for modifydescription
| Parameter Name |
Type |
Read or Write |
Comments |
DESCRIPTION |
String |
Read |
|
NEWDESCRIPTION |
String |
Read |
Target description |
AuditTags |
List |
Read |
Logging event of the transaction. |
Sample
Trace(1, "Execution modifydescription on ", ThisObject.PLM_ExternalID )
Trace(1, "Test macro DESCRIPTION = ", Parameters.Macros.GetString("DESCRIPTION") )
Trace(1, "Test macro NEWDESCRIPTION = ", Parameters.Macros.GetString("NEWDESCRIPTION") )
if (ThisObject.description <> Parameters.Macros.GetString("DESCRIPTION"))
{
ReportUXMessage("Macros error")
Validation = false
}
if (ThisObject.description == "error")
{
ReportUXMessage("This is an error")
Validation = false
}
else
{
ThisObject.SetAttributeString("PLMEntity.V_description", "modified by script")
ThisObject.SetAttributeString("description", "test_basic")
Validation = true
}