Environment: On premises only General InformationThis opening ID is invoked: RouteSchemaInitialization This opening ID is used to customize the route initialization process for change action, change request, and issue. This opening ID is invoked during the promote and demote transitions of issue, and change objects.
If a content object is repromoted, a new route is initialized every time a business logic is run. If any content object is in a state that blocks existing routes, they are completed automatically. The modifications made on the completed routes are not copied to the newly created route. The new route is created in the same organization and project as the object, and the object owner is assigned as the route owner. The following table 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 initialization schema for routes.
let contextSchema(RouteEKLSchema) let transition(String) set contextSchema = Parameters->GetAttributeObject("ComputedRouteSchema") set transition = Parameters->GetAttributeObject("Event") if(ThisObject.current == "Assign" and transition == "Promote") { contextSchema.setRouteTemplateId("template_id_1") contextSchema.setRouteCompletionAction("Promote Connected Object") contextSchema.setRouteDemoteOnRejection ("Yes") }else { contextSchema.setTemplateName ("template_name_2") }
|