This section provides guidelines on how to write and test PaCE policies.

You can write PaCE policies using JavaScript and create the policy record within your instance application scope. PaCE policies can be executed within the scope in which they are created and all functions available in this scope are available to the policy.

When a policy is invoked, a default set of parameters is passed and these parameters can be used in the policy logic as required. A decision indicating whether the policy is compliant, non-compliant, or compliant-exception and additional information is returned using the decision object.