I have a dynamic role whose members will be based on a condition; if the condition is true, the members will come from another role (defined in a library that I have, but that's not important); if the condition is false, there will be no members. So I'm trying to accomplish this in the role formula using a ternary "if" statement, but I'm not able to get access the role in a way that the compiler will let me. For example, here is my current formula:
MyProcessData.IsManagerNeeded ? GeneralLibrary.Roles.DepartmentManagers : String.Empty
The compiler is complaining: "...DepartmentManagers is a 'type', which is not valid in the given context". The "DepartmentManagers" class does not appear to have any methods or properties that return a List so I can convert it to a string.
Any help would be appreciated.
-Rory