General InformationThis opening ID is invoked: 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.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe 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
}
| |||||||||||||||||||||||||||||||||||