After Manufacturing System/Operation - Item/Workplan/Operation Implement Link Creation (DELPLMSystemOperationOccurrence_ImplementLinkCreationID)

An opening ID is an entry point used to customize business logic. This opening ID is run after the creation of an implement link between manufacturing system/ operation and item/workplan/operation.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

The table below provides you with information related to the definition of the opening ID.

PLM Opening ID: DELPLMSystemOperationOccurrence_ImplementLinkCreationID
Customization intent: Execution
Execution context: Client

Input Objects

Input objects must be of the following types:

  • Parameters: Corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
iProcessOccurrence MfgProcessOccurrenceRead MfgItem occurrence, implemented by the Operation iSystemOperationOccurrence.
iWorkplanOperationOccurrenceProdSystemOccurrenceRead WorkplanOperation occurrence, implemented by the iSystemOperationOccurrence.
iSystemOperationOccurrenceProdSystemOccurrenceRead/Write System or Operation occurrence, implementing iProcessOccurrence or iWorkplanOperationOccurrence.

Sample

The following sample shows how to use the opening ID.

let iProcessOccurrence(MfgProcessOccurrence)
let iWorkplanOperationOccurrence(ProdSystemOccurrence)
let iSystemOperationOccurrence(ProdSystemOccurrence)

let implementedInstance(PLMCoreInstance)
let implementedInstanceDescription(String)
let implementingReference(PLMCoreReference)

set iSystemOperationOccurrence = Parameters->GetAttributeObject("iSystemOperationOccurrence")
set iProcessOccurrence= Parameters->GetAttributeObject("iProcessOccurrence")
set iWorkplanOperationOccurrence= Parameters->GetAttributeObject("iWorkplanOperationOccurrence")
if(true)
{
    if (iSystemOperationOccurrence <> NULL)
    {
        /*************Read the description of the implemented object*******************/
        if (iProcessOccurrence <> NULL)
        {
            set implementedInstance = iProcessOccurrence.Instance
        }
        if (iWorkplanOperationOccurrence <> NULL)
        {
            set implementedInstance = iWorkplanOperationOccurrence.Instance
        }
        if(implementedInstance <> NULL)
        {
            set implementedInstanceDescription = implementedInstance.V_description
        }
        /************* setting description on the implementing object *******************/
        if(implementedInstanceDescription <> "" AND  implementedInstanceDescription <> NULL)
        {
            set implementingReference = iSystemOperationOccurrence.Reference
            if  (implementingReference <> NULL)
            {
                implementingReference.V_description = implementedInstanceDescription
            }
        }
    }
}