Packages

case class Saga(loc: At, id: Definitions.Identifier, options: Seq[Definitions.SagaOption] = Seq.empty[SagaOption], input: Option[Definitions.Aggregation] = None, output: Option[Definitions.Aggregation] = None, sagaSteps: Seq[SagaStep] = Seq.empty[SagaStep], functions: Seq[Function] = Seq.empty[Function], inlets: Seq[Inlet] = Seq.empty[Inlet], outlets: Seq[Outlet] = Seq.empty[Outlet], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], includes: Seq[Include[Definitions.SagaDefinition]] = Seq.empty[Include[SagaDefinition]], terms: Seq[Term] = Seq.empty[Term], brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None) extends VitalDefinition[SagaOption, SagaDefinition] with ContextDefinition with Product with Serializable

The definition of a Saga based on inputs, outputs, and the set of SagaSteps involved in the saga. Sagas define a computing action based on a variety of related commands that must all succeed atomically or have their effects undone.

loc

The location of the Saga definition

id

The name of the saga

options

The options of the saga

input

A definition of the aggregate input values needed to invoke the saga, if any.

output

A definition of the aggregate output values resulting from invoking the saga, if any.

sagaSteps

The set of SagaSteps that comprise the saga.

brief

A brief description (one sentence) for use in documentation

description

An optional description of the saga.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Saga
  2. Serializable
  3. Product
  4. Equals
  5. ContextDefinition
  6. VitalDefinition
  7. WithTerms
  8. WithIncludes
  9. WithAuthors
  10. WithOptions
  11. Definition
  12. Container
  13. BrieflyDescribedValue
  14. DescribedValue
  15. RiddlValue
  16. RiddlNode
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Saga(loc: At, id: Definitions.Identifier, options: Seq[Definitions.SagaOption] = Seq.empty[SagaOption], input: Option[Definitions.Aggregation] = None, output: Option[Definitions.Aggregation] = None, sagaSteps: Seq[SagaStep] = Seq.empty[SagaStep], functions: Seq[Function] = Seq.empty[Function], inlets: Seq[Inlet] = Seq.empty[Inlet], outlets: Seq[Outlet] = Seq.empty[Outlet], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], includes: Seq[Include[Definitions.SagaDefinition]] = Seq.empty[Include[SagaDefinition]], terms: Seq[Term] = Seq.empty[Term], brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)

    loc

    The location of the Saga definition

    id

    The name of the saga

    options

    The options of the saga

    input

    A definition of the aggregate input values needed to invoke the saga, if any.

    output

    A definition of the aggregate output values resulting from invoking the saga, if any.

    sagaSteps

    The set of SagaSteps that comprise the saga.

    brief

    A brief description (one sentence) for use in documentation

    description

    An optional description of the saga.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val authors: Seq[AuthorRef]
    Definition Classes
    SagaWithAuthors
  6. implicit def bool2int(b: Boolean): Int

    Implicit conversion of boolean to Int for easier computation of statistics below

    Implicit conversion of boolean to Int for easier computation of statistics below

    b

    The boolean to convert to an Int

    Definition Classes
    VitalDefinition
  7. val brief: Option[Definitions.LiteralString]
    Definition Classes
    SagaBrieflyDescribedValue
  8. def briefValue: String
    Definition Classes
    BrieflyDescribedValue
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  10. def completeness: (Int, Int)

    Compute the completeness of this definition.

    Compute the completeness of this definition. Vital definitions should have options, terms, and authors but includes are optional. Incompleteness is signalled by child definitions that are empty.

    returns

    A numerator and denominator for percent complete

    Definition Classes
    VitalDefinition
  11. lazy val contents: Seq[Definitions.SagaDefinition]
    Definition Classes
    SagaWithIncludesContainer
  12. val description: Option[Definitions.Description]
    Definition Classes
    SagaDescribedValue
  13. def descriptionValue: String
    Definition Classes
    DescribedValue
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def find(name: String): Option[Definitions.Definition]
    Definition Classes
    Definition
  16. def format: String

    Format the node to a string

    Format the node to a string

    Definition Classes
    WithOptionsRiddlNode
  17. val functions: Seq[Function]
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. def getOptionValue[OPT <: Definitions.SagaOption](implicit arg0: ClassTag[OPT]): Option[Seq[Definitions.LiteralString]]
    Definition Classes
    WithOptions
  20. def hasAuthors: Boolean
    Definition Classes
    WithAuthorsDefinition
  21. def hasOption[OPT <: Definitions.SagaOption](implicit arg0: ClassTag[OPT]): Boolean
    Definition Classes
    WithOptions
  22. def hasOptions: Boolean
    Definition Classes
    WithOptionsDefinition
  23. def hasTerms: Boolean
    Definition Classes
    WithTerms
  24. def hasTypes: Boolean
    Definition Classes
    Definition
  25. val id: Definitions.Identifier
    Definition Classes
    SagaDefinition
  26. def identify: String
    Definition Classes
    Definition
  27. def identifyWithLoc: String
    Definition Classes
    Definition
  28. val includes: Seq[Include[Definitions.SagaDefinition]]
    Definition Classes
    SagaWithIncludes
  29. val inlets: Seq[Inlet]
  30. val input: Option[Definitions.Aggregation]
  31. def isContainer: Boolean

    Determine if this node is a container or not

    Determine if this node is a container or not

    Definition Classes
    ContainerRiddlNode
  32. def isEmpty: Boolean

    determine if this node is empty or not.

    determine if this node is empty or not. Non-containers are always empty

    Definition Classes
    SagaWithOptionsContainerRiddlNode
  33. def isImplicit: Boolean
    Definition Classes
    Definition
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def isRootContainer: Boolean
    Definition Classes
    Container
  36. def isVital: Boolean
    Definition Classes
    VitalDefinitionDefinition
  37. final val kind: String
    Definition Classes
    SagaDefinition
  38. val loc: At

    The location in the parse at which this RiddlValue occurs

    The location in the parse at which this RiddlValue occurs

    Definition Classes
    SagaRiddlValue
  39. def maturity: Int

    Compute the 'maturity' of a definition.

    Compute the 'maturity' of a definition. Maturity is a score with no maximum but with scoring rules that target 100 points per definition. Maturity is broken down this way:

    • has a description - up to 50 points depending on # of non empty lines
    • has a brief description - 5 points
    • has options specified - 5 points
    • has terms defined -
    • has an author in or above the definition - 5 points \-
    • definition specific things: 0.65
    Definition Classes
    SagaVitalDefinition
  40. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. final def nonEmpty: Boolean
    Definition Classes
    RiddlNode
    Annotations
    @deprecatedOverriding()
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  44. val options: Seq[Definitions.SagaOption]
    Definition Classes
    SagaWithOptions
  45. val outlets: Seq[Outlet]
  46. val output: Option[Definitions.Aggregation]
  47. def productElementNames: Iterator[String]
    Definition Classes
    Product
  48. val sagaSteps: Seq[SagaStep]
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. val terms: Seq[Term]
    Definition Classes
    SagaWithTerms
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ContextDefinition

Inherited from WithTerms

Inherited from WithAuthors

Inherited from Definitions.Definition

Inherited from Definitions.RiddlValue

Inherited from Definitions.RiddlNode

Inherited from AnyRef

Inherited from Any

Ungrouped