I want a process to start every 5 minutes and only if a condition is true. if the condition is represented by the value of a boolean constant, it works, but i the condition is a result of a rule it doesn't work.
Maybe it's not possible to set the start of a process this way?
Thanks in advance to anyone who wants to answer me
Discussion posts and replies are publicly visible
The use case you are describing is possible. Can you try putting the rule expression within the timer->advanced option->New expression itself and check.
I don't understand if yours is a question. Anyway the condition is this:
rule!myapp_example_query( filters: a!queryFilter( field:"status", operator:"=", value:"READY" ) ).totalCount = 1
What's the output of this rule??Is it returning true??
Yes. Specifically, it runs a query on a database (with batchSize=1); the rule evaluates if totalCoun = 1