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

Question

Question

how can I get the workflow name as a token?

asked on April 28, 2014

Is it possible to get the name of the current workflow to use in a token, either in the workflow tools directly, or via scripts (SDK or standard)?

0 0

Answer

SELECTED ANSWER
replied on April 28, 2014

The list can be found here.

 

http://www.laserfiche.com/support/webhelp/workflow/9.1/en-us/LFWorkflow.htm#Resources/Activities/Activity Tokens/List of Tokens.htm?Highlight=hidden tokens

 

These tokens are added by the workflow system but not advertised by the designer at this time. They were originally exposed when 'Track Tokens' activity was added and showed they existed but we haven't really integrated them in with the token advertisement system yet.

 

If you want the warning to disappear, you could define them with a script activity. Alternatively, if you want to use it from a script, you can use WorkflowApi.WorkflowName.

 

0 0
replied on April 28, 2014

Thanks Ed - tested it and it works fine.

 

John

0 0

Replies

replied on April 28, 2014

%(workflowname) is the name of the workflow definition.

0 0
replied on April 28, 2014

Miruna, I get a "cannot be resolved" error for %(workflowname). What context can this be used in?

 

Also, can you point me to a resources where these objects are listed? I've had a look in various places - help links from the client and on the Laserfice support pages etc., but can't find this level of documentation anywhere.

 

Thanks,

John

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

Sign in to reply to this post.