You are here:
Run a Background Job to Fix Stuck Orchestration Plans
In rare cases, an orchestration plan has completed all its tasks, but is still in the In Progress state. You can run a background job that marks such plans as complete.
When XOMOrchestrationPlanCompletionBatchJob runs, Order Management finds and completes any orchestration plans that have completed all their tasks, but are still in an In Progress state.
- Click
and select Developer Console. - From the Debug menu, click Open Execute Anonymous Window.
- Paste in the following code, adjusting the batch size for your needs. The batch size is the second parameter in the executeBatch() method:
public String cron = '0 0 12 1/1 * ? *'; vlocity_cmt.XOMOrchestrationPlanCompletionJob scJob= new vlocity_cmt.XOMOrchestrationPlanCompletionJob(); System.schedule('XOMOrchestrationPlanCompletionJob Scheduler', cron, scJob); - Click Execute.

