Interface ApprovalFlowCompletedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, Versioned<Message>

public interface ApprovalFlowCompletedMessage extends Message

Generated after an Approval Flow is completed and reaches a final status.


Example to create an instance using the builder pattern

     ApprovalFlowCompletedMessage approvalFlowCompletedMessage = ApprovalFlowCompletedMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .status(ApprovalFlowStatus.PENDING)
             .order(orderBuilder -> orderBuilder)
             .build()
 
  • Field Details

    • APPROVAL_FLOW_COMPLETED

      static final String APPROVAL_FLOW_COMPLETED
      discriminator value for ApprovalFlowCompletedMessage
      See Also:
  • Method Details

    • getStatus

      @NotNull @NotNull ApprovalFlowStatus getStatus()

      Final status of the Approval Flow.

      Returns:
      status
    • getOrder

      @NotNull @Valid @NotNull @Valid OrderReference getOrder()

      Reference to the Order related to the completed Approval Flow.

      Returns:
      order
    • setStatus

      void setStatus(ApprovalFlowStatus status)

      Final status of the Approval Flow.

      Parameters:
      status - value to be set
    • setOrder

      void setOrder(OrderReference order)

      Reference to the Order related to the completed Approval Flow.

      Parameters:
      order - value to be set
    • of

      factory method
      Returns:
      instance of ApprovalFlowCompletedMessage
    • of

      factory method to create a shallow copy ApprovalFlowCompletedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ApprovalFlowCompletedMessage
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ApprovalFlowCompletedMessage
      Returns:
      builder
    • builder

      create builder for ApprovalFlowCompletedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withApprovalFlowCompletedMessage

      default <T> T withApprovalFlowCompletedMessage(Function<ApprovalFlowCompletedMessage,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowCompletedMessage> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference