Configuring Human Task Coordination
Enabling human task coordination
For the human task coordination to function properly, you need to enable task coordination at both the Task Parent and Task Processor. In WSO2 BPS, you can enable this feature in both Task Parent (B4P module) and Task Processor using the following configuration options. The following steps address human task processor configuration.
- Navigate to the
<PRODUCT_HOME>/repository/conf/
directory in your local machine and open the humantask.xml configuration file. Set theÂ
TaskCoordinationEnabled
entry to true.<HumanTaskCoordination> <TaskCoordinationEnabled>true</TaskCoordinationEnabled> </HumanTaskCoordination>
Use the following steps to enable HumanTask Coordination in the B4P module (Task Parent).
- Navigate to the
<PRODUCT_HOME>/repository/conf/
directory in your local machine and open the b4p-coordination-config.xml file. Set the
TaskCoordinationEnabled
entry to true.<HumanTaskCoordinationConfiguration> <TaskCoordinationEnabled>true</TaskCoordinationEnabled> </HumanTaskCoordinationConfiguration>
Creating a predefined user for authentication
Coordination Protocol Services and Registration service are implemented as WSO2 Carbon admin services. In order to access these services, a user needs to be authenticated to the system. In WSO2 BPS task coordination, these service are authenticated using a user created in BPS and configured within the config files.
Use the following instructions to create a role and a user.
Step 1: Create a role
- Start the BPS server If it is not started already.
- Go to the Configuration menu in the management console and navigate to Users and Roles > Role.
- Click "Add New Role".
- Enter a name for the role (e.g.: htcoordinatorRole) and click Next.
Select the following permissions for the newly created role.
These are minimum permission requirements.
- All Permissions \ Admin Permissions \ Login
- All Permissions \ Admin Permissions \ Manage \ HumanTask \ View Task List
- Click Finish.
Step 2: Create a user for the above created role
- Go to Configuration menu in the management console and navigate to Users and Roles > Users.
- Click "Add New User".
- Enter relevant values in the username and password fields.
- Click Next.
- Select the rolename defined above for the role
- Click Finish.
Step 3: Configure the above created user in b4p-coordination-config.xml
- Navigate to the
<PRODUCT_HOME>/repository/conf/
directory in your local machine and open the b4p-coordination-config.xml file. Set the username and password in the
TaskProtocolHandlerAuthentication
entry as follows.<TaskProtocolHandlerAuthentication> <Username>htcoor</Username> <Password>htcooradmin</Password> </TaskProtocolHandlerAuthentication>
Step 4: Configure the above created user in humantask.xml
- Navigate to theÂ
<PRODUCT_HOME>/repository/conf/
 directory and open the humantask.xml configuration file Set the username and password in the
RegistrationServiceAuthentication
entry as follows.Â<RegistrationServiceAuthentication> <Username>htcoor</Username> <Password>htcooradmin</Password> </RegistrationServiceAuthentication>
- You can configure two users for Humantask engine and B4P module.
- You can secure (encrypt) the plain text entries for the username and password in the configuration files using the WSO2 Secure vault tool. See advanced configuration section for this configuration.Â
- In a multitenant environment, a similar coordinator user should be created and their credentials must equal to the super tenant coordinator's username and password.