WSO2 Business Process Server v3.1.0 Documentation

##### Overview

- Home
- Release Note
- WS-BPEL Compliance
- License

##### Downloads

- Releases

##### Installation Guide

- Installing WSO2 BPS

##### Quick Start Guide

- Modeling the process
- Deploying the process
- Testing the process

##### User Guide

- Deploying BPEL Processes
- Deploying Human Tasks
- Managing BPEL processes
- Managing BPEL process instances
- QoS for BPEL processes
- Securing BPEL processes
- Invoking secured partner services
- Versioning
- Management API

##### Human Task Guide

- Human Tasks Quick Start Guide
- Deploying HumanTasks
- Managing Tasks
- Developing a Human Task Artifact
- Human Task Management and Configuration
- Human Task Concepts

##### Administrator Guide

- External data sources Configuration
- Registry Configuration
- Events
- Unified Endpoints
- BPEL Extensions
- Transaction Factory Configuration
- Message Exchange Interceptors
- OpenJPA specific properties
- JMS Transport Configuration
- Process Instance Cleanup Tasks
- Process Hydration and Dehydration
- Enabling Peer-to-Peer(P2P) Communication
- Setting up a BPS Cluster

##### Best Practices

- Process Deployment Best Practices

##### Concepts

- Process Versioning
- Process instance events
- Partner links

##### WS-BPEL Extensions

- Activity Failure and Recovery
- Extension Activities and Extensible Assign Operations
- XPath Extensions
- Iterable ForEach
- Flexible Assigns
- BPEL4People Extension

##### Samples

- HelloWorld
- If-Else
- ForEach
- While
- Repeat Until
- Flow and Links
- Pick
- Synchronous and Asynchronous Service Invocations
- Fault Handling
- Split
- XslTransform
- Compensation Handler
- Event Handler

##### Resources

- FAQ
- External Articles
- Library
- Source Code

##### Community

- Forum
- Mailing Lists

##### Project Information

- Issue Tracking

# Human Task Quick Start Guide

This quick start guide will list the basic steps to deploy, create and manage Human Tasks in WSO2 BPS 3.1.0

### Table of Content

- Deploying a Human Task Artifact
- Creating User Roles and Users
- Creating Tasks
- Listing Human Tasks Instances

## Human Task Artifact Deployment

Once you have developed your task artifact you can deploy it following the steps given in the Human Task deployment guide.

You can use the sample task configuration packed with the WSO2 BPS 3.1.0 which could be found in BPS_HOME/repository/samples/humantask/ClaimsApprovalTask.zip

## Creating User Roles and Users

Before you can create tasks, you need to create users and roles associated with your task definition. The logical people groups will be associated with the Carbon roles. Hence you need to create Carbon roles for each logical people group provided in your task configuration. Once the roles are created users who are intended to be associated with those roles should be added.

1. Adding Roles

   In the management console go to Configure > Users and Roles. You can add roles by clicking on Roles link. The add new role screen would take you to a simple wizard to create a new role in BPS.

   Once you have provided the matching role names in the task configuration you should associate minimum permissions for the particular role. If the role being added is intended only to work with task items it should be associated only with Login and View Task List permissions only. Refer the image below for more details.

2. Adding Users

   In the management console go to Configure > Users and Roles. You can add users by clicking on Users link. The add new user screen would take you to a simple wizard to create a new user in BPS.

   Once you have provided the user name and the password you should associate the user with the particular role he should be added to. Refer the image below for more details.

## Creating Tasks

Once the task is deployed and the related roles and users are created, it is ready to relieve task creation messages. Task instances could be created in two methods.

1. Invoking a BPEL process referring to the human task as a people activity construct.
2. Invoking the Human Task web service directly.

## Viewing tasks and task life cycle

The list of tasks related to a particular user can be viewed by visiting the task list page

Refer Managing Human Tasks guide for more information about task operations and management.