Currently I'm implementing a subroutine like process by creating a new workflow with input and output tokens, then using that in multiple places. However I fear doing it this way introduces too much lag. I can technically copy and paste all of the individual steps contained in my separate "subroutine workflow" into the "parent workflow" multiple times but that just seems inefficient use of my time.
I'd love to see a future enhancement that formalizes an actual subroutine process, preferably one that just executes the subroutine without triggering a separate workflow instance (this would also simplify logging as you wouldn't have 5 steps of a workflow all listed separately in the logs).
I know how you guys love firm examples, so here's one for you:
I have a set of workflows that all need to access a database using stored procedures. Each of the items need to be looked at in slightly different ways so I created one generic workflow that has input parameters that cover all the variations, plus a token to select what type of data I need. I then pass that information back in tokens to be able to use in my parent workflow.
Thanks for your consideration!