Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [EnsLib] >  [Workflow] >  [UserDefinition]
Private  Storage   

persistent class EnsLib.Workflow.UserDefinition extends %Persistent, %XML.Adaptor, %CSP.Util.AutoForm

Defines a workflow user.
Typically the user name matches a system user name but this is not required.
Workflow users that are not registered system users will not be able to log into the Workflow portal and check the status of their worklist.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 3 7 1 2


Summary

Properties
FullName IsActive Name

Methods
%AddToSaveSet %AddToSyncSet %BMEBuilt %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 %OnDelete
%OnDetermineClass %Open %OpenId %OriginalNamespace
%PackageName %PhysicalAddress %PurgeIndices %Reload
%RemoveFromSaveSet %ResolveConcurrencyConflict %RollBack %Save
%SaveDirect %SaveIndices %SerializeObject %SetModified
%SortBegin %SortEnd %SyncObjectIn %SyncTransport
%UnlockExtent %UnlockId %ValidateIndices %ValidateObject
CreateInstance CreateUser DeleteUser DispatchSubmit
DoSubmit DrawFormButtons DrawHTMLForm DrawHTMLFormFields
DrawHTMLTable GetComboBoxHTML GetFormError GetRoleSet
OnDefineButtons OnSubmit ProcessSubmit SetFormError
Submit XMLDTD XMLExport XMLExportToStream
XMLExportToString XMLNew XMLSchema XMLSchemaNamespace
XMLSchemaType


Parameters

• parameter DOMAIN = "Ensemble";
Use our own domain for localization

Properties

• property FullName as %String(CAPTION="@EnsColumns:FullName@Full Name",MAXLEN=128,XMLNAME="fullname",XMLPROJECTION="attribute");
(Optional) Full name (i.e., "Presley,Elvis") for User.
• property IsActive as %Boolean(CAPTION="@EnsColumns:IsActive@Is Active",XMLNAME="isActive",XMLPROJECTION="attribute") [ InitialExpression = 1 ];
Indicates if this user is currently active.
• property Name as %String(CAPTION="@Ensemble:Name@Name",MAXLEN=128,XMLNAME="name",XMLPROJECTION="attribute") [ Required ];
The user name of this Workflow user.

Methods

• classmethod %OnDelete(oid As %ObjectIdentity) as %Status
This callback method is invoked by the %Delete method to provide notification that the object specified by oid is being deleted.

If this method returns an error then the object will not be deleted.

• classmethod CreateUser(pUserName As %String, pFullName As %String = "") as %Status
Create a Workflow user
• classmethod DeleteUser(pUserName As %String) as %Status
Delete a Workflow user
• classmethod DrawHTMLFormFields(pObj As %RegisteredObject) as %Status
• method GetRoleSet() as %ResultSet
Returns a %ResultSet of all roles for this user. The returned result set is executed and ready to be read from.
• method OnSubmit(ByRef pID As %String, pSubmit As %String) as %Status
This callback is called when this form is submitted. pID is the ID value associated with the form. The default implementation will perform a Save if the AutoForm is a persistent object.
pSubmit is the name of the submit button (i.e., $AUTOFORM_SAVE).

Indices

•index (ID on Name) [IdKey];

Triggers

•trigger SQLDelete (BEFORE event DELETE)
SQL Delete Trigger
•trigger SQLUpdate (BEFORE event UPDATE)
SQL Update Trigger


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.