EventShape

works.iterative.workflow.EventShape
final case class EventShape[Event](label: String, matcher: PartialFunction[Event, Unit])

The declared event-type skeleton for an outcome.

The conformance harness asserts set-equality between an outcome's declared emits shapes and what its real emit produces.

Value parameters

label

stable identifier for this event shape

matcher

partial function defined exactly on the events this shape matches

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def matches(e: Event): Boolean

Total — never throws, even for an event the matcher is not defined at.

Total — never throws, even for an event the matcher is not defined at.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product