This documentation is for WSO2 Identity Server 5.1.0 . View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

The instructions in this section guides you through the process of adding a new workflow in the WSO2 Identity Server. These workflows provide a means of fine tuning the process of approving accounts.

To add a new workflow, do the following.

  1. On the Main tab in the Management Console, click Add under Workflow Definitions in the Manage section.
  2. Enter the name and description of the workflow and click Next.
     
  3. Set the levels of approval that are required. For instance, you may require that users with a Manager role must first approve user accounts followed by approval from users with a SeniorManager role. To set up this scenario, you must do the following.
    1. Create the required roles. In this scenario, you would have to create the Manager and SeniorManager roles. To do this, follow the instructions available in the Configuring Roles and Permissions topic.

      To enable users assigned to these roles to approve human tasks, the following permissions need to be enabled:

      • Login
      • Human Tasks>View Task List
      • Workflow Management>BPS Profiles>View 
    2. Assign users to the roles that you created. See Configuring Users for more information on how to do this.
    3. Add an approval level by clicking the Add Approval Step button. Each approval step represents a user approving an account of another user. The user that approves the account can have a specific role or can simply be a specific user. In this scenario, users assigned to a specific role can do the account approval.
    4. You can search for the role in a specific user store by selecting the Search Roles radio button. Alternatively you can search for a specific user by selecting the Search Users radio button.
    5. Select the user store that your user or role resides in by choosing it from the Select Domain drop-down.
    6. Enter the role name or user name and click Search Roles.
    7. Select the check-box associated to the user name or role name that you require and click Add Selected Roles or Add Selected Users.
    8. Click Next to move to the next step.

       

      The Workflow Template seen above defines the template of a specific workflow. A template will have a specific flow where the parameters can be customized (eg. Send an email notification for some users, get approval from a user to continue). Identity Server supports custom templates that can be deployed as OSGi services. More information on writing workflow templates can be found here.

  4.  Fill in the deployment information of the template as described below. Use the screen capture as a guide for the sample values to enter. 

    AttributeDescription
    BPS ProfileName of the required BPS Profile. This field defines the deployment type of the workflow template. Other custom execution deployment types are also supported, where you will be able to select the desired executor for a given use case. (i.e Drop down will be appeared in the UI to select the required executor).
    Task Subject Subject of the workflow request for  approval
    Task DetailBody of the Workflow request for approval

    The same template can have multiple deployment types (eg. A notification template may have implementations with sending emails or sending human task notifications), whereas in some templates there will only be a single implementation.

  5. Click Finish to complete the process. You will be able to view the workflow you just added, by navigating to Workflow Definitions > List under the Manage Section.
  • No labels