Suggested Capable Resources In Context for System/Operation (DELPPRCandidateResourcesInContext_ID)

An opening ID is an entry point used to customize business logic. This opening ID is run to return the list of suggested Capable Resources In Context for the current System/Operation occurrence.

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: DELPPRCandidateResourcesInContext_ID
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
InputSystemOccurrenceProdSystemOccurrence ReadSystem/Operation occurrence, for which the opening ID must return the list of suggested resource references.
RequestButtonVisibleStateOnlyBooleanRead For performance purposes. Requests the opening ID 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.
OutputIsButtonVisibleBooleanWriteReturns whether or not the “Suggested” button is to be displayed in the panel.
OutputListOfResourceReferences ListWriteList 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)