Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
OutputRef | DELFmiFunctionReference or VPMReference | Read | Item or Product reference, Output assigned to the System/Operation (can be
NULL). |
StatusValue | String | Write | Status of the Origin object. |
Sample
The following sample shows how to use the opening ID.
/* ---- input ---- */
let ThisSystemOcc(ProdSystemOccurrence)
let OutputRefAsProduct(VPMReference)
let OutputRefAsProcess(DELFmiFunctionReference)
/* ---- output ---- */
let sStatusValue(String)
set sStatusValue="Not Loaded"
set ThisSystemOcc = ThisObject
/* ---- RETRIEVE OUTPUT PARAMETERS ---- */
set OutputRefAsProduct = Parameters.GetAttributeObject("OutputRef")
set OutputRefAsProcess = Parameters.GetAttributeObject("OutputRef")
/* ---- CODE ---- */
/* This code can be adapted */
if (OutputRefAsProduct <> NULL) set sStatusValue="OK"
if (OutputRefAsProcess <> NULL) set sStatusValue="OK"
/* ---- FILL OUTPUT PARAMETERS ---- */
Parameters.SetAttributeString("StatusValue", sStatusValue)