I'm creating some workflows where I want to log the occasional warning/error and email them upon completion so the person who started the workflow knows if there's anything that needs to be verified. I think I have two options:
1) use a config element with an array of string and custom action to keep appending to the array (my workflows create a temporary config element specific to that workflow run anyway)
2) use Server.warn() and Server.error() and I think I saw a Server.something function that can gather up all the entries for me automatically and then I can email them.
For #1 I may need to try and find the config element when I'm in sub workflows or pass extra parameters in my logging action to help me find the config element to use. Maybe there's some magic I can use to find info from parent workflows if I know the original "master" workflow has the config element as an attribute?
For #2 I'm thinking is the easiest but I'm worried the database will grow too large overtime and cause problems. I seem to be finding conflicting info as to whether or not there's an automatic cleanup process.
This is vRO 7.6 (does it make a difference if it's standalone or embedded in vRA?). Would version 8 change anything?