Class DefaultExtendedFulfillRequestedUploadRequest
- java.lang.Object
-
- de.xima.fc.logic.form_record.chat.DefaultExtendedFulfillRequestedUploadRequest
-
- All Implemented Interfaces:
IExtendedFulfillRequestedUploadRequest
public final class DefaultExtendedFulfillRequestedUploadRequest extends Object implements IExtendedFulfillRequestedUploadRequest
Simple POJO implementation of anIExtendedFulfillRequestedUploadRequestwith a builder.- Since:
- 8.2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultExtendedFulfillRequestedUploadRequest.BuilderBuilder for aDefaultExtendedFulfillRequestedUploadRequest.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IFulfillRequestedUploadRequestbaseRequest()The base request data for fulfilling a form record message upload request.IEntityContextentityContext()Gets the entity context to use for posting the message.static DefaultExtendedFulfillRequestedUploadRequest.BuilderextendedFulfillRequestedUploadRequestBuilder(FormRecordMessageUploadRequest uploadRequest)Creates a new builder for anIExtendedFulfillRequestedUploadRequestthat fulfills the givenupload request.static DefaultExtendedFulfillRequestedUploadRequest.BuilderextendedFulfillRequestedUploadRequestBuilder(UUID uploadRequestUuid)Creates a new builder for anIExtendedFulfillRequestedUploadRequestthat fulfills the givenupload request.IWorkflowExecutionContextworkflowContext()Optional.
-
-
-
Method Detail
-
baseRequest
public IFulfillRequestedUploadRequest baseRequest()
Description copied from interface:IExtendedFulfillRequestedUploadRequestThe base request data for fulfilling a form record message upload request.- Specified by:
baseRequestin interfaceIExtendedFulfillRequestedUploadRequest- Returns:
- The base request data for fulfilling a form record message upload request.
-
entityContext
public IEntityContext entityContext()
Description copied from interface:IExtendedFulfillRequestedUploadRequestGets the entity context to use for posting the message. By default, a new entity context is created. Should be used with caution.- Specified by:
entityContextin interfaceIExtendedFulfillRequestedUploadRequest- Returns:
- The entity context to use for posting the message.
-
workflowContext
public IWorkflowExecutionContext workflowContext()
Description copied from interface:IExtendedFulfillRequestedUploadRequestOptional. The active workflow context that issued the fulfill requested upload request.After the upload request was fulfilled, a workflow event is triggered, which in turn may trigger a workflow execution. This will fail when a workflow execution is currently in progress. To avoid this, the workflow context should be given. When a workflow context is given, the matching tasks will be added to
the current execution queueinstead. This also prevents potential endless loops when a workflow task reacting to a message event posts a message itself, as there exists a hard limit on the maximum number of executed nodes per workflow execution.- Specified by:
workflowContextin interfaceIExtendedFulfillRequestedUploadRequest- Returns:
- The workflow execution context containing the action that issued the post message request.
-
extendedFulfillRequestedUploadRequestBuilder
public static DefaultExtendedFulfillRequestedUploadRequest.Builder extendedFulfillRequestedUploadRequestBuilder(UUID uploadRequestUuid)
Creates a new builder for anIExtendedFulfillRequestedUploadRequestthat fulfills the givenupload request.- Parameters:
uploadRequestUuid- UUID of the upload request to fulfill.- Returns:
- A new builder for an
IExtendedFulfillRequestedUploadRequest.
-
extendedFulfillRequestedUploadRequestBuilder
public static DefaultExtendedFulfillRequestedUploadRequest.Builder extendedFulfillRequestedUploadRequestBuilder(FormRecordMessageUploadRequest uploadRequest)
Creates a new builder for anIExtendedFulfillRequestedUploadRequestthat fulfills the givenupload request.- Parameters:
uploadRequest- The upload request to fulfill.- Returns:
- A new builder for an
IExtendedFulfillRequestedUploadRequest.
-
-