This method is no longer relevant. If possible, use How to Schedule Jobs with Dependencies. |
The following function is useful when you need to run several tasks (Data Loads, Calculated Field Sets, Calculation Flows,...) in a sequence and ensure that they wait for each other.
SequenceName | Order | Type | TaskName | State | LastRun |
---|---|---|---|---|---|
DM X load | 1 | DL | SalesDFtoDS | <no value> / RUNNING / DONE / ERROR | |
DM X load | 2 | DL | SalesDStoDM | ||
DM X load | 3 | DL | SalesDMCalculation |
Scheduler is a simple Calculation Flow Formula which is executed every minute and starts the tasks according to the Control Table.
Create a new Calculation Flow Formula, scheduled for every minute, with one element with this code:
lib.Sequencer.processAllSequences(actionBuilder) |
Import the Price Parameter called "SequenceControlTable". The import ZIP file is attached: PP_SequenceControlTable_for_Import.zip
From your code (usually from a CFF but generally from any code which is allowed to modify Price Parameters) call the following:
lib.Sequencer.startSequence("<your sequence name>") |