Package de.xima.fc.e2e.common.query.data
Class FormRecordData.Builder
- java.lang.Object
-
- de.xima.fc.e2e.common.query.data.FormRecordData.Builder
-
- Enclosing class:
- FormRecordData
public static final class FormRecordData.Builder extends Object
Simple builder for aFormRecordData.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormRecordDatabuild()FormRecordData.BuildercurrentState(EntityReference currentState)FormRecordData.BuildererrorCount(long errorCount)FormRecordData.Builderform(EntityReference form)FormRecordData.Builderid(long id)FormRecordData.BuilderinProgress(boolean inProgress)FormRecordData.BuilderprocessId(String processId)FormRecordData.Builderread(boolean read)FormRecordData.Buildersaved(boolean saved)FormRecordData.Buildersubject(String subject)
-
-
-
Method Detail
-
build
public FormRecordData build()
- Returns:
- A new
FormRecordDatainstance with the current data.
-
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.
-
-