AnsweredAssumed Answered

"Set Variable Value" problem in Workflow

Question asked by Tom Hayward on Apr 13, 2007
Latest reply on Apr 19, 2007 by Tom Hayward
I'm trying to set up a counter in a transition action to record the number of re-release events within a workflow. (We initiate a "roll-up" or re-release whenever we wish to update the underlying references but NOT increase the drawing revision if there is no resulting pictorial change to the parent drawing.)

The roll-up counter uses the Integer type variable _RevRollup, however, it is displayed as a Text type variable in the transition action dialogue. (It will correctly revert to Integer if you re-select _RevRollup from the pull-down list of variables.) It also appears that the expression %var__RevRollup%+1 will not evaluate as an integer. Through each roll-up iteration, the variable _RevRollup is updated to the string values +1, +1+1, +1+1+1, etc. instead of the expected integer values 1, 2, 3, etc. Is this a bug or limitation in the transition action's "Set variable value" function, or am I not using the correct syntax to evaluate an integer expression?

Please see attached screenshots for details.