Environment: On premises only
General Information
This opening ID is invoked after creating a new version of a component.
The table below provides you with information related to the definition of the Opening ID.
Opening ID: | PLMPostCheckNewVersion |
Customization intent: | Validation |
Execution context: | Server |
Input Objects
Input objects must be of the following types:
ThisObject
corresponds to the source object of the command:
- In New Version: The object to be revised.
- In New Version From Distant Data: The source object containing the distant data
(to be inserted into the revision family).
Parameters
corresponds to the context object.Validation
Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
NewObject | PLMEntity |
Read | The object resulting from the new version. |
Policy | String | Read | Policy name. |
Sample
/*The following rule is an example of what can be done*/
/* ----------------- */
/* Declare */
/* ----------------- */
Let DescriptionValue=""
Let Idx=-1
/* ----------------------------------------------------------------------------- */
/* Retrieves the object description and searches for specific string sequence */
/* ----------------------------------------------------------------------------- */
DescriptionValue = ThisObject->GetAttributeString("V_description")
Idx = DescriptionValue->Search("PLMActionNewVersion")
if (Idx >= 0)
Validation = true
else
Validation = false