General Information
This opening ID is called
after changing the maturity of a component.

The table below provides you with information
related to the definition of the Opening ID.
Opening ID: |
PLMPostCheckMaturity |
Customization intent: |
Validation |
Sample
The following sample The following sample shows you how to:
- Check the current state and the transition
- Check the object children maturity state. The rule fails if at least one child is in "WAIT_APP" maturity state.
/*The following rule is an example of what can be done*/
/* ----------------- */
/* Declare */
/* ----------------- */
let iFromState=""
let iTransition=""
let ListInstance (List)
let ListInstanceSize (Integer)
let FilterList (List)
let SonList(List)
let FilterListSize (Integer)
/* ----------------------------------------------- */
/* By default, we validate the operation */
/* ----------------------------------------------- */
Validation = true
/* ------------------------------------------- */
/* */
/* ------------------------------------------- */
/* -------------------------------- */
/* Retrieve parameters values */
/* -------------------------------- */
iFromState = Parameters.GetAttributeString("CurrentState")
iTransition = Parameters.GetAttributeString("Transition")
/* -------------------------------------------------------------- */
/* From IN_WORK to WAIT_APP, check Children's maturity state */
/* -------------------------------------------------------------- */
if (iFromState == "IN_WORK" and iTransition == "Share")
{
/* -------------------------------- */
/* Retrieve object's Children */
/* -------------------------------- */
ListInstance = ThisObject.Children
ListInstanceSize = ListInstance.Size()
if ( ListInstanceSize > 0 )
{
/* ------------------------------------- */
/* Check Children's maturity state */
/* */
/* We first navigate from the instances */
/* to their references */
/* ------------------------------------- */
FilterList = ListInstance.Extract("VPMInstance", "VPMReference", "y = x.Children.GetItem(1)")
.Filter("VPMReference", "x.V_maturity == \"IN_WORK\" ")
FilterListSize = FilterList.Size()
}
}