Scripts tasks

Evaluating the belonging of the connected user to a role

var role = iWorkflowModule.getRole( iContext, iWorkflowInstance.getCatalog(), "Vérificateur" );
if ( iUser.isMemberOf(role, true) )
        log.info( "The user " + iUser.getFullName() + " is member of " + role.getLabel() + " role." );
else
log.info( "The user " + iUser.getFullName() + " is member of " + role.getLabel() + " role." );