trait Operation[-Input, +Result] extends AnyRef

Operation describes the way a zio-flow workflow communicates with the outside world.

An operation always has an input value of type Input, and a result value of type Result. What the operation does with the input value to get the result depends on the actual operation's other properties.

Both the input and the result types need to have a schema, because the workflow executor may need to encode/decode values when communicating with an external service.

Currently the only supported operation is the Operation.Http operation.

Operations are not directly used from the zio-flow programs, but through Activity values.

When writing tests for workflows the MockedOperation class provides capabilities to mock these operations instead of using the real operation executor.

Self Type
Operation[Input, Result]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Operation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val inputSchema: Schema[_ >: Input]
  2. abstract val resultSchema: Schema[_ <: Result]

Concrete 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. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def contramap[Input2](f: (Remote[Input2]) ⇒ Remote[Input])(implicit arg0: Schema[Input2]): Operation[Input2, Result]

    Defines an operation that performs the same thing but it's input gets transformed by the given remote function first.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def map[Result2](f: (Remote[Result]) ⇒ Remote[Result2])(implicit arg0: Schema[Result2]): Operation[Input, Result2]

    Defines an operation that performs the same thing and then transforms the result with the given remote function.

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped