Share via


modGetExecutePermissions

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Determines whether the current user is a member of a role that has execute permissions for a workflow event. Exists in the workflow-enabled database.

 [@WFTableName =] 'name', 
[@RowID =] 'id', 
[@UserName =] 'user_name'

Parameters

  • [@WFTableName =] 'name'
    Name of the workflow table.
  • [@RowID =] 'id'
    ID of the row that defines the workflow event.
  • [@UserName =] 'user_name'
    Domain\user name for the current user.

Return Value

Returns 1 if execute permissions are granted; otherwise, returns 0.

Example

The following example checks execute permissions for the workflow event with id = 18:

EXEC modGetExecutePermissions 'IssuesWorkflow', 18, 'somedomain\someuser'

See Also

Stored Procedures | Workflow Application Infrastructure | ModSystem Database Tables | Workflow-Enabled Database Tables | Views