Home > Class Reference > ENSLIB namespace > EnsLib.Workflow.RoleMembership
Private  Storage   


persistent class EnsLib.Workflow.RoleMembership extends %Persistent, %XML.Adaptor

Manages the many-to-many relationship of workflow Users and Roles. Each instance represents the association of a specific User with a specific Role.


Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 4 1 2


Ranking Role Title User

%AddToSaveSet %AddToSyncSet %BMEBuilt %BuildIndicesAsync
%BuildIndicesAsyncResponse %CheckConstraints %CheckConstraintsForExtent %ClassIsLatestVersion
%ClassName %ComposeOid %ConstructClone %Delete
%DeleteExtent %DeleteId %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %Exists %ExistsId %Extends
%GUID %GUIDSet %GetLock %GetParameter
%GetSwizzleObject %Id %InsertBatch %IsA
%IsModified %IsNull %KillExtent %KillExtentData
%LoadFromMemory %LockExtent %LockId %New
%NormalizeObject %ObjectIsNull %ObjectModified %Oid
%OnBeforeAddToSync %OnDetermineClass %Open %OpenId
%OriginalNamespace %PackageName %PhysicalAddress %PurgeIndices
%Reload %RemoveFromSaveSet %ResolveConcurrencyConflict %RollBack
%Save %SaveDirect %SaveIndices %SerializeObject
%SetModified %SortBegin %SortEnd %SyncObjectIn
%SyncTransport %UnlockExtent %UnlockId %ValidateIndices
%ValidateObject XMLDTD XMLExport XMLExportToStream
XMLExportToString XMLNew XMLSchema XMLSchemaNamespace


• parameter XMLNAME = "member";
This parameter provides the default XMLNAME for the class. If it is empty then the class name will be used to construct a default XML name. The default XMLNAME is used as the top level tag when exporting objects and the export context did not provide an XML container name.


• property Ranking as %Integer(MINVAL=1,XMLNAME="ranking",XMLPROJECTION="attribute");
Defines a ranking value (1 is highest ranking) for members of a Role. The Workflow Engine uses this value to help with task distribution.
• property Role as RoleDefinition(XMLNAME="roleName",XMLPROJECTION="attribute",XMLREFERENCE="ID") [ SqlFieldName = RoleName ];
Role involved in the relationship.
• property Title as %String(MAXLEN=128,XMLNAME="title",XMLPROJECTION="attribute");
(Optional) Defines a title for a given user within a role.
For example, a role member could be designated as the "Manager" of the role. A Workflow can make use of this designation when distributing tasks.
• property User as UserDefinition(XMLNAME="userName",XMLPROJECTION="attribute",XMLREFERENCE="ID") [ SqlFieldName = UserName ];
User that belongs to the associated Role.


•index (ID on Role,User) [IdKey];


•foreignkey RoleKey (Role) references EnsLib.Workflow.RoleDefinition (ID) OnDelete: cascade; OnUpdate: noaction
•foreignkey UserKey (User) references EnsLib.Workflow.UserDefinition (ID) OnDelete: cascade; OnUpdate: noaction