Showing posts with label Business Process. Show all posts
Showing posts with label Business Process. Show all posts

Sunday, March 22, 2015

How To integrate WSO2 BPS server with WSO2 API Manager


Introduction
In this tutorial I will show how to integrate WSO2 API Manager with WSO2 BPS Server

Use Case

Company A  is API publishing company and this company want to manage the subscribers come into their API Store . In order to make this use case success we use WSO2 Business Process Server to handle the requests come into the store.

Types of Requests Handle by the BPS
  • User Signup Workflow 
  • Application Creation Workflow
  • Application Registration Workflow
  • API Subscription Workflow

Prerequisite


  • WSO2 API Manager (you can Download from here) .
  • WSO2 Business Process Server ( you can Download it from here) .

Deployment Diagram


Deployment Diagram




  • Unzip the WSO2 API Manager and start the server .
  • Unzip the WSO2 BPS and change the portoffset to 2 from the carbon.xml in the <BPS_Home>/repository/conf.
  • Copy <AM_HOME>/business-process/epr folder into the <BPS_HOME>/repository/conf folder and start the server.
  • Log into the BPS management Console from https://<hostname>:9445/carbon .
  • Deploy Human Task Zip file and the Business Process zip file from the <AM_Home>/business-process/user-signup .
  • Log into the management console in WSO2 API Manager from https://<hostname>:9443/carbon.
  • find workflow-extension.xml from registry on /_system/governance/apimgt/applicationdata/workflow-extensions.xml and change the configurations according to following workflow-extensions.xml
workflow-extenstions.xml

After successfully configured the server you can check the functionality as follows.

  • Go to API Store from https://<hostname>:9443/store
  • Go to signup and Create subscriber.
  • After Do Signup you'll acknowledge with following message from Store
Signup Notification From Store
After this step admin can approve your account from login to the admin-dashboard in API Manager.