Class FormRecordData.Builder

  • Enclosing class:
    FormRecordData

    public static final class FormRecordData.Builder
    extends Object
    Simple builder for a FormRecordData.
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • currentState

        public FormRecordData.Builder currentState​(EntityReference currentState)
        Parameters:
        currentState - The current workflow state of the form record, if any.
        Returns:
        This builder instance for chaining method calls.
      • errorCount

        public FormRecordData.Builder errorCount​(long errorCount)
        Parameters:
        errorCount - The number of errors of the form record.
        Returns:
        This builder instance for chaining method calls.
      • form

        public FormRecordData.Builder form​(EntityReference form)
        Parameters:
        form - The form to which the form record belongs.
        Returns:
        This builder instance for chaining method calls.
      • id

        public FormRecordData.Builder id​(long id)
        Parameters:
        id - The ID of the form record.
        Returns:
        This builder instance for chaining method calls.
      • inProgress

        public FormRecordData.Builder inProgress​(boolean inProgress)
        Parameters:
        inProgress - Whether the form record is being processed, e.g. when a workflow execution is in progress.
        Returns:
        This builder instance for chaining method calls.
      • processId

        public FormRecordData.Builder processId​(String processId)
        Parameters:
        processId - The process ID (i.e. the UUID) of the form record.
        Returns:
        This builder instance for chaining method calls.
      • read

        public FormRecordData.Builder read​(boolean read)
        Parameters:
        read - Whether the form record was read by a user.
        Returns:
        This builder instance for chaining method calls.
      • saved

        public FormRecordData.Builder saved​(boolean saved)
        Parameters:
        saved - Whether the form record is in a saved state.
        Returns:
        This builder instance for chaining method calls.
      • subject

        public FormRecordData.Builder subject​(String subject)
        Parameters:
        subject - The subject of the form record.
        Returns:
        This builder instance for chaining method calls.