This job sets the Lookup to Context Dimension
A lookup to ContextDimension__c has been added to the EntityFilterCondition__c table as of release CME Winter '18. In earlier releases, the FieldName__c field was used to set the ContextDimension. At admin time, for a simple rule condition, it is easier and less error-prone if the Context Dimension is a lookup and not a text field. This batch job is created to populate this lookup for records created prior to CME Winter '18 release. Records created in CME Winter '18 release and later have this lookup populated.
Run the batch job in execute anonymous:
Database.executeBatch(new EPCCreateContextDimensionBatchJob(),
1);
If you run this job on an installed package, as is usually the case at a customer site, then run:
Database.executeBatch(new
vlocity_cmt.EPCFixCompiledAttributeOverrideBatchJob (), 1);