The following EKL script uses functions to check the maturity change of an item.
Let system_scopes(List)
Let system_reference(DELLmiProductionSystemReference)
Let process_outputs(List)
Let product_reference(VPMReference)
Let materialization_links(List)
Let process_reference(DELFmiFunctionReference)
Let ListSize(Integer)
Let index(Integer)
Validation = true
system_scopes = GetSystemScopesFromProcess(ThisObject)
ListSize = system_scopes.Size()
Trace (1, "System_Scopes_Size = " + ListSize)
if (ListSize <> 2)
{
Validation = false
}
index=0
for index while index < ListSize
{
index = index + 1
system_reference = system_scopes.GetItem(index)
Trace (1, "PLM_ExternalID=", system_reference.PLM_ExternalID)
}
process_outputs = GetProcessOutputs(ThisObject)
ListSize = process_outputs.Size()
Trace (1, "Process_Outputs_Size = " + ListSize)
if (ListSize <> 1)
{
Validation = false
}
index=0
for index while index < ListSize
{
index = index + 1
product_reference = process_outputs.GetItem(index)
Trace (1, "PLM_ExternalID=", product_reference.PLM_ExternalID)
}
materialization_links = GetMaterializationLinks(product_reference)
ListSize = materialization_links.Size()
Trace (1, "Materialization_Links_Size = " + ListSize)
if (ListSize <> 2)
{
Validation = false
}
index=0
for index while index < ListSize
{
index = index + 1
process_reference = materialization_links.GetItem(index)
Trace (1, "PLM_ExternalID=", process_reference.PLM_ExternalID)
}