Workflow designer - how to comment out / disable part of the code
Hi all
I'm wondering if there is an option to disable workflow from executing, similar way when you comment out the line in the code. At the moment I have to cut the object and paste into other Workflow designer window for later use, but this method is akward I need to remember the original spot.
I would like to hear your thoughts or any tricks or tips, you can share. I deally would be fantastic if I can do right click and toggle between (disbale/enable or execute/skip).
Regards
Frank
0
-
Frank,
Do you mean you want to disable just a portion of a workflow? Just add a 'Comment Out' Activity (it's under the modelling section of the toolbox) and drag any other activities that you want to temporarily disable into the comment out activity.
Peter.0 -
Frank,
As Peter mentioned, there is a "Comment" module provided in the workflow. Another alternative is to create a boolean variable, which I call "debug". Set it to True or False depending on the state of your code. Then add If statements that will execute code based on the value of debug. I do this during testing to comment out code that executes feature creation, edits, deletes while testing other code.
Tom0 -
Thanks guys for the responses.
I was looking in wrong place! I like the sugestion using a boolean variable, that can be handy.
Thanks again.0 -
If you build your workflow in a flowchart, then you can easily pass over one or more activities just by skipping over them when connecting one activity to the next. I write virtually all of my workflows in flowcharts for exactly this reason. It also works great for testing alternative methods to get the same result to see which one runs faster. 0
Please sign in to leave a comment.
Comments
4 comments