Dependency Validation (ECM_DependencyEstablishment)

An opening ID is an entry point used to customize business logic. The Dependency Validation Action opening ID lets you allow or refrain users from setting dependency for your change objects.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked: ECM_DependencyEstablishment

This opening ID is used to customize the dependency type that the users can set for the change actions or change orders in your organization.

This opening ID is invoked whenever users add dependencies from or to the change objects that you configured the business logic for.

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

Definition Description
PLM Opening ID ECM_DependencyEstablishment
Customization intent Validation
Execution context Server

Input Objects

Input objects must be of the following types:

  • ThisObject: Change Action or Change Order
  • Parameters: Corresponds to the context object
  • Validation

Context Object Parameters

Parameter Name Type Read or Write Comments
FromObject Change Action or Change Order Read The change object that is on the From side of the dependency.
ToObject Change Action or Change Order Read The change object that is on the To side of the dependency.
KindOfLink Dependency, Codependency, or Flowdown Read The type of dependency that is set between the change objects.
UserDefined Boolean Read Defines whether the dependency is defined from the user or by the system.

Sample

The following sample describes how to define a business logic that allows users only to set the codependency between change orders.

/* Define constants */
/* Input elements */
let fromObject("DatabaseObjectType")
let toObject("DatabaseObjectType")
let kind("String")
let userDefined("Boolean")

/* Retrieve the elements provided in input */
set fromObject = Parameters->GetAttributeObject("FromObject")
set toObject = Parameters->GetAttributeObject("ToObject")
set kind = Parameters->GetAttributeString("KindOfLink")
set userDefined = Parameters->GetAttributeBoolean("UserDefined")

/* By default it's not allowed */
Validation = false

/* Except if both are COs and if it's a corequisite */
if(fromObject.IsASortOf("Change Order") AND toObject.IsASortOf("Change Order") AND kind == "Codependency" AND userDefined)
{
	Validation = true
}