Class InsightsEventPublisher


  • public class InsightsEventPublisher
    extends Object
    Provides a Insights event publisher class.
    Since:
    17.10.4
    • Constructor Detail

      • InsightsEventPublisher

        public InsightsEventPublisher()
    • Method Detail

      • setName

        public InsightsEventPublisher setName​(String name)
        Set the Insights event name to publish.
        Parameters:
        name - the Insights event name to publish
        Returns:
        the event publisher
        Since:
        18.5.0
      • setValue

        public InsightsEventPublisher setValue​(String value)
        Set the Insights event value to publish.
        Parameters:
        value - the Insights event value to publish
        Returns:
        the event publisher
      • setSubmission

        public InsightsEventPublisher setSubmission​(Submission submission)
        Set the Insights submission event to publish
        Parameters:
        submission - the Insights submission event to publish
        Returns:
        the event publisher
      • setJobAction

        public InsightsEventPublisher setJobAction​(JobAction jobAction)
        Set the Insights job action to publish
        Parameters:
        jobAction -
        Returns:
      • send

        public boolean send()
        Send the Insights transaction event. This method will log any errors which occur to the Error Log table and return false if the event could not be sent.
        Returns:
        true if the event was sent or false otherwise