How to start/stop Action Scheduler based on serverconnect result

#1

i cant seem to find the way to start or stop the action scheduler if serverconnect have items or empty.

#2

I never tried it before but you can try condition

#3

there is no place to check for items then start or stop the scheduler

#4

MAybe you can explain more exactly what your use case is?

#5

simple
i want to start the scheduler if the serverconnect query have items

#6

We currently don’t support conditional actions, but you could try something like the following on the server connect component:

dmx-on:done="data.query.hasItems() ? scheduler.start() :  scheduler.stop()"
4 Likes
#7

conditional action scheduler is a something great to have!