Uses of Interface
io.nflow.engine.workflow.definition.StateExecution
Packages that use StateExecution
Package
Description
Classes and interfaces for implementing workflow executor listeners.
-
Uses of StateExecution in io.nflow.engine.internal.workflow
Classes in io.nflow.engine.internal.workflow that implement StateExecutionMethods in io.nflow.engine.internal.workflow with parameters of type StateExecutionModifier and TypeMethodDescriptionObject[]ObjectStringMapper.createArguments(StateExecution execution, WorkflowStateMethod method) voidObjectStringMapper.storeArguments(StateExecution execution, WorkflowStateMethod method, Object[] args) -
Uses of StateExecution in io.nflow.engine.listener
Fields in io.nflow.engine.listener declared as StateExecutionModifier and TypeFieldDescriptionfinal StateExecutionWorkflowExecutorListener.ListenerContext.stateExecutionThe access point for the workflow instance-specific information.Constructors in io.nflow.engine.listener with parameters of type StateExecutionModifierConstructorDescriptionListenerContext(WorkflowDefinition definition, WorkflowInstance instance, StateExecution stateExecution) -
Uses of StateExecution in io.nflow.engine.workflow.curated
Methods in io.nflow.engine.workflow.curated with parameters of type StateExecutionModifier and TypeMethodDescriptionMaintenanceWorkflow.doWork(StateExecution execution, MaintenanceConfiguration conf) Clean up old workflow instances.protected org.joda.time.DateTimeCronWorkflow.getNextActivationTime(StateExecution execution, String cron) Calculates next activation time based on cron state variable.CronWorkflow.handleFailure(StateExecution execution) Tries to handle failures by callingCronWorkflow.handleFailureImpl(io.nflow.engine.workflow.definition.StateExecution).protected booleanCronWorkflow.handleFailureImpl(StateExecution execution) Logs an error and continues.CronWorkflow.schedule(StateExecution execution, String cron) Determines the next execution time for the doWork state by callingCronWorkflow.getNextActivationTime(io.nflow.engine.workflow.definition.StateExecution, java.lang.String).BulkWorkflow.splitWork(StateExecution execution, com.fasterxml.jackson.databind.JsonNode data) CallBulkWorkflow.splitWorkImpl(io.nflow.engine.workflow.definition.StateExecution,com.fasterxml.jackson.databind.JsonNode)to create new child workflows.protected booleanBulkWorkflow.splitWorkImpl(StateExecution execution, com.fasterxml.jackson.databind.JsonNode data) Override this to create child workflows or add the children before starting the parent.BulkWorkflow.waitForChildrenToFinish(StateExecution execution, int concurrency) Check if all child workflows have finished.CronWorkflow.waitForWorkToFinish(StateExecution execution) CallsCronWorkflow.waitForWorkToFinishImpl(io.nflow.engine.workflow.definition.StateExecution)to check if this instance should wait for work to finish or move to schedule state.protected org.joda.time.DateTimeCronWorkflow.waitForWorkToFinishImpl(StateExecution execution) Returns null to move to schedule state immediately if there are no incomplete child workflows, or current time plus 1 hour to check again later.