| ActivityAssignmentAssignActivityToManagerCrawl Method |
Method assigns an activity to the manager(s) of a referred identity (or other data object).
The method trows an error is no managers(s) can be found.
For Identity and User Calculation where the Identity is a manager of itself.
The manager is found depending on the setting of the parameter crawlWhenUserExcluded. (See the parameter for details.)
Codemethod usage | |
---|
Designed to be used in a process only (Yes/No) | Yes |
Action Object (data object type) | Activity |
The target object of the process must have the identityPropertySysName property.
The property must have a reference to either a:
Object type | Description |
---|
Identity |
Activity is assigned to the manager of the identity.
|
User |
Activity is assigned to the manager of the identity which belongs to the user.
An error is thrown if the user doesn't have an identity.
|
Org. unit |
Activity is assigned to the manager of the org. unit.
|
Namespace:
Omada.OE.Solution.OIM.Assembly
Assembly:
Omada.OE.Solution.OIM.Assembly (in Omada.OE.Solution.OIM.Assembly.dll) Version: 15.0.0.0
Syntaxpublic bool AssignActivityToManagerCrawl(
CodeMethodInvokeContext context,
string identityPropertySysName,
bool crawlWhenUserExcluded
)
Parameters
- context
- Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
- identityPropertySysName
- Type: SystemString
System name of a single-value reference property for an identity, user or org. unit located on the target object.
- crawlWhenUserExcluded
- Type: SystemBoolean
- If true the Identity manager will be found from a level above, when the identity is a manager at the same level..
- If false the Identity manager will be found on the same level or above, when the identity is a manager at the same level
Return Value
Type:
Boolean
See Also