Allow General Operation Behave as System (Item to Workplan/System Case) (DELMSDAllowOperationAsSystem_ID)

An opening ID is an entry point used to customize business logic. This opening ID is run before moving an operation in the structure to allow operation as system.

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.

Definition Description
PLM Opening ID DELMSDAllowOperationAsSystem_ID
Customization intent Execution
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: Operation reference to allow as system
  • Parameters: Corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
InputTargetOcc ProdSystemOccurrence Read Target the system or the operation on which the user wants to move the current assembly.
OperationAsSystemAllowed Boolean Write TRUE if the operation is allowed as system.

FALSE if not.

OutputMessage String Write Messages:
  • "Operation allowed as System" if TRUE
  • "Operation not allowed as System" if FALSE

Sample

The following sample shows how to use the opening ID.

Let TargetToCheck(ProdSystemOccurrence)
	/* ---- output ---- */
    Let OperationAsSystemAllowed(Boolean)
    Let StatusMessage(String)
    /* ---- custom ---- */
    /* internal Variables declaration */
	/* ---- end custom ---- */
    /* by default operation is not allowed as System */
    set OperationAsSystemAllowed = false
    set StatusMessage=""		
    /* ---- RETRIEVE INPUT PARAMETERS ---- */
    if ( true == Parameters.HasAttribute("InputTargetOcc") ) 
    	set TargetToCheck = Parameters.GetAttributeObject("InputTargetOcc")
		
	/* ---- CODE ---- */
	Let ProdSystemOpeRef(PLMEntity)
	set ProdSystemOpeRef = TargetToCheck.Reference
	
	if (ProdSystemOpeRef.IsASortOf("DELLmiGeneralOperationReference"))
	{
		set OperationAsSystemAllowed = true			
	}
		
	if(true==OperationAsSystemAllowed) set StatusMessage="Operation allowed as System"
	if(false==OperationAsSystemAllowed) set StatusMessage="Operation not allowed as System"
     
	/* ---- END OF CODE ---- */

    /* ---- FILL OUTPUT PARAMETERS ---- */
    if ( true == Parameters.HasAttribute("OperationAsSystemAllowed") ) 
    {
    	Parameters.SetAttributeBoolean("OperationAsSystemAllowed", OperationAsSystemAllowed)
    }
    if ( true == Parameters.HasAttribute("OutputMessage") ) 
    {
    	Parameters.SetAttributeString("OutputMessage", StatusMessage)
    }