This tag determines whether a user has the necessary permissions to perform a task in a given workflow. After the tag is executed, the result is stored in a result object that’s named by the var
attribute. Other tags can access the result object’s properties.
Attributes
The following attributes are defined for the pws:canFireTaskOutcome
tag:
Attribute | Description | Required? |
---|---|---|
| Names the Boolean result object that identifies whether the user can perform the specified task. | yes |
| The | yes |
Result Object Property
The following property is defined for the result object produced by the pws:canFireTaskOutcome
tag:
Property | Description |
---|---|
| A Boolean property that indicates whether the user has permission to perform the task. |
Example
<pws:canFireTaskOutcome var="taskPermission" taskInfo="deleteProject"/>
<c:choose>
<c:when test="${taskPermission=true}">
Your next task is to delete the project.<br>
</c:when>
<c:otherwise>
There are no tasks for you right now.
</c:otherwise>
</c:choose>