class WorkflowDef[S] extends AnyRef
- Source
- AbstractWorkflow.scala
- Alphabetic
- By Inheritance
- WorkflowDef
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new WorkflowDef(_steps: ArrayBuffer[Step] = ArrayBuffer.empty, _stepConfigs: ArrayBuffer[StepConfig] = ArrayBuffer.empty, uniqueNames: Set[String] = mutable.Set.empty, _workflowTimeout: Option[FiniteDuration] = None, _failoverStepName: Option[String] = None, _failoverStepInput: Option[Any] = None, _failoverMaxRetries: Option[MaxRetries] = None, _stepTimeout: Option[FiniteDuration] = None, _stepRecoverStrategy: Option[RecoverStrategy[_]] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from WorkflowDef[S] toany2stringadd[WorkflowDef[S]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (WorkflowDef[S], B)
- Implicit
- This member is added by an implicit conversion from WorkflowDef[S] toArrowAssoc[WorkflowDef[S]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addStep(step: Step, recoverStrategy: RecoverStrategy[_]): WorkflowDef[S]
Add step to workflow definition with a dedicated RecoverStrategy.
Add step to workflow definition with a dedicated RecoverStrategy. Step name must be unique.
- step
A workflow step
- recoverStrategy
A Step recovery strategy
- def addStep(step: Step): WorkflowDef[S]
Add step to workflow definition.
Add step to workflow definition. Step name must be unique.
- step
A workflow step
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def defaultStepRecoverStrategy(recoverStrategy: RecoverStrategy[_]): WorkflowDef[S]
Define a default step recovery strategy.
Define a default step recovery strategy. Can be overridden with step configuration.
- def defaultStepTimeout(timeout: FiniteDuration): WorkflowDef[S]
Define a default step timeout.
Define a default step timeout. If not set, a default value of 5 seconds is used. Can be overridden with step configuration.
- def ensuring(cond: (WorkflowDef[S]) => Boolean, msg: => Any): WorkflowDef[S]
- Implicit
- This member is added by an implicit conversion from WorkflowDef[S] toEnsuring[WorkflowDef[S]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (WorkflowDef[S]) => Boolean): WorkflowDef[S]
- Implicit
- This member is added by an implicit conversion from WorkflowDef[S] toEnsuring[WorkflowDef[S]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): WorkflowDef[S]
- Implicit
- This member is added by an implicit conversion from WorkflowDef[S] toEnsuring[WorkflowDef[S]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): WorkflowDef[S]
- Implicit
- This member is added by an implicit conversion from WorkflowDef[S] toEnsuring[WorkflowDef[S]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failoverMaxRetries: Option[MaxRetries]
- def failoverStepInput: Option[_]
- def failoverStepName: Option[String]
- def failoverTo[I](stepName: String, stepInput: I, maxRetries: MaxRetries): WorkflowDef[S]
Define a failover step name after workflow timeout.
Define a failover step name after workflow timeout. Note that recover strategy for this step can set only the number of max retries.
- stepName
A failover step name
- stepInput
A failover step input
- maxRetries
A recovery strategy for failover step.
- def failoverTo(stepName: String, maxRetries: MaxRetries): WorkflowDef[S]
Define a failover step name after workflow timeout.
Define a failover step name after workflow timeout. Note that recover strategy for this step can set only the number of max retries.
- stepName
A failover step name
- maxRetries
A recovery strategy for failover step.
- def findByName(name: String): Option[Step]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def stepConfigs: List[StepConfig]
- def stepRecoverStrategy: Option[RecoverStrategy[_]]
- def stepTimeout: Option[FiniteDuration]
- def steps: List[Step]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timeout(timeout: FiniteDuration): WorkflowDef[S]
Define a timeout for the duration of the entire workflow.
Define a timeout for the duration of the entire workflow. When the timeout expires, the workflow is finished and no transitions are allowed.
- timeout
Timeout duration
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def workflowTimeout: Option[FiniteDuration]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from WorkflowDef[S] toStringFormat[WorkflowDef[S]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (WorkflowDef[S], B)
- Implicit
- This member is added by an implicit conversion from WorkflowDef[S] toArrowAssoc[WorkflowDef[S]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.