I have a model with a lot of ProcesFlow sources that I would like to enable and disable more easily. I am using a table which, on reset, will dynamically add all sources (if it finds "Source" in the activity's classes), remove any null values (if the source no longer exists), and syncs up the sources "enabled" variable to a value from the table (for example, setvarnum(activity, "enabled", 1)).
The reset trigger is functioning mostly as intended, and I can easily control the state of each source. The one thing it is not doing is updating the icon to show as disabled. See below for an example.
Is there a way to automatically update the icon when I disable/enable a source? Similar to how it updates when enabling/disabling manually.
As a side question, is there a way to view/record what commands are being triggered when certain actions are performed? I'm envisioning something similar to how Excel has an ability to record macros. It looks like the event log only captures events triggered within the model run.
Thank you.