Pardon me if I've posted this before, I am having Deja Vu...

Simple function:

function isMemberOf(IDVault,userDN,groupDN)
groupsImIn = IDVault.get(userDN , 'user', 'group');
return (groupsImIn.indexOf(groupDN) != -1);

Calling it from a condition activity looks like this:


It doesn't work; but if I put the function into the condition activity it does (I don't want to duplicate it in 25 different places, editing a big workflow is hard enough). I take this approach in the forms engine all the time, passing in the IDVault or field or form or event object, but it doesn't seem to work in the workflow engine. Any idea if this can be done?