DeactivateConstraint()
This article is about the DeactivateConstraint action in the USoft Action Language.
DeactivateConstraint()
Dynamically sets a constraint to Active = No. The result is that, temporarily, the Rules Engine will ignore the constraint.
This action is effective only if you have set the Allow_Disable_Constraint deployment configuration parameter for the runtime environment.
Deactivating constraints goes counter to the general purpose of USoft Rules Engines. It removes the guarantee that application data are conformant with the data integrity defined for the Rules Engine.
Syntax
DeactivateConstraint( *constraint-name* )
The required constraint-name is the Constraint Name as defined in USoft Definer.
A common context for this action is an Action Task in a Job.
In addition to DeactivateConstraint(), there exist further actions for re-activating a de-activated constraint, for activating and de-activating all constraints in one go, for deactivating and re-activating relational checks, and more. Go to