Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
iImplementedObject | Object |
Read | Gives the implemented object (may be null) that will be assigned to the item
to create. |
iType | String | Read | Gives the identifier of the OOTB type of the item to create. |
iFatherContext | MfgProcessOccurrence | Read | Item occurrence under which the item to create will be instantiated. |
oType | String | Write | Gives the identifier of the specialized type of the item to create. |
Sample
The following sample determines the specialized type of the item to create.
/* INPUTS */
Let ImplementedObject(ProductOccurrence) /* the occurrence of the implemented part */
Let InputType(String) /* the OOTB type of the reference to create */
/* OUTPUTS */
Let OuptutType(String) /* the specialized type of the reference to create */
set ImplementedObject= Parameters->GetAttributeObject("iImplementedObject")
set InputType = Parameters->GetAttributeString("iType")
/* By default we put the input type */
Parameters->SetAttributeString("oType",InputType)