0

Currently the timer event have this Cron job configuration embedded in the workflow code-

<timerEventDefinition>
        <timeCycle>0 58 16 1/1 * ? *</timeCycle>
</timerEventDefinition>

I want this as a configurable property on workflow overview page. I was trying to workaround the expression property in the timer main config but no luck on that. Any idea on how to do that?

Thanks.

simbo1905
  • 6,321
  • 5
  • 58
  • 86
user3901666
  • 399
  • 11
  • 29

1 Answers1

1

Have you tried to define a start form variable in your workflow with readable false? And then in your Time cycle property you can use an expression like ${} You can then manage the cron expression in the workflow definition in the DGC.

  **Start Form Variable Example:**
  Id = cronExpressionVariable
  type = string
  Default = 0 58 16 1/1 * ? *
  Required = false
  Readable = false
  Writeable = true

  Then in the timer, set the Time Cycle = ${cronExpressionVariable}

You can then maintain the value in the workflow definition without having to update the workflow itself.