Class WorkflowPersistenceInstance

java.lang.Object
io.serverlessworkflow.impl.WorkflowMutableInstance
io.serverlessworkflow.impl.persistence.WorkflowPersistenceInstance
All Implemented Interfaces:
io.serverlessworkflow.impl.WorkflowInstance, io.serverlessworkflow.impl.WorkflowInstanceData

public class WorkflowPersistenceInstance extends io.serverlessworkflow.impl.WorkflowMutableInstance
  • Field Summary

    Fields inherited from class io.serverlessworkflow.impl.WorkflowMutableInstance

    additionalObjects, completedAt, futureRef, id, input, iterationsMap, startedAt, workflowContext
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.serverlessworkflow.impl.WorkflowInstance
    of(io.serverlessworkflow.impl.WorkflowDefinition definition, PersistenceWorkflowInfo info)
     
    void
    restoreContext(io.serverlessworkflow.impl.WorkflowContext workflow, io.serverlessworkflow.impl.TaskContext context)
     
    CompletableFuture<io.serverlessworkflow.impl.WorkflowModel>
     

    Methods inherited from class io.serverlessworkflow.impl.WorkflowMutableInstance

    addCancelable, addMetadataIfAbsent, cancel, cancelCheck, completedAt, context, findMetadata, id, incIteration, input, internalSuspend, output, outputAs, removeMetadata, resume, startedAt, startExecution, status, status, suspend, suspendedCheck, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • of

      public static io.serverlessworkflow.impl.WorkflowInstance of(io.serverlessworkflow.impl.WorkflowDefinition definition, PersistenceWorkflowInfo info)
    • start

      public CompletableFuture<io.serverlessworkflow.impl.WorkflowModel> start()
      Specified by:
      start in interface io.serverlessworkflow.impl.WorkflowInstance
      Overrides:
      start in class io.serverlessworkflow.impl.WorkflowMutableInstance
    • restoreContext

      public void restoreContext(io.serverlessworkflow.impl.WorkflowContext workflow, io.serverlessworkflow.impl.TaskContext context)
      Overrides:
      restoreContext in class io.serverlessworkflow.impl.WorkflowMutableInstance