Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
ProposedDriftingSystemList | List |
Read | List of possible target Systems for the drifting. |
SelectedDriftingSystem | ProdSystemOccurrence | Write | Target System selected for the drifting. |
Status | Integer | Write | Returns 0 if the Business Logic went well, and -1 if not. |
ErrorMessage | String | Write | Error 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)