Charmed Quark Systems, Ltd. - Support Forums and Community
Status of Scheduled and Triggered Events - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: Installation/Configuration (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=10)
+--- Thread: Status of Scheduled and Triggered Events (/showthread.php?tid=11090)



Status of Scheduled and Triggered Events - gReatAutomation - 04-20-2020

Is there a way to check on the status of a triggered or scheduled events to see if they are either enabled or disabled? I checked the documentation and none of the commands are marked with an asterisk.

In the Administrative Interface, you can clearly see the status of Scheduled and Triggered events. If they are paused, the item is greyed-out, if they are not paused, the item is normal.

What's more confusing is that, when you select a new "If" action in a command button, the Event Server is an option with the following commands: PauseTrgEv, PauseSchEv, and PauseEvMonitor. The documentation doesn't explain the return of these functions.

[Image: Capture.jpg]

I am trying to set up an interface where I can pause and resume events, however, have not figured out how to get the status (is it paused or not paused)?

I could set up variables in the variables driver, but this seems sloppy.


RE: Status of Scheduled and Triggered Events - Dean Roddey - 04-20-2020

The above command would work. YOu have to pass in the names of variables for it to fill in with all of that info. It will return (assuming it found the indicated event) with the information in the variables. You'd check the value of the one you passed for the statevar parameter, which should indicate the state.

Just as a quick test, set up a global action to call it, then test it in the action trace and to see what you get back.

I think the indication of a return for those pausing commands is bogus. None of those actually seem to set the return value. I'll put that on the list to fix.


RE: Status of Scheduled and Triggered Events - gReatAutomation - 04-21-2020

GetSchEvInfo does not work with Triggered events. When you click the Path, you are only shown scheduled events.

To ask again, is there a way to check on the status of a triggered event?


RE: Status of Scheduled and Triggered Events - Dean Roddey - 04-21-2020

Oh, sorry, I missed that detail. No, you can't get any info on triggered events, just scheduled ones. You can pause or un-pause a triggered event, but there's no info about it available.


RE: Status of Scheduled and Triggered Events - gReatAutomation - 04-21-2020

(04-21-2020, 11:52 AM)Dean Roddey Wrote: Oh, sorry, I missed that detail. No, you can't get any info on triggered events, just scheduled ones. You can pause or un-pause a triggered event, but there's no info about it available.

Thanks, I'll go the variable route for them then and will have to do an initial manually sync to ensure the variable value matches the current state of the scheduled or triggered event. Then, when I want to enable | disable in my GUI I click on the variable checkbox, enable | disable the scheduled/triggered event, then update the variable.