Is there a way to view the retrieve business process variable data of a workflow when is completes?
Question
Question
how to view variable data in workflow
Replies
Joel,
I always add a 'Track Tokens' activity to the very end of each workflow I do...that way you get all the tokens in the 'Tokens' tab after a workflow instance is finished. Run a search for that workflow, click the instance you want, and choose the 'Tokens' tab from the menu:
Even the variables from forms will be here:
Thank you this is very good information. I was able to see the values in the workflow tokens.
Now here is the issue, the second column below is the values in the token, I am feeding this token into an email activity in the workflow and I only get the first value in the token; i.e FT. How can I get all the values included?
Joel,
You would have to split the token back apart. First use a 'For Each Row' to iterate through the values, then in your email choose the token with the 'Tokens' option but then click 'Apply Function' checkbox, click the 'Select a function' link and select the 'Split' option and move it over, like this:
I just use a space to split them, but you can use a comma or whatever is between them...to use a space just click in the field next to 'Split on' at the bottom of the box and type a space, then click 'OK'. Click the box next to 'Apply Index' as well, choose the 'All values separated by' radio button and type a comma or space in the field next to it. Click 'Ok' to close the box. This should now give you all the values of your token in your email. The model looks something like this:
Note: If your token was called compTimes for instance, it would look like this in the email text box once you're done: %(compTimes#@Split( )@##[ ]#)
This is probably not the way to go for just adding all values to an email. Multi-value tokens default to the first value when used in single-value editboxes like Laserfiche fields, entry names or the body of an email. If you want to use all values, you have to "flatten" them by specifying a delimiter. Once you insert the token in the email, right-click it and choose Token Editor from the context menu. Then specify the delimiter of your choice:
Miruna,
This has gotten me very close to what I need. However, the token is separating each now but there is a space after the comma that I need removed.
I tried to use the apply function to remove the space but that did not seem to work. Here is the screen shot.
Just type a comma in instead. The built-in comma separator is comma and a space.
The options in that dialog are applied in the order listed so the function runs before the delimiters.
Outstanding!!! Thank you so much.