Drifting - Target System Selection (DELPPRDriftingSystemSelector_ID)

An opening ID is an entry point used to customize business logic. This opening ID is run to choose the target System used for drifting when several target Systems are possible.

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: DELPPRDriftingSystemSelector_ID
Customization intent: Execution
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject: System occurrence, source for the drifting.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
ProposedDriftingSystemListList Read List of possible target Systems for the drifting.
SelectedDriftingSystemProdSystemOccurrenceWrite Target System selected for the drifting.
StatusIntegerWrite Returns 0 if the Business Logic went well, and -1 if not.
ErrorMessageStringWriteError message to display to the user.

Sample

The following sample shows how to use the opening ID.

/* ---- input ---- */
Let proposedDriftingSystemList (List)
Let selectedSystem(ProdSystemOccurrence)
Let myStatus(Integer)
Let myErrorMessage(String)

/* Set Output*/
Set myStatus=-1
Set myErrorMessage = "No Drifting System"
Set selectedSystem = NULL

Set proposedDriftingSystemList=Parameters.GetAttributeObject("ProposedDriftingSystemList")
if (proposedDriftingSystemList.Size() > 0)
{
  /* start of code to be adapted */
  Set selectedSystem=proposedDriftingSystemList[1]
  Set myStatus=0
  Set myErrorMessage = ""
  /* end of code to be adapted */
}
else
{
   Set  myErrorMessage="Empty List"
}

/* ---- FILL OUTPUT PARAMETERS ---- */
Parameters.SetAttributeObject("SelectedDriftingSystem", selectedSystem)
Parameters.SetAttributeObject("Status", myStatus)
Parameters.SetAttributeString("ErrorMessage", myErrorMessage)