Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
iLinkedObject | Feature | Read | MfgItem/Resource occurrence, Implemented MfgItem or Implementing
Resource |
iParentObject | ProdSystemOccurrence | Read | System/Operation occurrence, parent of the new created operation |
iType | String | Read | Default type for the created operation |
iCause | String | Read | (IN) = String, reason of the implicit operation creation
(ImplementLinksFromProcess or ImplementLinksFromResource). |
oType | String | Write | (OUT) = String, type of the operation to create (must be a sub-type of iType) |
Sample
The following sample shows how to use the opening ID.
/* ---- input ---- */
Let LinkedObject(Feature) /* the occurrence of the implemented or implementing object */
Let ParentObject(ProdSystemOccurrence) /* the occurrence of the parent of the operation to create (can be a System or an Operation) */
Let InputCause(String) /* ImplementLinksFromProcess or ImplementLinksFromResource */
Let InputType(String) /* the OOTB type of the operation to create */
/* OUTPUTS DEFINITION*/
Let OutputType(String) /* the specialized type of the operation to create */
/* RETRIEVE INPUT PARAMETERS*/
if ( true == Parameters.HasAttribute("iLinkedObject"))
set LinkedObject= Parameters.GetAttributeObject("iLinkedObject")
if ( true == Parameters.HasAttribute("iParentObject"))
set ParentObject= Parameters.GetAttributeObject("iParentObject")
if ( true == Parameters.HasAttribute("iCause"))
set InputCause= Parameters.GetAttributeString("iCause")
if ( true == Parameters.HasAttribute("iType"))
set InputType = Parameters.GetAttributeString("iType")
/* By default we put the input type */
if (NULL <> InputType)
Parameters.SetAttributeString("oType",InputType)