public interface FlowRunner
| Modifier and Type | Method and Description | 
|---|---|
void | 
awaitCompletion()
Blocks until the flow execution is complete. 
 | 
void | 
awaitCompletion(long timeout,
               java.util.concurrent.TimeUnit unit)
Blocks until the flow execution is complete. 
 | 
FlowRunner | 
onStatusChanged(FlowStatusListener listener)
Sets the status change listener on the flowrunner object 
 | 
RunFlowResponse | 
runFlow(FlowInputs flowInputs)
Run a flow without any dependency on an underlying HubProject for either finding artifacts (flows and step
 definitions) or for resolving file paths for an ingestion step. 
 | 
RunFlowResponse | 
runFlow(java.lang.String flow)
Deprecated. 
 
Starting in 5.2.0, prefer runFlow(FlowInputs), which does not depend on Spring or project files on the filesystem 
 | 
RunFlowResponse | 
runFlow(java.lang.String flow,
       java.util.List<java.lang.String> steps)
Deprecated. 
 
Starting in 5.2.0, prefer runFlow(FlowInputs), which does not depend on Spring or project files on the filesystem 
 | 
RunFlowResponse | 
runFlow(java.lang.String flow,
       java.util.List<java.lang.String> steps,
       java.lang.String jobId)
Deprecated. 
 
Starting in 5.2.0, prefer runFlow(FlowInputs), which does not depend on Spring or project files on the filesystem 
 | 
RunFlowResponse | 
runFlow(java.lang.String flow,
       java.util.List<java.lang.String> steps,
       java.lang.String jobId,
       java.util.Map<java.lang.String,java.lang.Object> options)
Deprecated. 
 
Starting in 5.2.0, prefer runFlow(FlowInputs), which does not depend on Spring or project files on the filesystem 
 | 
RunFlowResponse | 
runFlow(java.lang.String flow,
       java.util.List<java.lang.String> steps,
       java.lang.String jobId,
       java.util.Map<java.lang.String,java.lang.Object> options,
       java.util.Map<java.lang.String,java.lang.Object> stepConfig)
Deprecated. 
 
Starting in 5.2.0, prefer runFlow(FlowInputs), which does not depend on Spring or project files on the filesystem 
 | 
RunFlowResponse | 
runFlow(java.lang.String flow,
       java.lang.String jobId)
Deprecated. 
 
Starting in 5.2.0, prefer runFlow(FlowInputs), which does not depend on Spring or project files on the filesystem 
 | 
RunFlowResponse | 
runFlow(java.lang.String flow,
       java.lang.String jobId,
       java.util.Map<java.lang.String,java.lang.Object> options)
Deprecated. 
 
Starting in 5.2.0, prefer runFlow(FlowInputs), which does not depend on Spring or project files on the filesystem 
 | 
void | 
stopJob(java.lang.String jobId)
Runs the flow. 
 | 
RunFlowResponse runFlow(FlowInputs flowInputs)
flowInputs - @Deprecated RunFlowResponse runFlow(java.lang.String flow, java.lang.String jobId)
flow - the flow to runjobId - the jobid to be used for the flow@Deprecated RunFlowResponse runFlow(java.lang.String flow, java.util.List<java.lang.String> steps, java.lang.String jobId)
flow - the flow to runsteps - the steps in the flow to runjobId - the jobid to be used for the flow@Deprecated RunFlowResponse runFlow(java.lang.String flow, java.lang.String jobId, java.util.Map<java.lang.String,java.lang.Object> options)
flow - the flow to runjobId - the jobid to be used for the flowoptions - the key/value options to be passed@Deprecated RunFlowResponse runFlow(java.lang.String flow, java.util.List<java.lang.String> steps, java.lang.String jobId, java.util.Map<java.lang.String,java.lang.Object> options)
flow - the flow to runsteps - the steps in the flow to runjobId - the jobid to be used for the flowoptions - the key/value options to be passed@Deprecated RunFlowResponse runFlow(java.lang.String flow, java.util.List<java.lang.String> steps, java.lang.String jobId, java.util.Map<java.lang.String,java.lang.Object> options, java.util.Map<java.lang.String,java.lang.Object> stepConfig)
flow - the flow to runsteps - the steps in the flow to runjobId - the jobid to be used for the flowoptions - the key/value options to be passedstepConfig - the key/value config to override the running of the step@Deprecated RunFlowResponse runFlow(java.lang.String flow, java.util.List<java.lang.String> steps)
flow - the flow to runsteps - the steps in the flow to run@Deprecated RunFlowResponse runFlow(java.lang.String flow)
flow - the flow to runvoid stopJob(java.lang.String jobId)
jobId - the id of the running flowvoid awaitCompletion()
void awaitCompletion(long timeout,
                     java.util.concurrent.TimeUnit unit)
              throws java.lang.InterruptedException,
                     java.util.concurrent.TimeoutException
timeout - the maximum time to waitunit - the time unit of the timeout argumentjava.lang.InterruptedException - if interrupted while waitingjava.util.concurrent.TimeoutException - if times outFlowRunner onStatusChanged(FlowStatusListener listener)
listener - - the listener for when the status changes