Is Workplan/Sytem a Station (DELPLMSystemOccurrence_IsAStationID)

An opening ID is an entry point used to customize business logic. This opening ID is run to display a subset of configurations from all predefined configurations attached to roots in the PPR Configuration Filtering dialog box.

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 information about the definition of the opening ID.

Definition Description
PLM Opening ID DELPLMSystemOccurrence_IsAStationID
Customization intent Validation
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: System occurrence including root occurrence
  • Parameters: Corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
Status Boolean Write True if the system is a station. By default, the value is false.
SystemDescription String Read User-defined description of the system.

Sample

In this sample, only the system with description as 'STATION' is considered as station.

Let Status (Boolean)
Let SystemDescription (String)

if (ThisObject->HasAttribute("V_description") == true)
{
SystemDescription = ThisObject->GetAttributeString("V_description")
Trace (1, "Description=", SystemDecription)
   	if (0 <= SystemDescription.Search("STATION", 0, true))  
    	{  
set Status = true
    	}
   	else
   	{
		set Status = false
  	 }
}
else 
{
	set Status = false
}
     
if (true == Status)   
{  
   	Validation = true
   	Parameters.Severity = 0
   	Parameters.Message = "System is a Station"
				Trace (1, "System is a Station")
}
else
{  
   	Validation = false
   	Parameters.Severity = 0
  		Parameters.Message = "System is not a Station"
}