Debugging a Business Rule: Enabling Tracing Generated by the Customization Engine
By default, traces are generated each time a business rule is executed on a given
object, whatever the object type and the opening ID.
To enable traces, you need to set the following variable:
CKE_CUSTO_TRACES=1. Traces indicate that the issues encountered
(scripts not found, scripts not valid syntactically, scripts failing at runtime, etc.).
You can also:
focus on a particular opening ID or object type, then set the following variable:
CKE_CUSTO_TRACES_RESTRICTION=OpeningID;ObjectType
define a list of associated OpeningID/ObjectType, then set the following variable:
CKE_CUSTO_TRACES_RESTRICTION=OpeningID1;ObjectType1;OpeningID2;ObjectType2;...;OpeningIDN;ObjectTypeN
find all the traces for a given opening ID without defining the object type, then set
the following variable:
CKE_CUSTO_TRACES_RESTRICTION=OpeningID1;;OpeningID2;; until
OpeningIDN;; if needed.
Important:
If either the Trace function or the
Message function is used in the script, the string passed to the
Trace or the Message function will be traced
as well.