You must create a business rule to modify the behavior of the system. In this example, you are going to check if the maturity change is authorized before you change the maturity.
let iFromState="" let iTransaction ="" let ListOfChildren (List) Validation = True iFromState = Parameters.GetAttributeString("CurrentState") iTransition = Parameters.GetAttributeString("Transition") if (iFromState == "IN_WORK" and iTransaction == "Share") { ListOfChildren = ThisObject.children if (ListOfChildren.Size() == 0 AND Parameters.Role <> "VPLMLeader") { Parameters.NLSMessage = BuildKweMessageNLS("MaturityCatalog, "RefusedTransition","") Validation = False } }
Result: The business rule is displayed in the tree along with one or two of the following icons: