This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Claims Approval Task with Deadline Sample
Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation:
<PRODUCT_HOME>/
repository/samples/
directory that includes all Business Process profile samples and their artifacts is changed to<EI_HOME>/
samples/business-process/
.
This sample explains on how to define a deadline with a human task. In this sample, the ClaimApprovalTask sample has been modified and defined with the deadline duration of 1 minute for the tasks with a claimed amount less than 10,000. In the event that the particular Claim Approval Task is overdue, the potential owners are sent a notification.
The following configuration snippet has been added to the ApproveClaim task.
Prerequisites
- Try the ClaimApprovalTask sample to get a better understanding on human tasks and how they work.
- Download and install WSO2 Enterprise Integrator (EI). For instructions, see Installation Guide.
Setting up the sample
- Set up the sample as mentioned in the ClaimApprovalTask sample topic.
- Create the roles (regionalClerksRole and regionalManagerRole) as mentioned in the ClaimApprovalTask sample topic.
- Create users for the respective roles and assign those users to the roles as mentioned in the ClaimApprovalTask sample topic.
Deploy the sample
If you already deployed a human task sample, delete the relevant ZIP file from the <EI_HOME>/samples/business-process/humantasks
directory to undeploy it before deploying another sample.
- The
ClaimsApprovalProcess.zip
BPEL package has to be deployed as mentioned in the ClaimApprovalTask sample page. This BPEL package can be found in the<EI_HOME>/samples/bsusiness-process/bpel
directory. - The ClaimsApprovalTaskWithDeadline.zip HumanTask package has to be deployed as mentioned in the ClaimApprovalTask sample page. This HumanTask package can be found in the
<EI_HOME>/samples/business-process/humantask
directory.
Running the sample
This sample has to be run as already mentioned in the ClaimApprovalTask sample. See Running the Sample for details.