Cron Job for Refreshing Segments
The CxUpdateSegmentsCronJob interface allows to define segments based on the information obtained from the external systems.
The default cron job is already available in the system, imported in the projectdata_personalizationservices.impex file:
INSERT_UPDATE CxUpdateSegmentsCronJob; code[unique = true] ; job(code) ; singleExecutable; sessionLanguage(isocode); fullUpdate; allBaseSites; allProviders
; cxUpdateSegmentsCronJob ; cxUpdateSegmentsJob ; false ; en ; true ; true ; true
Defined cron job runs the update process for all base sites, gets the data from all providers, and performs the full update.
Cron job isn't triggered by default. You can add the trigger with the following impex:
# Run the CxUpdateSegmentsCronJob at 4:00 AM every day INSERT_UPDATE Trigger; cronJob(code)[unique = true]; second; minute; hour; day; month; year; relative; active; maxAcceptableDelay ; cxUpdateSegmentsCronJob ; 0 ; 0 ; 4 ; -1 ; -1 ; -1 ; false ; true ; 600
You can also add the trigger or change other settings in the Backoffice Administration Cockpit:
- Go to .
- Edit cxUpdateSegmentsCronJob.
Configure the following attributes:
- Full update:
- False to add new segments.
- True to add new segments and also remove not used segments.
- Providers - set All segment providers to True to get data from all registered providers or define a list of providers. Don't run the update segment process without any provider. If the provider list is empty, the segments will come from all providers.
- Base Sites - set All baseSites to True to run update segment process for all base sites or to define the base site list. If your segment data do not depend on any base site, you can configure an empty base site list. In such case, no base site is set in session for update segment process.

