Useful Methods to determine whether a user is assigned to a record

29 04 2010

Just a quick post about two useful methods that one can use to determine whether a user is assigned to either a task or an approval workitem for any given record. They are both found in the WorkflowWorkItem class.

1) WorkflowWorkItem::isUserTaskOwner(Common record, WorkflowUser user = curuserid())
2) WorkflowWorkItem::isUserApprovalOwner(Common record, WorkflowUser user = curuserid())

These two methods are primarily used by workflow for populating the yellow workflow bar on your forms.

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: