Class TaskStep
- java.lang.Object
-
- org.kinotic.continuum.grind.internal.api.AbstractStep
-
- org.kinotic.continuum.grind.internal.api.TaskStep
-
- All Implemented Interfaces:
Step
public class TaskStep extends AbstractStep
-
-
Field Summary
-
Fields inherited from class org.kinotic.continuum.grind.internal.api.AbstractStep
sequence
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<Result<?>>assemble(org.springframework.context.support.GenericApplicationContext applicationContext, ResultOptions options)Prepares theStepfor execution.java.lang.StringgetDescription()The description comes from theTaskorJobDefinitionthat this step was created for-
Methods inherited from class org.kinotic.continuum.grind.internal.api.AbstractStep
getSequence, notifyDiagnostic, notifyException, notifyProgress
-
-
-
-
Constructor Detail
-
TaskStep
public TaskStep(int sequence, Task<?> task)
-
TaskStep
public TaskStep(int sequence, Task<?> task, boolean storeResult)
-
TaskStep
public TaskStep(int sequence, Task<?> task, boolean storeResult, java.lang.String resultName)- Parameters:
task- for this stepstoreResult- determines if the result of theTaskshould be stored in the execution contextresultName- the name of the result to use when storing the result in the execution context
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:StepThe description comes from theTaskorJobDefinitionthat this step was created for- Returns:
- the description of this
Step
-
assemble
public org.reactivestreams.Publisher<Result<?>> assemble(org.springframework.context.support.GenericApplicationContext applicationContext, ResultOptions options)
Description copied from interface:StepPrepares theStepfor execution.- Parameters:
applicationContext- the execution context that will be used for thisStepoptions- theResultOptionsto use when executing theJobDefinitionthis will determine theResultType's that you will receive from the emittedResult's- Returns:
- a
Publisherthat when subscribed to will create the result for thisStep
-
-