Package ca.uhn.fhir.batch2.model
Class WorkChunkCreateEvent
java.lang.Object
ca.uhn.fhir.batch2.model.WorkChunkCreateEvent
The data required for the create transition.
Payload for the work-chunk creation event including all the job coordinates, the chunk data, and a sequence within the step.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorkChunkCreateEvent(String theJobDefinitionId, int theJobDefinitionVersion, String theTargetStepId, String theInstanceId, int theSequence, String theSerializedData, boolean theGatedExecution) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic WorkChunkCreateEventfirstChunk(JobDefinition<?> theJobDefinition, String theInstanceId) Creates the WorkChunkCreateEvent for the first chunk of a job.inthashCode()
-
Field Details
-
jobDefinitionId
-
jobDefinitionVersion
-
targetStepId
-
instanceId
-
sequence
-
serializedData
-
isGatedExecution
-
-
Constructor Details
-
WorkChunkCreateEvent
public WorkChunkCreateEvent(@Nonnull String theJobDefinitionId, int theJobDefinitionVersion, @Nonnull String theTargetStepId, @Nonnull String theInstanceId, int theSequence, @Nullable String theSerializedData, boolean theGatedExecution) Constructor- Parameters:
theJobDefinitionId- The job definition IDtheJobDefinitionVersion- The job definition versiontheTargetStepId- The step ID that will be responsible for consuming this chunktheInstanceId- The instance ID associated with this chunktheSerializedData- The data. This will be in the form of a map where the values may be strings, lists, and other maps (i.e. JSON)
-
-
Method Details
-
firstChunk
public static WorkChunkCreateEvent firstChunk(JobDefinition<?> theJobDefinition, String theInstanceId) Creates the WorkChunkCreateEvent for the first chunk of a job. -
equals
-
hashCode
-