Class WhatsAppContactVerificationResponseEventHandler
java.lang.Object
com.flowable.engage.external.system.whatsapp.event.WhatsAppContactVerificationResponseEventHandler
- All Implemented Interfaces:
WhatsAppInboundEventHandler
public class WhatsAppContactVerificationResponseEventHandler
extends Object
implements WhatsAppInboundEventHandler
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Logger
protected final com.fasterxml.jackson.databind.ObjectMapper
protected final RuntimeService
static final String
static final String
static final String
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionWhatsAppContactVerificationResponseEventHandler
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, RuntimeService runtimeService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bpmnVerificationResponseReceived
(WhatsAppContactVerificationResponse verificationResponse) protected com.fasterxml.jackson.databind.JsonNode
protected com.fasterxml.jackson.databind.JsonNode
protected com.fasterxml.jackson.databind.JsonNode
protected com.fasterxml.jackson.databind.JsonNode
extractVariables
(WhatsAppContactVerificationResponse verificationResponse) getType()
The type of the event that this handler handles.void
process
(com.fasterxml.jackson.databind.JsonNode eventPayload) Process the event payload.protected void
unsupportedVerificationResponseReceived
(WhatsAppContactVerificationResponse verificationResponse) protected void
verificationResponseReceived
(WhatsAppContactVerificationResponse verificationResponse)
-
Field Details
-
VERIFICATION_CONTACT_PARAMETER
- See Also:
-
VERIFICATION_CONTACTS_PARAMETER
- See Also:
-
VERIFICATION_CONTACT_ERROR_PARAMETER
- See Also:
-
VERIFICATION_CONTACT_ERRORS_PARAMETER
- See Also:
-
logger
protected final org.slf4j.Logger logger -
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
runtimeService
-
-
Constructor Details
-
WhatsAppContactVerificationResponseEventHandler
public WhatsAppContactVerificationResponseEventHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, RuntimeService runtimeService)
-
-
Method Details
-
getType
Description copied from interface:WhatsAppInboundEventHandler
The type of the event that this handler handles.- Specified by:
getType
in interfaceWhatsAppInboundEventHandler
- Returns:
- the type of the event that is handled
-
process
public void process(com.fasterxml.jackson.databind.JsonNode eventPayload) Description copied from interface:WhatsAppInboundEventHandler
Process the event payload.- Specified by:
process
in interfaceWhatsAppInboundEventHandler
- Parameters:
eventPayload
- the payload of the event
-
verificationResponseReceived
protected void verificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse) -
bpmnVerificationResponseReceived
protected void bpmnVerificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse) -
unsupportedVerificationResponseReceived
protected void unsupportedVerificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse) -
extractVariables
protected Map<String,Object> extractVariables(WhatsAppContactVerificationResponse verificationResponse) -
createContactVariable
protected com.fasterxml.jackson.databind.JsonNode createContactVariable(WhatsAppContactVerificationResponse.ContactDto contact) -
createContactsVariable
protected com.fasterxml.jackson.databind.JsonNode createContactsVariable(Collection<WhatsAppContactVerificationResponse.ContactDto> contacts) -
createErrorVariable
protected com.fasterxml.jackson.databind.JsonNode createErrorVariable(InboundStatusDto.ErrorDto error) -
createErrorsVariable
protected com.fasterxml.jackson.databind.JsonNode createErrorsVariable(Collection<InboundStatusDto.ErrorDto> errors)
-