Package com.orchestranetworks.workflow

# Class ActionPermissionsOnWorkflow

java.lang.Object
com.orchestranetworks.workflow.ActionPermissionsOnWorkflow

public class ActionPermissionsOnWorkflow extends Object
Defines permission rules for workflow administration and management. The default behavior for workflow permissions can be modified by extending this class.

Extended versions of this class need to be registered in file `module.xml` using a `<bean>` element located at `/module/beans`.

### Life cycle

This class is instantiated each time it is needed.

See Also:
  - `ProcessExecutionContext.WorkflowPermission`
  - `ActionPermissionsOnWorkflowContext`
  - Example of ActionPermissionsOnWorkflow

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ActionPermissionsOnWorkflow()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ActionPermission`
  `getActionPermission(ProcessExecutionContext.WorkflowPermission aWorkflowAction, ActionPermissionsOnWorkflowContext aContext)`
  Returns a resolved permission for the specified `action`.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ActionPermissionsOnWorkflow

    public ActionPermissionsOnWorkflow()

- ## Method Details

  - ### getActionPermission

    public ActionPermission getActionPermission(ProcessExecutionContext.WorkflowPermission aWorkflowAction, ActionPermissionsOnWorkflowContext aContext)
    Returns a resolved permission for the specified `action`.

    The default implementation of this method checks if the user belongs to the profile specified in the workflow model, at the location "WorkflowModel configuration".

    If this method is overridden, it replaces the default behavior but it is possible to call the `super` method to get the default resolution of the permission for the specified action.