General InformationThis opening ID is a compute opening. For more information, see Compute Openings. This opening ID is integrated to the Duplicate, Advanced Duplicate, New Branch, and Advanced New Branch commands in web app. It is also integrated in the New Branch command in desktop apps. Recommendation:
For more information, see Operation Propagation (PLMAuthoringDefaultPropagationScope).
You can specify whether objects are copied or reused:
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following example shows how to specify that:
Note:
This corresponds to the default implementation of Operation Propagation
(PLMAuthoringDefaultPropagationScope) business logic for desktop apps.
For more information, see Operation Propagation (PLMAuthoringDefaultPropagationScope).
Let FromValidatedObject(PLMEntity)
Let ProjectContext (STRING)
Let ProjectIntent (STRING)
Let ProjectObject (STRING)
Let DefaultPropagation(BOOLEAN)
/* variable set-up */
ProjectContext = ""
ProjectIntent = ""
ProjectObject = ""
FromValidatedObject=NULL
DefaultPropagation=true
/* checking calling context */
if ( Parameters->HasAttribute("OperationId") == true ) {
Trace (1, "ENOST_OperationValidation ", Parameters->GetAttributeString("OperationId"))
}
/* reading projects info */
if ( Parameters->HasAttribute("Project") == true ) {
ProjectContext=Parameters->GetAttributeString("Project")
}
if ( Parameters->HasAttribute("RootContext") == true ) {
set FromValidatedObject=Parameters->GetAttributeObject("RootContext")
}
if ( FromValidatedObject<>NULL) {
if ( FromValidatedObject->HasAttribute("project") ==true ) {
ProjectIntent=FromValidatedObject->GetAttributeString("project")
}
if (ProjectIntent==NULL) { ProjectIntent="" }
}
if ( ProjectIntent=="" ) {
ProjectIntent=ProjectContext
}
ProjectObject=ThisObject.project
/* across projects, object is not valid for a default operation propagation */
if ( ProjectObject <> ProjectIntent ) {
DefaultPropagation=false
}
/* output Propagation status */
if ( Parameters->HasAttribute("Propagate") == true ) {
Parameters->SetAttributeBoolean("Propagate",DefaultPropagation)
}
| |||||||||||||||||||||||||||||||||||||