Trait

com.bazaarvoice.sswf

WorkflowDefinition

Related Doc: package sswf

Permalink

trait WorkflowDefinition[SSWFInput, StepEnum <: Enum[StepEnum] with WorkflowStep] extends AnyRef

This is where you specify how the workflow executes.

SSWFInput

The JVM object representing your workflow input.

StepEnum

The enum containing workflow step definitions

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WorkflowDefinition
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def act(step: StepEnum, input: SSWFInput, stepInput: StepInput, heartbeatCallback: HeartbeatCallback): StepResult

    Permalink

    Run whatever behaviour needs to be run for the given step.

    Run whatever behaviour needs to be run for the given step. There is a recommended strategy for writing these things: see https://github.com/bazaarvoice/super-simple-workflow/blob/master/README.md#writing-steps

    step

    The action to take next

    input

    The input to the workflow

    stepInput

    The input to this particular step

    heartbeatCallback

    A function to call to report liveness and progress. Response true if cancellation is requested.

    returns

    The outcome of the execution.

  2. abstract def onFail(workflowId: String, runId: String, input: SSWFInput, history: StepsHistory[SSWFInput, StepEnum], message: String): Unit

    Permalink

    A hook that gets called when the workflow fails.

    A hook that gets called when the workflow fails. Use this for example to send a notification with an explanation of what happened.

    input

    The workflow input

    history

    The history of what happened in the workflow execution.

    message

    A summary of the failure. This is what we also send to SWF as the workflow "result".

  3. abstract def onFinish(workflowId: String, runId: String, input: SSWFInput, history: StepsHistory[SSWFInput, StepEnum], message: String): Unit

    Permalink

    A hook that gets called when the workflow completes successfully.

    A hook that gets called when the workflow completes successfully. Use this for example to send a notification that the workflow is complete.

    input

    The workflow input

    history

    The history of what happened in the workflow execution.

    message

    A description of the workflow result. This is what we also send to SWF as the workflow "result".

  4. abstract def workflow(input: SSWFInput): List[ScheduledStep[StepEnum]]

    Permalink

    Simply return a list of the workflow steps to execute.

    Simply return a list of the workflow steps to execute.

    input

    The input to the workflow

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped