Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
InputSystemOccurrence | ProdSystemOccurrence |
Read | System/Operation occurrence, for which the opening must return the list of suggested resource references. |
RequestButtonVisibleStateOnly | Boolean | Read | For performance purposes. Request the opening to return the status for the visibility of the “Suggested” button in the panel, but no need to compute the list of suggested resource references. |
OutputIsButtonVisible | Boolean | Write | Returns if the “Suggested” button needs to be displayed in the panel. |
OutputListOfResourceReferences | List | Write | List of suggested resource references. |
Sample
The following sample shows how to use the opening ID.
/* ---- input ---- */
Let InputSystemOccurrence(ProdSystemOccurrence) /* Input System/Operation Occurrence */
Let RequestButtonVisibleStateOnly(Boolean) /* RequestButtonVisibleState flag */
/* ---- output ---- */
Let IsButtonVisible(Boolean)
Let ListOfResources(List)
/* ---- RETRIEVE INPUT PARAMETERS ---- */
RequestButtonVisibleStateOnly = false
if ( true == Parameters.HasAttribute("RequestButtonVisibleStateOnly") )
set RequestButtonVisibleStateOnly = Parameters.GetAttributeBoolean("RequestButtonVisibleStateOnly")
if ( true == Parameters.HasAttribute("InputSystemOccurrence") )
set InputSystemOccurrence = Parameters.GetAttributeObject("InputSystemOccurrence")
/* ---- CODE ---- */
/* CUSTOMER CODE SHOULD BE HERE */
/* ---- FILL OUTPUT PARAMETERS ---- */
if ( true == Parameters.HasAttribute("OutputIsButtonVisible") )
{
set IsButtonVisible = false /* HERE : set to "true" to see the suggestions list button */
Parameters.SetAttributeBoolean("OutputIsButtonVisible", IsButtonVisible)
}
if ( true == Parameters.HasAttribute("OutputListOfResourceReferences") )
{
Parameters.SetAttributeObject("OutputListOfResourceReferences", ListOfResources)
}