0

I have seen that the CronExpression has a setter to define the timezone.

How can I set the value in drl file or when initializing the knowledge base?

SebastianStehle
  • 2,409
  • 1
  • 22
  • 32
  • This link can help in scheduling cron in Drools http://javadox.com/org.drools/drools-core/6.2.0.Final/org/drools/core/time/impl/CronExpression.html – Prog_G Jun 12 '18 at 08:56
  • But how can I find and edit the expressions? – SebastianStehle Jun 12 '18 at 09:43
  • I didn't get you. Can you give an example so that I can explain you better with the help of your example? – Prog_G Jun 12 '18 at 09:56
  • I have DRL files which make use of the cron expressions. In the docs I cannot find any information how to set the timezone in the drl files. But I know that the CronExpression class has the setter (you also pointed it out). So the question is: How can I find all CronExpressions or CronTriggers in my session and set the timezone. – SebastianStehle Jun 12 '18 at 10:09
  • Check this question https://stackoverflow.com/questions/41041426/drool-rules-using-cron-expression – Prog_G Jun 12 '18 at 10:18

0 Answers0