IDM 4.0.2 Patch D
Custom resource approval workflow.

I am having trouble specifying a quorum percentage using an ecma script
to retrieve the percentage from the resource object. The percent is
stored as an integer in an aux class attribute, nrfQuorumPercentage.
Here is my code:

var p = IDVault.get(flowdata.get('resDn').toString(), 'nrfResource',
'nrfQuorumPercentage');
var ps = p.toString();
Packages.java.lang.System.out.println('p: ' + ps());
var per = ps + "%";
Per

nrfQuorumPercentage is the integer value of 30.
p: never displays in the log.
The error is -

Workflow Error: Activity Id [Activity67]: Approver condition [var p =
IDVault.get(flowdata.get('resDn').toString(), 'nrfResource',
'nrfQuorumPercentage'); var ps = p.toString();
Packages.java.lang.System.out.println('p: ' + ps()); var per = ps + "%";
per] must evaluate to a number in the range from 1 to number of activity
addressees.

If I set the value to a constant of 30%, everything works.


--
ptown
------------------------------------------------------------------------
ptown's Profile: https://forums.netiq.com/member.php?userid=418
View this thread: https://forums.netiq.com/showthread.php?t=52657