You are viewing limited content. For full access, please sign in.

Question

Question

Can you make use of hidden token values in workflow?

asked on November 7, 2013

Can you use tokens like %(rulename) in a workflow to handle things like routing decisions

 

3 0

Answer

SELECTED ANSWER
replied on November 7, 2013 Show version history

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.

Token Image

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.

2 0
replied on November 8, 2013

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.

0 0
replied on November 8, 2013

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.

0 0
replied on January 12, 2016

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.

1 0

Replies

replied on May 25, 2016

Good Subject

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.