Allow General Operation Behave as System (Workplan to System Case) (DELMIA_OpeWorkplanBalancingBehavior_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

Note: This business logic defines the wanted behavior when dropping a Workplan operation on a General operation. The behavior can be either:
  • The Workplan operation is reinstantiated under the target General operation and holds the link.
  • The link is directly held by the target General operation.

The table below provides you with information related to the definition of the opening ID.

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

Input Objects

Input objects must be of the following type:

  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
TargetOperation ProdSystemOccurrence Read Target Operation occurrence (the operation on which we drop the Workplan operation).
DraggedOperation ProdSystemOccurrence Read Source Operation occurrence (the dragged operation).
AsASystemBehavior Boolean Write

If TRUE, the source operation will be reinstated under the target operation.

If FALSE, the link will be directly held by the target operation.

Sample

The following sample shows how to use the opening ID.

/* INPUTS DEFINITION*/
Let TargetOperation(ProdSystemOccurrence)  	/* the occurrence of the drag&drop target operation */
Let DraggedOperation(ProdSystemOccurrence)	/* the occurrence of the drag&drop dragged operation */

/* OUTPUTS DEFINITION*/
Let AsASystemBehavior(Boolean)

/* RETRIEVE INPUT PARAMETERS*/
if ( true == Parameters.HasAttribute("iTargetOpeOcc"))
	set TargetOperation= Parameters.GetAttributeObject("iTargetOpeOcc")

if ( true == Parameters.HasAttribute("iDraggedOpeOcc"))
	set DraggedOperation= Parameters.GetAttributeObject("iDraggedOpeOcc")

/* By default the target operation holds the link */
set AsASystemBehavior = false
Parameters.SetAttributeBoolean("oAsASystemBehavior",AsASystemBehavior)