Customized Business Logic for Classification and Declassification of Protected Items

An opening ID is an entry point used to customize business logic. You can use the existing precommit at create and precommit at delete on Protected Item relationship to classify and declassify items respectively.

This page discusses:

Sample

When classifying or declassifying an item under an IP security class, you need to check its maturity. The following script sample illustrates how to create a business logic for the Released maturity state. If the objects are not in the Released maturity state, it restricts the classification or declassification of these objects.

Let ToObject (BusinessType) 
Let ToObjectState (String)
set ToObject=ThisObject.GetTo()
ToObjectState = ToObject.current 
Trace(1,"Entering the BL--DefaultBLL") 
Validation = true
 Trace(1, " ToObject State = " + ToObjectState) 
if(ToObjectState<>"RELEASED")
{
    Validation=false 
    ReportUXMessage("Error - Only RELEASED state is allowed") 
}

Note: You can set Validation=true and allow classification or declassification of the objects that are in the Released maturity state.