Operation Activity Snippet

Now that we have added the Lookup and form activities to the workflow, the next step is to add an Operation activity to it. Operation activities are protected blocks of code based on the EmpowerID workflow authorization framework used to determine if the current user in a given workflow process can execute the code contained in that activity against the workflow's target object. Each operation activity is derived from the OperationWorkflowBase activity, which exposes a number of methods and other members implemented by the deriving activities. Workflow Studio provides templates that allow for the quick creation of several different types of operation activities, depending on the number of resources involved in the workflow process. In this tutorial, our workflow allows the attributes of a single resource—an EmpowerID Person—to be edited. Thus, to keep unauthorized users from being able to edit those attributes, we need to add a Single Multi-Operation Activity to the workflow. While you can create your own Multi-Operation activities, for the purpose of this tutorial, we will use the stock Edit Person Multi-Operations Operation Activity that EmpowerID provides for protecting unauthorized changes against EmpowerID people.

Â