SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
Customizing Workflows in 
Vijayaratha Vijayasingam, Lakmali Baminiwatta 
WSO2 
WSO2 API Manager 
October, 2014
* 
About the Presenter(s) 
Lakamali joined WSO2 in September 2011. She is 
a senior software engineer in the WSO2 API 
Manager team where she mainly focuses on the 
development of the product. 
Ratha joined WSO2 in June 2008. She is a Senior 
Software engineer in the WSO2 API Manager 
team. In addition to her product development 
efforts she has also been a part of several onsite 
customer engagements.
* 
About WSO2 
๏ Global enterprise, founded in 2005 by 
acknowledged leaders in XML, web 
services technologies, standards and 
open source 
๏ Provides only open source platform-as-a- 
service for private, public and hybrid 
cloud deployments 
๏ All WSO2 products are 100% open 
source and released under the Apache 
License Version 2.0. 
๏ Is an Active Member of OASIS, Cloud 
Security Alliance, OSGi Alliance, AMQP 
Working Group, OpenID Foundation 
and W3C. 
๏ Driven by Innovation 
๏ Launched first open source API 
Management solution in 2012 
๏ Launched App Factory in 2Q 2013 
๏ Launched Enterprise Store and 
first open source Mobile solution 
in 4Q 2013
* 
What WSO2 delivers
* 
Agenda 
๏ API Management - Introduction 
๏ Workflow extensions. Why are they important? 
๏ Workflow integration capabilities in WSO2APIManager 
๏ Workflow support for multi tenants 
๏ Customizing workflows 
๏ Customizing the workflow executor 
๏ Future enhancements 
๏ Demo
* 
APIs meet SOA
* 
API Management 
A Managed API is: 
๏ Actively advertised and subscribe-able 
๏ Available with SLAs 
๏ Secured, authenticated, authorized and protected 
๏ Monitored and monetized with analytics
* 
API Management
* 
Workflow extensions. Why are 
they important? 
Workflow - Describes the tasks, procedural steps, organizations or 
people involved, required input/output , and tools needed for each 
step in a business process. 
๏ Governance 
๏ Auditing 
๏ Extensions
* 
Workflow integration in WSO2 
API Manager 1.7.0 
๏ User Sign-Up 
๏ Application Creation 
๏ Application Registration 
๏ API Subscription
* 
How it works...
* 
Workflow trigger action 
๏ workflowExternalRef - A unique ID which maps the 
internal workflow reference to the external workflow 
instance. 
๏ callbackURL - Where to call back when the workflow 
completes.
* 
Workflow complete action 
๏ Supports both SOAP and REST 
๏ Secured through HTTP Basic Authentication 
๏ 
๏ Expected parameters - 
๏ workflowReference 
๏ status - APPROVED/REJECTED 
๏ description - Human Readable Description
* 
Workflow complete action... 
REST 
Authorization:Basic YWRtaW46YWRtaW4= 
workflowReference=b530be39-9174-43b3-acb3- 
2603a223b094&status=APPROVED&description=DESCRIP 
TION 
SOAP
* 
Workflow configuration 
๏ /_system/governance/apimgt/applicationdata/workflow-extensions.xml
* 
Workflow support for multi 
tenants 
๏ Allows different tenants to define their own custom 
workflows. 
๏ Allows to define tenant specific human tasks.
* 
Customizing workflows - When 
to do What? 
๏ Customizing the Workflow Executor 
๏ When you need to change the workflow logic 
๏ When you need to change the Data Formats 
๏ Customizing the Business Process 
๏ When you are happy with the Data Formats 
and need to change only the business flow
* 
Customizing the Workflow 
Executor 
/** 
* This is the class that should be extended by each 
workflow executor implementation. 
*/ 
public abstract class WorkflowExecutor { 
/** 
* The Application Registration Web Service Executor. 
*/ 
public class ApplicationRegistrationWSWorkflowExecutor 
extends WorkflowExecutor{
* 
Customizing the Workflow 
Executor - Methods to Override 
//Logic to execute the workflow 
public void execute(WorkflowDTO workflowDTO).. { .. 
//Logic to complete the workflow 
public void complete(WorkflowDTO workflowDTO)..{ .. 
//Returns the workflow type - ex: WF_TYPE_AM_USER_SIGNUP 
public String getWorkflowType() { .. 
//Used to get workflow details 
public List<WorkflowDTO> getWorkflowDetails(String 
workflowStatus) .. { ..
* 
Customizing the Workflow 
Executor 
Send an email to Administrator for approval 
Send Email to Administrator
* 
Sending an email to Administrator upon 
Application Registration 
๏ Write a new executor extending 
ApplicationRegistrationWSWorkflowExecutor 
public class AppRegistrationEmailSender extends 
ApplicationRegistrationWSWorkflowExecutor { 
๏ Add private String attributes and public getters and setters for email 
properties (adminEmail, emailAddress, emailPassword) 
๏ Override execute(WorkflowDTO workflowDTO) method and implement 
email sending logic. Finally invoke super.execute(workflowDTO). 
public void execute(WorkflowDTO workflowDTO) { 
sendEmail(adminEmail, emailAddress, emailPassword); 
super.execute(workflowDTO); 
}
* 
Demo
* 
Customizing the Business Process
* 
Customizing the Business Process 
๏ WSO2 Developer Studio - Business Process Editor 
Subscription Creation 
Default Flow 
Subscription Creation 
Custom Flow
* 
Executing the Business Processes
* 
Demo
* 
Workflow Extensions - Future 
Enhancements 
๏ API Lifecycle State Change 
๏ More coming up in future releases...
* 
Documentation 
๏ https://docs.wso2. 
com/display/AM170/Adding+Workflow+Extensions
* 
Questions?
* 
Business Model
* 
Call to action page 
๏ Product documentation home page(http://docs.wso2. 
org/display/AM160/WSO2+API+Manager+Documentati 
on) 
๏ Workflow Extensions Documentation (https://docs. 
wso2.org/display/AM160/Workflow+Extensions) 
๏ Product home page(http://wso2.com/products/api-manager/) 
๏ WSO2 API Manager Webinar Series (http://wso2. 
com/landing/wso2-apim-webinar-series/)
*
*
Contact us !

Contenu connexe

Tendances

Extensible API Management
Extensible API ManagementExtensible API Management
Extensible API Management
WSO2
 
Getting Started with the WSO2 API Manager
Getting Started with the WSO2 API ManagerGetting Started with the WSO2 API Manager
Getting Started with the WSO2 API Manager
WSO2
 
OAuth based reference architecture for API Management
OAuth based reference architecture for API ManagementOAuth based reference architecture for API Management
OAuth based reference architecture for API Management
WSO2
 
How to Build, Manage, and Promote APIs
How to Build, Manage, and Promote APIsHow to Build, Manage, and Promote APIs
How to Build, Manage, and Promote APIs
WSO2
 
Restful Integration with WSO2 ESB
Restful Integration with WSO2 ESB Restful Integration with WSO2 ESB
Restful Integration with WSO2 ESB
WSO2
 
Wmq wmb dist migration v1 030310
Wmq wmb dist migration v1 030310Wmq wmb dist migration v1 030310
Wmq wmb dist migration v1 030310
karthickmsit
 
Managing your Business APIs is using WSO2 API Manager
Managing your Business APIs is using WSO2 API Manager Managing your Business APIs is using WSO2 API Manager
Managing your Business APIs is using WSO2 API Manager
WSO2
 

Tendances (20)

Wso2 API Manager Fundamentals
Wso2 API Manager FundamentalsWso2 API Manager Fundamentals
Wso2 API Manager Fundamentals
 
[Webinar] WSO2 API Microgateway with Okta as Key Manager
[Webinar] WSO2 API Microgateway with Okta as Key Manager[Webinar] WSO2 API Microgateway with Okta as Key Manager
[Webinar] WSO2 API Microgateway with Okta as Key Manager
 
Extensible API Management
Extensible API ManagementExtensible API Management
Extensible API Management
 
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
Workflows in WSO2 API Manager - WSO2 API Manager Community Call (12/15/2021)
 
Getting Started with the WSO2 API Manager
Getting Started with the WSO2 API ManagerGetting Started with the WSO2 API Manager
Getting Started with the WSO2 API Manager
 
[WSO2Con Asia 2018] Managing API Integrations with WSO2 API Manager
[WSO2Con Asia 2018] Managing API Integrations with WSO2 API Manager[WSO2Con Asia 2018] Managing API Integrations with WSO2 API Manager
[WSO2Con Asia 2018] Managing API Integrations with WSO2 API Manager
 
Using a Third Party Key Management System with WSO2 API Manager
Using a Third Party Key Management System with WSO2 API ManagerUsing a Third Party Key Management System with WSO2 API Manager
Using a Third Party Key Management System with WSO2 API Manager
 
OAuth based reference architecture for API Management
OAuth based reference architecture for API ManagementOAuth based reference architecture for API Management
OAuth based reference architecture for API Management
 
Highlights of WSO2 API Manager 4.0.0
Highlights of WSO2 API Manager 4.0.0Highlights of WSO2 API Manager 4.0.0
Highlights of WSO2 API Manager 4.0.0
 
Lessons from the Trenches: Building an API-Centric Architecture
Lessons from the Trenches: Building an API-Centric ArchitectureLessons from the Trenches: Building an API-Centric Architecture
Lessons from the Trenches: Building an API-Centric Architecture
 
How to Build, Manage, and Promote APIs
How to Build, Manage, and Promote APIsHow to Build, Manage, and Promote APIs
How to Build, Manage, and Promote APIs
 
WSO2 Product Release Webinar - WSO2 App Factory 2.1
WSO2 Product Release Webinar - WSO2 App Factory 2.1WSO2 Product Release Webinar - WSO2 App Factory 2.1
WSO2 Product Release Webinar - WSO2 App Factory 2.1
 
Restful Integration with WSO2 ESB
Restful Integration with WSO2 ESB Restful Integration with WSO2 ESB
Restful Integration with WSO2 ESB
 
Create and Manage APIs with API Connect, Swagger and Bluemix
Create and Manage APIs with API Connect, Swagger and BluemixCreate and Manage APIs with API Connect, Swagger and Bluemix
Create and Manage APIs with API Connect, Swagger and Bluemix
 
Wmq wmb dist migration v1 030310
Wmq wmb dist migration v1 030310Wmq wmb dist migration v1 030310
Wmq wmb dist migration v1 030310
 
WSO2 API Microgateway for Easier Development and Greater Scalability
WSO2 API Microgateway for Easier Development and Greater ScalabilityWSO2 API Microgateway for Easier Development and Greater Scalability
WSO2 API Microgateway for Easier Development and Greater Scalability
 
WSO2Con EU 2015: Extending and Customizing WSO2 API Manager
WSO2Con EU 2015: Extending and Customizing WSO2 API ManagerWSO2Con EU 2015: Extending and Customizing WSO2 API Manager
WSO2Con EU 2015: Extending and Customizing WSO2 API Manager
 
Managing your Business APIs is using WSO2 API Manager
Managing your Business APIs is using WSO2 API Manager Managing your Business APIs is using WSO2 API Manager
Managing your Business APIs is using WSO2 API Manager
 
The Swagger Format becomes the Open API Specification: Standardizing descript...
The Swagger Format becomes the Open API Specification: Standardizing descript...The Swagger Format becomes the Open API Specification: Standardizing descript...
The Swagger Format becomes the Open API Specification: Standardizing descript...
 
API Webinar November 18th 2014
API Webinar November 18th 2014API Webinar November 18th 2014
API Webinar November 18th 2014
 

Similaire à Customizing workflows in WSO2 API Manager

Introducing API Manager 1.7
Introducing API Manager 1.7 Introducing API Manager 1.7
Introducing API Manager 1.7
WSO2
 
Introduction to WSO2 Developer Studio
Introduction to WSO2 Developer Studio Introduction to WSO2 Developer Studio
Introduction to WSO2 Developer Studio
WSO2
 
Building your own PaaS using Apache Stratos
Building your own PaaS using Apache Stratos Building your own PaaS using Apache Stratos
Building your own PaaS using Apache Stratos
WSO2
 
Best Practices with WSO2 Developer Studio
Best Practices with WSO2 Developer Studio Best Practices with WSO2 Developer Studio
Best Practices with WSO2 Developer Studio
WSO2
 
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
WSO2
 
Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5
WSO2
 
Introduction to WSO2 Integration Platform
Introduction to WSO2 Integration PlatformIntroduction to WSO2 Integration Platform
Introduction to WSO2 Integration Platform
WSO2
 
Prince st Tech Talk - MABI Framework
Prince st Tech Talk - MABI FrameworkPrince st Tech Talk - MABI Framework
Prince st Tech Talk - MABI Framework
Photis Patriotis
 
Integrating with SAP FIX and HL7
Integrating with SAP FIX and HL7Integrating with SAP FIX and HL7
Integrating with SAP FIX and HL7
WSO2
 
Expose a Rest Service to the web within minutes with WSO2 App Factory
Expose a Rest Service to the web within minutes with WSO2 App Factory Expose a Rest Service to the web within minutes with WSO2 App Factory
Expose a Rest Service to the web within minutes with WSO2 App Factory
WSO2
 

Similaire à Customizing workflows in WSO2 API Manager (20)

Introducing API Manager 1.7
Introducing API Manager 1.7 Introducing API Manager 1.7
Introducing API Manager 1.7
 
Introduction to WSO2 Developer Studio
Introduction to WSO2 Developer Studio Introduction to WSO2 Developer Studio
Introduction to WSO2 Developer Studio
 
Leveraging federation capabilities of identity server for api gateway
Leveraging federation capabilities  of identity server for api gatewayLeveraging federation capabilities  of identity server for api gateway
Leveraging federation capabilities of identity server for api gateway
 
Building your own PaaS using Apache Stratos
Building your own PaaS using Apache Stratos Building your own PaaS using Apache Stratos
Building your own PaaS using Apache Stratos
 
Building your own PaaS using Apache Stratos - Webinar 2014-04-10
Building your own PaaS using Apache Stratos - Webinar 2014-04-10Building your own PaaS using Apache Stratos - Webinar 2014-04-10
Building your own PaaS using Apache Stratos - Webinar 2014-04-10
 
Best Practices with WSO2 Developer Studio
Best Practices with WSO2 Developer Studio Best Practices with WSO2 Developer Studio
Best Practices with WSO2 Developer Studio
 
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
 
Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5Product Release Webinar- WSO2 Developer Studio 3.5
Product Release Webinar- WSO2 Developer Studio 3.5
 
Introduction to WSO2 Integration Platform
Introduction to WSO2 Integration PlatformIntroduction to WSO2 Integration Platform
Introduction to WSO2 Integration Platform
 
Extensible Api Management with WSO2 API Manager
Extensible Api Management with WSO2 API ManagerExtensible Api Management with WSO2 API Manager
Extensible Api Management with WSO2 API Manager
 
Prince st Tech Talk - MABI Framework
Prince st Tech Talk - MABI FrameworkPrince st Tech Talk - MABI Framework
Prince st Tech Talk - MABI Framework
 
Prince sttalkv5
Prince sttalkv5Prince sttalkv5
Prince sttalkv5
 
Developing Apps with Azure AD
Developing Apps with Azure ADDeveloping Apps with Azure AD
Developing Apps with Azure AD
 
Os Johnson
Os JohnsonOs Johnson
Os Johnson
 
Building workflow solution with Microsoft Azure and Cloud | Integration Monday
Building workflow solution with Microsoft Azure and Cloud | Integration MondayBuilding workflow solution with Microsoft Azure and Cloud | Integration Monday
Building workflow solution with Microsoft Azure and Cloud | Integration Monday
 
vCenter Orchestrator APIs
vCenter Orchestrator APIsvCenter Orchestrator APIs
vCenter Orchestrator APIs
 
Web automation with #d8rules (European Drupal Days 2015)
Web automation with #d8rules (European Drupal Days 2015)Web automation with #d8rules (European Drupal Days 2015)
Web automation with #d8rules (European Drupal Days 2015)
 
Getting Started with API Management
Getting Started with API ManagementGetting Started with API Management
Getting Started with API Management
 
Integrating with SAP FIX and HL7
Integrating with SAP FIX and HL7Integrating with SAP FIX and HL7
Integrating with SAP FIX and HL7
 
Expose a Rest Service to the web within minutes with WSO2 App Factory
Expose a Rest Service to the web within minutes with WSO2 App Factory Expose a Rest Service to the web within minutes with WSO2 App Factory
Expose a Rest Service to the web within minutes with WSO2 App Factory
 

Plus de WSO2

Plus de WSO2 (20)

Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
WSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the CloudWSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the Cloud
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital Businesses
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Customizing workflows in WSO2 API Manager

  • 1. Customizing Workflows in Vijayaratha Vijayasingam, Lakmali Baminiwatta WSO2 WSO2 API Manager October, 2014
  • 2. * About the Presenter(s) Lakamali joined WSO2 in September 2011. She is a senior software engineer in the WSO2 API Manager team where she mainly focuses on the development of the product. Ratha joined WSO2 in June 2008. She is a Senior Software engineer in the WSO2 API Manager team. In addition to her product development efforts she has also been a part of several onsite customer engagements.
  • 3. * About WSO2 ๏ Global enterprise, founded in 2005 by acknowledged leaders in XML, web services technologies, standards and open source ๏ Provides only open source platform-as-a- service for private, public and hybrid cloud deployments ๏ All WSO2 products are 100% open source and released under the Apache License Version 2.0. ๏ Is an Active Member of OASIS, Cloud Security Alliance, OSGi Alliance, AMQP Working Group, OpenID Foundation and W3C. ๏ Driven by Innovation ๏ Launched first open source API Management solution in 2012 ๏ Launched App Factory in 2Q 2013 ๏ Launched Enterprise Store and first open source Mobile solution in 4Q 2013
  • 4. * What WSO2 delivers
  • 5. * Agenda ๏ API Management - Introduction ๏ Workflow extensions. Why are they important? ๏ Workflow integration capabilities in WSO2APIManager ๏ Workflow support for multi tenants ๏ Customizing workflows ๏ Customizing the workflow executor ๏ Future enhancements ๏ Demo
  • 7. * API Management A Managed API is: ๏ Actively advertised and subscribe-able ๏ Available with SLAs ๏ Secured, authenticated, authorized and protected ๏ Monitored and monetized with analytics
  • 9. * Workflow extensions. Why are they important? Workflow - Describes the tasks, procedural steps, organizations or people involved, required input/output , and tools needed for each step in a business process. ๏ Governance ๏ Auditing ๏ Extensions
  • 10. * Workflow integration in WSO2 API Manager 1.7.0 ๏ User Sign-Up ๏ Application Creation ๏ Application Registration ๏ API Subscription
  • 11. * How it works...
  • 12. * Workflow trigger action ๏ workflowExternalRef - A unique ID which maps the internal workflow reference to the external workflow instance. ๏ callbackURL - Where to call back when the workflow completes.
  • 13. * Workflow complete action ๏ Supports both SOAP and REST ๏ Secured through HTTP Basic Authentication ๏ ๏ Expected parameters - ๏ workflowReference ๏ status - APPROVED/REJECTED ๏ description - Human Readable Description
  • 14. * Workflow complete action... REST Authorization:Basic YWRtaW46YWRtaW4= workflowReference=b530be39-9174-43b3-acb3- 2603a223b094&status=APPROVED&description=DESCRIP TION SOAP
  • 15. * Workflow configuration ๏ /_system/governance/apimgt/applicationdata/workflow-extensions.xml
  • 16. * Workflow support for multi tenants ๏ Allows different tenants to define their own custom workflows. ๏ Allows to define tenant specific human tasks.
  • 17. * Customizing workflows - When to do What? ๏ Customizing the Workflow Executor ๏ When you need to change the workflow logic ๏ When you need to change the Data Formats ๏ Customizing the Business Process ๏ When you are happy with the Data Formats and need to change only the business flow
  • 18. * Customizing the Workflow Executor /** * This is the class that should be extended by each workflow executor implementation. */ public abstract class WorkflowExecutor { /** * The Application Registration Web Service Executor. */ public class ApplicationRegistrationWSWorkflowExecutor extends WorkflowExecutor{
  • 19. * Customizing the Workflow Executor - Methods to Override //Logic to execute the workflow public void execute(WorkflowDTO workflowDTO).. { .. //Logic to complete the workflow public void complete(WorkflowDTO workflowDTO)..{ .. //Returns the workflow type - ex: WF_TYPE_AM_USER_SIGNUP public String getWorkflowType() { .. //Used to get workflow details public List<WorkflowDTO> getWorkflowDetails(String workflowStatus) .. { ..
  • 20. * Customizing the Workflow Executor Send an email to Administrator for approval Send Email to Administrator
  • 21. * Sending an email to Administrator upon Application Registration ๏ Write a new executor extending ApplicationRegistrationWSWorkflowExecutor public class AppRegistrationEmailSender extends ApplicationRegistrationWSWorkflowExecutor { ๏ Add private String attributes and public getters and setters for email properties (adminEmail, emailAddress, emailPassword) ๏ Override execute(WorkflowDTO workflowDTO) method and implement email sending logic. Finally invoke super.execute(workflowDTO). public void execute(WorkflowDTO workflowDTO) { sendEmail(adminEmail, emailAddress, emailPassword); super.execute(workflowDTO); }
  • 23. * Customizing the Business Process
  • 24. * Customizing the Business Process ๏ WSO2 Developer Studio - Business Process Editor Subscription Creation Default Flow Subscription Creation Custom Flow
  • 25. * Executing the Business Processes
  • 27. * Workflow Extensions - Future Enhancements ๏ API Lifecycle State Change ๏ More coming up in future releases...
  • 28. * Documentation ๏ https://docs.wso2. com/display/AM170/Adding+Workflow+Extensions
  • 31. * Call to action page ๏ Product documentation home page(http://docs.wso2. org/display/AM160/WSO2+API+Manager+Documentati on) ๏ Workflow Extensions Documentation (https://docs. wso2.org/display/AM160/Workflow+Extensions) ๏ Product home page(http://wso2.com/products/api-manager/) ๏ WSO2 API Manager Webinar Series (http://wso2. com/landing/wso2-apim-webinar-series/)
  • 32. *
  • 33. *