EKL Server: Functions for Items

This section describes the functions for items on the EKL server.

Note: The "item" objects described in this document were known as "process" objects in previous releases. The term process is still used in the names of functions, types, methods, attributes, and so on. In this case, process now means item.

This page discusses:

GetSystemScopesFromProcess

Returns the manufacturing systems having a scope link with a given item reference.

Signature

GetSystemScopesFromProcess(iProcessReference : DELFmiFunctionReference) : List

Arguments

Name Input / Output Required? Type Comment
iProcessReference In DELFmiFunctionReference -

ReturnType

List

List of DELLmiProductionSystemReference

GetProcessOutputs

Returns the products having a materialization link with a given item reference.

Signature

GetProcessOutputs(iProcessReference : DELFmiFunctionReference) : List

Arguments

Name Input / Output Required? Type Comment
iProcessReference In DELFmiFunctionReference -

ReturnType

List

List of VPMReference

Example of Use

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)
}