CamundalaWorker

camundala.camunda7.worker.CamundalaWorker
abstract class CamundalaWorker[In <: Product, Out <: Product](implicit evidence$1: Codec[In], evidence$2: Codec[Out]) extends Validator[In], Initializer[In], Mocker[Out], Runner[In, Out], ExternalTaskHandler

Attributes

Graph
Supertypes
trait ExternalTaskHandler
trait Runner[In, Out]
trait Mocker[Out]
trait Initializer[In]
trait Validator[In]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait ServiceWorker[In, Out, ServiceIn, ServiceOut]
Self type
CamundalaWorker[In, Out]

Members list

Type members

Inherited types

type InitializerOutput = () ?=> Either[CamundalaWorkerError, Map[String, Any]]

Attributes

Inherited from:
Initializer
protected type MockerOutput = () ?=> Either[MockerError | MockedOutput, Option[Out]]

Attributes

Inherited from:
Mocker
type RunnerOutput = () ?=> Either[CamundalaWorkerError, Option[Out]]

Attributes

Inherited from:
Runner
type ValidatorType = () ?=> Either[ValidatorError, In]

Attributes

Inherited from:
Validator

Value members

Abstract methods

protected def defaultMock: Out

Concrete methods

protected def defaultHandledErrorCodes: Seq[ErrorCodes]
override def execute(externalTask: ExternalTask, externalTaskService: ExternalTaskService): Unit

Attributes

Definition Classes
ExternalTaskHandler
override protected def getDefaultMock: MockerOutput

Attributes

Definition Classes
override protected def initialize(inputObject: In): InitializerOutput

Attributes

Definition Classes
protected def serviceDefaults(initVariables: Map[String, Any]): Right[Nothing, Map[String, Any]]

Inherited methods

protected def decodeMock[A <: Product : Decoder](json: Json): Either[MockerError | MockedOutput, Option[A]]

Attributes

Inherited from:
Mocker
def extractSeqFromArrayOrString(varKey: String | InputParams, defaultSeq: Seq[String | ErrorCodes]): () ?=> Either[BadVariableError, Seq[String]]

Attributes

Inherited from:
CamundaHelper
def extractSeqFromArrayOrString(varKey: String | InputParams): () ?=> Either[BadVariableError, Seq[String]]

Attributes

Inherited from:
CamundaHelper
def extractValue(typedValue: TypedValue): Either[BadVariableError, Json]

Attributes

Inherited from:
CamundaHelper
protected def isService: Boolean

Attributes

Inherited from:
Mocker
def jsonVariableOpt(varKey: String | InputParams): () ?=> Either[BadVariableError, Option[Json]]

Attributes

Inherited from:
CamundaHelper
def mockOrProceed(): () ?=> Either[MockerError | MockedOutput, Option[Out]]

Attributes

Inherited from:
Mocker
protected def parsedMock(outputMock: Any): Either[MockerError, Json]

Attributes

Inherited from:
Mocker
protected def prototype: In

Attributes

Inherited from:
Validator
protected def runWork(inputObject: In, optOutMock: Option[Out]): RunnerOutput

Attributes

Inherited from:
Runner
def topicName: () ?=> String

Attributes

Inherited from:
CamundaHelper
protected def validate(): ValidatorType

Attributes

Inherited from:
Validator
protected def validate(in: In): ValidatorType

Attributes

Inherited from:
Validator
def variable[T : Decoder](varKey: String | InputParams): () ?=> Either[BadVariableError, T]

Returns the Variable in the Bag. B if there is no Variable with that identifier. Usage: myVar = variableString println("Say: $myVar")

Returns the Variable in the Bag. B if there is no Variable with that identifier. Usage: myVar = variableString println("Say: $myVar")

Attributes

Inherited from:
CamundaHelper
def variable[A : Decoder](varKey: String | InputParams, defaultObj: A): () ?=> Either[BadVariableError, A]

Analog variable(String vari). You can define a Value that is returned if there is no Variable with this name. Usage: myVar = variable("myVar", "hello") println("Say: $myVar")

Analog variable(String vari). You can define a Value that is returned if there is no Variable with this name. Usage: myVar = variable("myVar", "hello") println("Say: $myVar")

Attributes

Inherited from:
CamundaHelper
def variableOpt[A : Decoder](varKey: String | InputParams): () ?=> Either[BadVariableError, Option[A]]

Returns the Variable in the Bag. If there is none it return null. It returns whatever datatype the variable contains. Usage: myVar = variableOpt("myVar") println("Say: $myVar")

Returns the Variable in the Bag. If there is none it return null. It returns whatever datatype the variable contains. Usage: myVar = variableOpt("myVar") println("Say: $myVar")

Attributes

Inherited from:
CamundaHelper
def variableTypedOpt(varKey: String | InputParams): () ?=> Option[TypedValue]

Attributes

Inherited from:
CamundaHelper

Extensions

Inherited extensions

extension [T](option: Option[T])(option: Option[T])
def toEither[E <: CamundalaWorkerError](error: E): () ?=> Either[E, T]

Attributes

Inherited from:
CamundaHelper
def toEither(msg: String): () ?=> Either[BadVariableError, T]

Attributes

Inherited from:
CamundaHelper