The information in this article applies to:
Product: Metastorm BPM (e-Work)
Version: 6.6.x 7
Issue
A dynamic role fails if the role's formula uses %Evaluate, and the username is numeric with leading zeros and is assigned to a text variable.
A procedure error is written to the Designer log stating No users hold these To Do roles.
Resolution
Any text string that contains all numeric characters, even if assigned to a text variable, is considered a number by %Evaluate and leading zeros are removed. Thus username '001234' would be evaluated as '1234' and the dynamic role would fail as username '1234' would not exist.
For example, the formula for a dynamic role is %Evaluate((( (%MyTextVariable <> %Empty()) )?("%MyTextVariable"):(""))). A user enters '001234' in a form field that assigns '001234' to %MyTextVariable so that the folder gets assigned to the To Do list for user '001234,' but this fails.
The workaround is to add a comma after the variable name in the dynamic role formula. The formula used in the example needs to be %Evaluate((( (%MyTextVariable <> %Empty()) )?("%MyTextVariable",):("")))