Question

Using calculated dates in an HTML request

  • 30 August 2023
  • 1 reply
  • 49 views

I need to create a stream where the origin is an HTTP call. I need to pass a start and end date into this.

I have 3 date range to run, although these could be 3 pipelines they are in principle the same

  1. Start and end date same (Yesterday)
  2. Start date 1 month ago, end date yesterday
  3. start date 1 year ago, end date yesterday

I have worked with static parameters for start and end date, and this is fine, but I need to run the pipelines daily, via the scheduler. I tried to create a calculated date using timeAddition to calculate the date for yesteday (based on the example in the Docs for timeAddition function), but I get an EL invalid message


1 reply

Userlevel 4
Badge

@southwr62 

 

it would be easy to create a master pipeline, that uses expression evaluator to create the date values and then use Orchestrator library processor called Start Jobs to call the same job three times with the values as pararameters.

Reply