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.Loggerprotected final com.fasterxml.jackson.databind.ObjectMapperprotected final RuntimeServicestatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionWhatsAppContactVerificationResponseEventHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, RuntimeService runtimeService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbpmnVerificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse) protected com.fasterxml.jackson.databind.JsonNodeprotected com.fasterxml.jackson.databind.JsonNodeprotected com.fasterxml.jackson.databind.JsonNodeprotected com.fasterxml.jackson.databind.JsonNodeextractVariables(WhatsAppContactVerificationResponse verificationResponse) getType()The type of the event that this handler handles.voidprocess(com.fasterxml.jackson.databind.JsonNode eventPayload) Process the event payload.protected voidunsupportedVerificationResponseReceived(WhatsAppContactVerificationResponse verificationResponse) protected voidverificationResponseReceived(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:WhatsAppInboundEventHandlerThe type of the event that this handler handles.- Specified by:
getTypein interfaceWhatsAppInboundEventHandler- Returns:
- the type of the event that is handled
-
process
public void process(com.fasterxml.jackson.databind.JsonNode eventPayload) Description copied from interface:WhatsAppInboundEventHandlerProcess the event payload.- Specified by:
processin 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)
-