SlideShare une entreprise Scribd logo
1  sur  29
Télécharger pour lire hors ligne
CenitHub
Chapter 4
Flows, Connections & Webhooks
Flows
A flow defines how data is processed by the execution of one or more
actions.
Data processing involve:
₋ An execution trigger to start the data processing.
₋ Data types.
₋ Translators.
₋ Connections & Webhooks, if the data is coming in to Cenit or going out of Cenit.
Flow: execution triggers
Flows processing can be manually
invoked or through the occurrence
of events.
Events are of two types:
- Observers: listen for properties
changes on records.
- Schedulers: they occurs
periodically.
Flow: execution triggers
Flows processing can be manually
invoked or through the occurrence
of events.
Events are of two types:
- Observers: listen for properties
changes on records.
- Schedulers: they occurs
periodically.
Flow: execution triggers
Flows processing can be manually
invoked or through the occurrence
of events.
Events are of two types:
- Observers: listen for properties
changes on records.
- Schedulers: they occurs
periodically.
Flow: translator
Every flow have a translator that
performs the main data processing.
Depending on the translator type a
flow can:
- Pull (import) data into Cenit
- Export data outside Cenit
- Update/Convert data inside Cenit
A flow must define a data type
unless its translator defines one.
Flow: translator
Every flow have a translator that
performs the main data processing.
Depending on the translator type a
flow can:
- Pull (import) data into Cenit
- Export data outside Cenit
- Update/Convert data inside Cenit
A flow must define a data type
unless its translator defines one.
Flow: scope
If a flow is not of type import then it
must define a scope for data processing.
The scope can be defined depending on
the flow event, translator data type or
the flow custom data type:
- Event source process only the record
who fire the event
- All records scope process all the
records
- Filter scope process the records
following some criteria.
Flow: scope
If a flow is not of type import then it
must define a scope for data processing.
The scope can be defined depending on
the flow event, translator data type or
the flow custom data type:
- Event source process only the record
who fire the event
- All records scope process all the
records
- Filter scope process the records
following some criteria.
Flow: scope
If a flow is not of type import then it
must define a scope for data processing.
The scope can be defined depending on
the flow event, translator data type or
the flow custom data type:
- Event source process only the record
who fire the event
- All records scope process all the
records
- Filter scope process the records
following some criteria.
Flow: scope
If a flow is not of type import then it
must define a scope for data processing.
The scope can be defined depending on
the flow event, translator data type or
the flow custom data type:
- Event source process only the record
who fire the event
- All records scope process all the
records
- Filter scope process the records
following some criteria.
Flow: update/convert
When the flow translator is of type
update/convert no further configuration
is needed beyond the scope.
The active option prevent the flow
processing even if its event is fired when
it is not checked.
Flow: import/export
When the flow translator is of type:
- Import, then the data will be pulled
into Cenit
- Export, then the data will be send
outside Cenit
In any case an end-point is needed to
pull or send the data.
An end-point is determined by a
connection and a webhook
Connections
A connection consist in an URL and a set of parameters, headers and template
parameters.
The connection URL, parameters and headers can be described by using Liquid
Templates.
The template parameters and its values are available in the Liquid Templates as
local variables so URL and its components can be computed dynamically.
Connection example: Twilio API
The URL to connect with the Twilio API have the following form:
https://api.twilio.com/2010-04-01/Accounts/xxxxx
where xxxxx is the user account SID, and the following headers should be provided:
- Accept-Charset: utf-8
- Accept: application/json
- Authorization: Basic yyyyy
where yyyyy is the base 64 format of the user account SID and the user
Authentication Token
Connection example: Twilio API
https://api.twilio.com/2010-04-01/Accounts/xxxxx
- Accept-Charset: utf-8
- Accept: application/json
- Authorization: Basic yyyyy
The values of xxxxx and yyyyy can be statically typed on the URL and headers but,
they must be updated every time the user credentials change.
Connection example: Twilio API
A better approach is to use template parameters and Liquid Templates:
https://api.twilio.com/2010-04-01/Accounts/{{account_sid}}
- Accept-Charset: utf-8
- Accept: application/json
- Authorization: Basic {% base64 (account_sid + ':' + auth_token) %}
Defining the template parameters account_sid and auth_token Cenit computes
dynamically the connection URL and its headers.
Webhooks example: Twilio API
The Twilio connection is just the base URL for the actions of the Twilio API, and
these way is how occurs almost in every API.
It is possible the same URL to indicate different actions depending on the HTTP
method, for example
https://api.twilio.com/2010-04-01/Accounts/xxxxx/Messages.json
send messages using the POST method but retrieve messages when using GET.
All those actions are defined as Webhooks.
Webhooks example: Twilio API
So a webhook is basically a path that completes the connection URL, and HTTP
method and can define also a set of headers, parameters and template
parameters.
The webhook path of the Twilio API will be:
- Messages.json by GET list the messages.
- Messages.json by POST send a message.
- Messages/{{id}}.json by GET retrieve a message with a SID.
Back to Flow
Since the webhook defines the action
the flow will submit to the end-point
then the webhook is primary over
connection.
It is possible to submit the same action
to several end-points, so the
connections are not specified directly
but through a connection role.
Back to Flow
Since the webhook defines the action
the flow will submit to the end-point
then the webhook is primary over
connection.
It is possible to submit the same action
to several end-points, so the
connections are not specified directly
but through a connection role.
Connection Roles
A connection role is a relation between a set of connections and a set of webhooks
indicating that every webhook in the set can be applied to every connection also in
the set:
www.store1.com/api/v1
www.store2.com/api/2015
www.store3.com/2015
Connection Role
POST order
GET order
PUT order
Back to Flow, again
If the connection role is not defined then
Cenit look for any connection from
which it is possible to reach the
webhook through a connection role.
If the connection role is supplied the
Cenit only look for the associated
connections to the connection role.
Back to Flow, again
If the connection role is not defined then
Cenit look for any connection from
which it is possible to reach the
webhook through a connection role.
If the connection role is supplied then
Cenit only look for the associated
connections to the connection role.
Back to Flow, again
If the connection role is not defined then
Cenit look for any connection from
which it is possible to reach the
webhook through a connection role.
If the connection role is supplied then
Cenit only look for the associated
connections to the connection role.
Export Flows
If the flow translator is of type export it
is possible to process the request
response with a response translator.
Response translators are of type import
and may require a response data type if
they do not define one.
Response translators may create other
records which may fire new event that
trigger other flow processing…
Export Flows
If the flow translator is of type export it
is possible to process the request
response with a response translator.
Response translators are of type import
and may require a response data type if
they do not define one.
Response translators may create other
records which may fire new event that
trigger other flow processing…
Export Flows
If the flow translator is of type export it
is possible to process the request
response with a response translator.
Response translators are of type import
and may require a response data type if
they do not define one.
Response translators may create other
records which may fire other events that
trigger other flow processing…
CenitHub
Chapter 4
Flows, Connections & Webhooks

Contenu connexe

Similaire à CenitHub Presentations | 4- Flows, Connections & Webhooks

FIWARE CEP GE introduction, ICT 2015
FIWARE CEP GE introduction, ICT 2015FIWARE CEP GE introduction, ICT 2015
FIWARE CEP GE introduction, ICT 2015ishkin
 
Sap Tech Ed06 Asug Wf
Sap Tech Ed06 Asug WfSap Tech Ed06 Asug Wf
Sap Tech Ed06 Asug WfKeith Swenson
 
Api design and development
Api design and developmentApi design and development
Api design and developmentoquidave
 
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...Crossref
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
internet programming and java notes 5th sem mca
internet programming and java notes 5th sem mcainternet programming and java notes 5th sem mca
internet programming and java notes 5th sem mcaRenu Thakur
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web servicesNeil Ghosh
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side ProgrammingMilan Thapa
 
Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Lori Head
 
Lecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptxLecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptxKevi20
 
Networked APIs with swift
Networked APIs with swiftNetworked APIs with swift
Networked APIs with swiftTim Burks
 
CenitHub: Introduction
CenitHub: Introduction CenitHub: Introduction
CenitHub: Introduction Miguel Sancho
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guideSrihari
 
Lightning Component - Components, Actions and Events
Lightning Component - Components, Actions and EventsLightning Component - Components, Actions and Events
Lightning Component - Components, Actions and EventsDurgesh Dhoot
 

Similaire à CenitHub Presentations | 4- Flows, Connections & Webhooks (20)

MS flow.docx
MS flow.docxMS flow.docx
MS flow.docx
 
Web Service
Web ServiceWeb Service
Web Service
 
FIWARE CEP GE introduction, ICT 2015
FIWARE CEP GE introduction, ICT 2015FIWARE CEP GE introduction, ICT 2015
FIWARE CEP GE introduction, ICT 2015
 
Sap Tech Ed06 Asug Wf
Sap Tech Ed06 Asug WfSap Tech Ed06 Asug Wf
Sap Tech Ed06 Asug Wf
 
Api design and development
Api design and developmentApi design and development
Api design and development
 
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
CrossRef How-to: A Technical Introduction to the Basics of CrossRef, Chuck Ko...
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
internet programming and java notes 5th sem mca
internet programming and java notes 5th sem mcainternet programming and java notes 5th sem mca
internet programming and java notes 5th sem mca
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side Programming
 
Streaming in Mule
Streaming in MuleStreaming in Mule
Streaming in Mule
 
Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207
 
Lecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptxLecture 1 Introduction to Web Development.pptx
Lecture 1 Introduction to Web Development.pptx
 
Networked APIs with swift
Networked APIs with swiftNetworked APIs with swift
Networked APIs with swift
 
CenitHub: Introduction
CenitHub: Introduction CenitHub: Introduction
CenitHub: Introduction
 
SOA web services concepts
SOA web services conceptsSOA web services concepts
SOA web services concepts
 
CN UNIT V.pptx
CN UNIT V.pptxCN UNIT V.pptx
CN UNIT V.pptx
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guide
 
Rest
Rest Rest
Rest
 
Lightning Component - Components, Actions and Events
Lightning Component - Components, Actions and EventsLightning Component - Components, Actions and Events
Lightning Component - Components, Actions and Events
 

Plus de Miguel Sancho

CenitHub Presentations | 5- Collections & Sharing
CenitHub Presentations | 5- Collections & SharingCenitHub Presentations | 5- Collections & Sharing
CenitHub Presentations | 5- Collections & SharingMiguel Sancho
 
CenitHub Presentations | 3- Translator
CenitHub Presentations | 3- TranslatorCenitHub Presentations | 3- Translator
CenitHub Presentations | 3- TranslatorMiguel Sancho
 
CenitHub Presentations | 2- Libraries, Schemas & Data Types
CenitHub Presentations | 2- Libraries, Schemas & Data TypesCenitHub Presentations | 2- Libraries, Schemas & Data Types
CenitHub Presentations | 2- Libraries, Schemas & Data TypesMiguel Sancho
 
CenitHub Presentations | 1- Overview
CenitHub Presentations | 1- OverviewCenitHub Presentations | 1- Overview
CenitHub Presentations | 1- OverviewMiguel Sancho
 
SpreeConf OpenJAF presentation
SpreeConf OpenJAF presentationSpreeConf OpenJAF presentation
SpreeConf OpenJAF presentationMiguel Sancho
 
Spree Travel: Open Travel Marketplace Framework
Spree Travel: Open Travel Marketplace FrameworkSpree Travel: Open Travel Marketplace Framework
Spree Travel: Open Travel Marketplace FrameworkMiguel Sancho
 
Geométria computacional: Polígonos y-monótonos
Geométria computacional:   Polígonos y-monótonosGeométria computacional:   Polígonos y-monótonos
Geométria computacional: Polígonos y-monótonosMiguel Sancho
 
Geometría computacional: Doubly Connected Edge List (DCEL)
Geometría computacional: Doubly Connected Edge List (DCEL)Geometría computacional: Doubly Connected Edge List (DCEL)
Geometría computacional: Doubly Connected Edge List (DCEL)Miguel Sancho
 
Geometría computacional solapamiento de subdivisiones
Geometría computacional   solapamiento de subdivisionesGeometría computacional   solapamiento de subdivisiones
Geometría computacional solapamiento de subdivisionesMiguel Sancho
 
Geometría Computacional: Interseccción de segmentos
Geometría Computacional: Interseccción de segmentosGeometría Computacional: Interseccción de segmentos
Geometría Computacional: Interseccción de segmentosMiguel Sancho
 
Geometría Computacional: Objetos y problemas básicos
Geometría Computacional: Objetos y problemas básicosGeometría Computacional: Objetos y problemas básicos
Geometría Computacional: Objetos y problemas básicosMiguel Sancho
 
Geometría Computacional: Envoltura Convexa
Geometría Computacional: Envoltura ConvexaGeometría Computacional: Envoltura Convexa
Geometría Computacional: Envoltura ConvexaMiguel Sancho
 
Introducción a Geometría Computacional
Introducción a  Geometría ComputacionalIntroducción a  Geometría Computacional
Introducción a Geometría ComputacionalMiguel Sancho
 

Plus de Miguel Sancho (15)

Cenit IO | Strategy
Cenit IO | StrategyCenit IO | Strategy
Cenit IO | Strategy
 
CenitHub 101
CenitHub 101CenitHub 101
CenitHub 101
 
CenitHub Presentations | 5- Collections & Sharing
CenitHub Presentations | 5- Collections & SharingCenitHub Presentations | 5- Collections & Sharing
CenitHub Presentations | 5- Collections & Sharing
 
CenitHub Presentations | 3- Translator
CenitHub Presentations | 3- TranslatorCenitHub Presentations | 3- Translator
CenitHub Presentations | 3- Translator
 
CenitHub Presentations | 2- Libraries, Schemas & Data Types
CenitHub Presentations | 2- Libraries, Schemas & Data TypesCenitHub Presentations | 2- Libraries, Schemas & Data Types
CenitHub Presentations | 2- Libraries, Schemas & Data Types
 
CenitHub Presentations | 1- Overview
CenitHub Presentations | 1- OverviewCenitHub Presentations | 1- Overview
CenitHub Presentations | 1- Overview
 
SpreeConf OpenJAF presentation
SpreeConf OpenJAF presentationSpreeConf OpenJAF presentation
SpreeConf OpenJAF presentation
 
Spree Travel: Open Travel Marketplace Framework
Spree Travel: Open Travel Marketplace FrameworkSpree Travel: Open Travel Marketplace Framework
Spree Travel: Open Travel Marketplace Framework
 
Geométria computacional: Polígonos y-monótonos
Geométria computacional:   Polígonos y-monótonosGeométria computacional:   Polígonos y-monótonos
Geométria computacional: Polígonos y-monótonos
 
Geometría computacional: Doubly Connected Edge List (DCEL)
Geometría computacional: Doubly Connected Edge List (DCEL)Geometría computacional: Doubly Connected Edge List (DCEL)
Geometría computacional: Doubly Connected Edge List (DCEL)
 
Geometría computacional solapamiento de subdivisiones
Geometría computacional   solapamiento de subdivisionesGeometría computacional   solapamiento de subdivisiones
Geometría computacional solapamiento de subdivisiones
 
Geometría Computacional: Interseccción de segmentos
Geometría Computacional: Interseccción de segmentosGeometría Computacional: Interseccción de segmentos
Geometría Computacional: Interseccción de segmentos
 
Geometría Computacional: Objetos y problemas básicos
Geometría Computacional: Objetos y problemas básicosGeometría Computacional: Objetos y problemas básicos
Geometría Computacional: Objetos y problemas básicos
 
Geometría Computacional: Envoltura Convexa
Geometría Computacional: Envoltura ConvexaGeometría Computacional: Envoltura Convexa
Geometría Computacional: Envoltura Convexa
 
Introducción a Geometría Computacional
Introducción a  Geometría ComputacionalIntroducción a  Geometría Computacional
Introducción a Geometría Computacional
 

Dernier

Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Seán Kennedy
 
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhThiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhYasamin16
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxMike Bennett
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Thomas Poetter
 
SWOT Analysis Slides Powerpoint Template.pptx
SWOT Analysis Slides Powerpoint Template.pptxSWOT Analysis Slides Powerpoint Template.pptx
SWOT Analysis Slides Powerpoint Template.pptxviniciusperissetr
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证nhjeo1gg
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxdolaknnilon
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 217djon017
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesTimothy Spann
 

Dernier (20)

Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...
 
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhThiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptx
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
 
SWOT Analysis Slides Powerpoint Template.pptx
SWOT Analysis Slides Powerpoint Template.pptxSWOT Analysis Slides Powerpoint Template.pptx
SWOT Analysis Slides Powerpoint Template.pptx
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
在线办理WLU毕业证罗瑞尔大学毕业证成绩单留信学历认证
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptx
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
 

CenitHub Presentations | 4- Flows, Connections & Webhooks

  • 2. Flows A flow defines how data is processed by the execution of one or more actions. Data processing involve: ₋ An execution trigger to start the data processing. ₋ Data types. ₋ Translators. ₋ Connections & Webhooks, if the data is coming in to Cenit or going out of Cenit.
  • 3. Flow: execution triggers Flows processing can be manually invoked or through the occurrence of events. Events are of two types: - Observers: listen for properties changes on records. - Schedulers: they occurs periodically.
  • 4. Flow: execution triggers Flows processing can be manually invoked or through the occurrence of events. Events are of two types: - Observers: listen for properties changes on records. - Schedulers: they occurs periodically.
  • 5. Flow: execution triggers Flows processing can be manually invoked or through the occurrence of events. Events are of two types: - Observers: listen for properties changes on records. - Schedulers: they occurs periodically.
  • 6. Flow: translator Every flow have a translator that performs the main data processing. Depending on the translator type a flow can: - Pull (import) data into Cenit - Export data outside Cenit - Update/Convert data inside Cenit A flow must define a data type unless its translator defines one.
  • 7. Flow: translator Every flow have a translator that performs the main data processing. Depending on the translator type a flow can: - Pull (import) data into Cenit - Export data outside Cenit - Update/Convert data inside Cenit A flow must define a data type unless its translator defines one.
  • 8. Flow: scope If a flow is not of type import then it must define a scope for data processing. The scope can be defined depending on the flow event, translator data type or the flow custom data type: - Event source process only the record who fire the event - All records scope process all the records - Filter scope process the records following some criteria.
  • 9. Flow: scope If a flow is not of type import then it must define a scope for data processing. The scope can be defined depending on the flow event, translator data type or the flow custom data type: - Event source process only the record who fire the event - All records scope process all the records - Filter scope process the records following some criteria.
  • 10. Flow: scope If a flow is not of type import then it must define a scope for data processing. The scope can be defined depending on the flow event, translator data type or the flow custom data type: - Event source process only the record who fire the event - All records scope process all the records - Filter scope process the records following some criteria.
  • 11. Flow: scope If a flow is not of type import then it must define a scope for data processing. The scope can be defined depending on the flow event, translator data type or the flow custom data type: - Event source process only the record who fire the event - All records scope process all the records - Filter scope process the records following some criteria.
  • 12. Flow: update/convert When the flow translator is of type update/convert no further configuration is needed beyond the scope. The active option prevent the flow processing even if its event is fired when it is not checked.
  • 13. Flow: import/export When the flow translator is of type: - Import, then the data will be pulled into Cenit - Export, then the data will be send outside Cenit In any case an end-point is needed to pull or send the data. An end-point is determined by a connection and a webhook
  • 14. Connections A connection consist in an URL and a set of parameters, headers and template parameters. The connection URL, parameters and headers can be described by using Liquid Templates. The template parameters and its values are available in the Liquid Templates as local variables so URL and its components can be computed dynamically.
  • 15. Connection example: Twilio API The URL to connect with the Twilio API have the following form: https://api.twilio.com/2010-04-01/Accounts/xxxxx where xxxxx is the user account SID, and the following headers should be provided: - Accept-Charset: utf-8 - Accept: application/json - Authorization: Basic yyyyy where yyyyy is the base 64 format of the user account SID and the user Authentication Token
  • 16. Connection example: Twilio API https://api.twilio.com/2010-04-01/Accounts/xxxxx - Accept-Charset: utf-8 - Accept: application/json - Authorization: Basic yyyyy The values of xxxxx and yyyyy can be statically typed on the URL and headers but, they must be updated every time the user credentials change.
  • 17. Connection example: Twilio API A better approach is to use template parameters and Liquid Templates: https://api.twilio.com/2010-04-01/Accounts/{{account_sid}} - Accept-Charset: utf-8 - Accept: application/json - Authorization: Basic {% base64 (account_sid + ':' + auth_token) %} Defining the template parameters account_sid and auth_token Cenit computes dynamically the connection URL and its headers.
  • 18. Webhooks example: Twilio API The Twilio connection is just the base URL for the actions of the Twilio API, and these way is how occurs almost in every API. It is possible the same URL to indicate different actions depending on the HTTP method, for example https://api.twilio.com/2010-04-01/Accounts/xxxxx/Messages.json send messages using the POST method but retrieve messages when using GET. All those actions are defined as Webhooks.
  • 19. Webhooks example: Twilio API So a webhook is basically a path that completes the connection URL, and HTTP method and can define also a set of headers, parameters and template parameters. The webhook path of the Twilio API will be: - Messages.json by GET list the messages. - Messages.json by POST send a message. - Messages/{{id}}.json by GET retrieve a message with a SID.
  • 20. Back to Flow Since the webhook defines the action the flow will submit to the end-point then the webhook is primary over connection. It is possible to submit the same action to several end-points, so the connections are not specified directly but through a connection role.
  • 21. Back to Flow Since the webhook defines the action the flow will submit to the end-point then the webhook is primary over connection. It is possible to submit the same action to several end-points, so the connections are not specified directly but through a connection role.
  • 22. Connection Roles A connection role is a relation between a set of connections and a set of webhooks indicating that every webhook in the set can be applied to every connection also in the set: www.store1.com/api/v1 www.store2.com/api/2015 www.store3.com/2015 Connection Role POST order GET order PUT order
  • 23. Back to Flow, again If the connection role is not defined then Cenit look for any connection from which it is possible to reach the webhook through a connection role. If the connection role is supplied the Cenit only look for the associated connections to the connection role.
  • 24. Back to Flow, again If the connection role is not defined then Cenit look for any connection from which it is possible to reach the webhook through a connection role. If the connection role is supplied then Cenit only look for the associated connections to the connection role.
  • 25. Back to Flow, again If the connection role is not defined then Cenit look for any connection from which it is possible to reach the webhook through a connection role. If the connection role is supplied then Cenit only look for the associated connections to the connection role.
  • 26. Export Flows If the flow translator is of type export it is possible to process the request response with a response translator. Response translators are of type import and may require a response data type if they do not define one. Response translators may create other records which may fire new event that trigger other flow processing…
  • 27. Export Flows If the flow translator is of type export it is possible to process the request response with a response translator. Response translators are of type import and may require a response data type if they do not define one. Response translators may create other records which may fire new event that trigger other flow processing…
  • 28. Export Flows If the flow translator is of type export it is possible to process the request response with a response translator. Response translators are of type import and may require a response data type if they do not define one. Response translators may create other records which may fire other events that trigger other flow processing…