Class PutZendeskTicket

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.zendesk.AbstractZendesk
org.apache.nifi.processors.zendesk.PutZendeskTicket
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor

@Tags("zendesk, ticket") @CapabilityDescription("Create Zendesk tickets using the Zendesk API.") @DynamicProperty(name="The path in the request object to add. The value needs be a valid JsonPointer.", value="The path in the incoming record to get the value from.", expressionLanguageScope=FLOWFILE_ATTRIBUTES, description="Additional property to be added to the Zendesk request object.") @WritesAttribute(attribute="record.count",description="The number of records processed.") @WritesAttribute(attribute="error.code",description="The error code of from the response.") @WritesAttribute(attribute="error.message",description="The error message of from the response.") public class PutZendeskTicket extends AbstractZendesk
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final String
     
    (package private) static final String
     
    private static final com.fasterxml.jackson.databind.ObjectMapper
     
    private static final List<org.apache.nifi.components.PropertyDescriptor>
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    static final org.apache.nifi.processor.Relationship
     
    static final Set<org.apache.nifi.processor.Relationship>
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final String
     

    Fields inherited from class org.apache.nifi.processors.zendesk.AbstractZendesk

    RECORD_COUNT_ATTRIBUTE_NAME, REL_SUCCESS, zendeskClient
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private URI
    createUri(int numberOfTickets)
     
    Set<org.apache.nifi.processor.Relationship>
     
    protected org.apache.nifi.components.PropertyDescriptor
     
    List<org.apache.nifi.components.PropertyDescriptor>
     
    private void
    handleResponse(org.apache.nifi.processor.ProcessSession session, org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.web.client.api.HttpResponseEntity response, URI uri, long startNanos)
     
    void
    onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session)
     

    Methods inherited from class org.apache.nifi.processors.zendesk.AbstractZendesk

    onScheduled, uriBuilder

    Methods inherited from class org.apache.nifi.processor.AbstractProcessor

    onTrigger

    Methods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor

    getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.processor.Processor

    isStateful, migrateProperties, migrateRelationships
  • Field Details

    • ZENDESK_RECORD_READER_NAME

      static final String ZENDESK_RECORD_READER_NAME
      See Also:
    • ERROR_CODE_ATTRIBUTE_NAME

      static final String ERROR_CODE_ATTRIBUTE_NAME
      See Also:
    • ERROR_MESSAGE_ATTRIBUTE_NAME

      static final String ERROR_MESSAGE_ATTRIBUTE_NAME
      See Also:
    • mapper

      private static final com.fasterxml.jackson.databind.ObjectMapper mapper
    • RECORD_READER

      static final org.apache.nifi.components.PropertyDescriptor RECORD_READER
    • TICKET_COMMENT_BODY

      static final org.apache.nifi.components.PropertyDescriptor TICKET_COMMENT_BODY
    • TICKET_SUBJECT

      static final org.apache.nifi.components.PropertyDescriptor TICKET_SUBJECT
    • TICKET_PRIORITY

      static final org.apache.nifi.components.PropertyDescriptor TICKET_PRIORITY
    • TICKET_TYPE

      static final org.apache.nifi.components.PropertyDescriptor TICKET_TYPE
    • PROPERTY_DESCRIPTORS

      private static final List<org.apache.nifi.components.PropertyDescriptor> PROPERTY_DESCRIPTORS
    • REL_FAILURE

      public static final org.apache.nifi.processor.Relationship REL_FAILURE
    • RELATIONSHIPS

      public static final Set<org.apache.nifi.processor.Relationship> RELATIONSHIPS
  • Constructor Details

    • PutZendeskTicket

      public PutZendeskTicket()
  • Method Details

    • getSupportedDynamicPropertyDescriptor

      protected org.apache.nifi.components.PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
      Overrides:
      getSupportedDynamicPropertyDescriptor in class org.apache.nifi.components.AbstractConfigurableComponent
    • getRelationships

      public Set<org.apache.nifi.processor.Relationship> getRelationships()
      Specified by:
      getRelationships in interface org.apache.nifi.processor.Processor
      Overrides:
      getRelationships in class org.apache.nifi.processor.AbstractSessionFactoryProcessor
    • getSupportedPropertyDescriptors

      public List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponent
    • onTrigger

      public void onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session)
      Specified by:
      onTrigger in class org.apache.nifi.processor.AbstractProcessor
    • handleResponse

      private void handleResponse(org.apache.nifi.processor.ProcessSession session, org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.web.client.api.HttpResponseEntity response, URI uri, long startNanos)
    • createUri

      private URI createUri(int numberOfTickets)