Can you use tokens like %(rulename) in a workflow to handle things like routing decisions
Can you use tokens like %(rulename) in a workflow to handle things like routing decisions
If you set a token to %(rulename) then you can indeed use it to route your workflows activities and determine the next activity to run.
Also, the workflow will give a warning but still work flawlessly when its run and can finish publication too. Just note that it may be empty if its invoked instead of started by a rule.
To circumvent the warning, create it as an input parameter (since its really a hidden input parameter).
On a side note, is rule name a useful enough token that we should always have it available? Its currently there for diagnostic reasons.
rule name is a good token to have available, and when a workflow is invoked by another, it might be useful if it took the starting rule of the original workflow as its starting rule. Or maybe that is an option inside the invoke workflow activity. There definitely is a usefulness to having i available but it's not too inconvenient to handle it in it's current form. At least it is there if you really do need it.
Any chance rule name can be added as an available token in dropdowns and so it doesn't generate an error? I am using it more and more and it would help a ton for novice users who are unaware of it's existence.