I'm working with WSO2 and I have a task that needs to be triggered based on a system variable. I want to dynamically set the trigger interval for the task using the value of a system variable in cron expresssion. i use wso2 micro integrator
so far , i tried these variants to accomplish it
<trigger cron="${TASK_FREQUENCY}"/>
<trigger cron="{get-property('taskFrequency')}" />
<trigger cron="$system:TASK_FREQUENCY" />
<trigger cron="0 */$system:TASK_FREQUENCY * * * ?" />
second one will not work because Tasks does not support dynamic properties
i want my task automaticaly take system variable TASK_FREQUENCY , which contains cron expression and based on that expression it will sets interval how often will be task triggered