ServiceWorker

camundala.camunda7.worker.ServiceWorker
trait ServiceWorker[In <: Product, Out <: Product, ServiceIn, ServiceOut](implicit evidence$1: Codec[In], evidence$2: Codec[Out], evidence$3: Encoder[ServiceIn], evidence$4: Decoder[ServiceOut]) extends CamundalaWorker[In, Out]

Attributes

Graph
Supertypes
class CamundalaWorker[In, Out]
trait ExternalTaskHandler
trait Runner[In, Out]
trait Mocker[Out]
trait Initializer[In]
trait Validator[In]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

type BodyType = () ?=> Either[CamundalaWorkerError, Option[ServiceIn]]
type OutputType = () ?=> Either[CamundalaWorkerError, Option[Out]]

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 defaultServiceMock: ServiceOut
protected def httpMethod: Method
protected def sendRequest(request: Request[Either[String, String], Any], optReqBody: Option[ServiceIn]): Either[ServiceError, RequestOutput[ServiceOut]]
protected def serviceBasePath: String

Concrete methods

override protected def defaultHandledErrorCodes: Seq[ErrorCodes]

Attributes

Definition Classes
protected def defaultHeaders: Map[String, String]
override protected def defaultMock: Out

Attributes

Definition Classes
override protected def getDefaultMock: MockerOutput

Attributes

Definition Classes
protected def mapBodyInput(inputObject: In): BodyType
protected def mapBodyOutput(outputBody: ServiceOut, headers: Map[String, String]): OutputType
protected def mapBodyOutput(requestOutput: RequestOutput[ServiceOut]): OutputType
protected def mapBodyOutput(serviceOutput: ServiceOut, headers: Seq[Seq[String]]): OutputType
protected def queryParamKeys: Seq[String | (String, String)]
override protected def runWork(inputObject: In, optOutMock: Option[Out]): RunnerOutput

Attributes

Definition Classes
protected def servicePath(inputObject: In): RelPath

Inherited methods

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

Attributes

Inherited from:
Mocker
override def execute(externalTask: ExternalTask, externalTaskService: ExternalTaskService): Unit

Attributes

Definition Classes
CamundalaWorker -> ExternalTaskHandler
Inherited from:
CamundalaWorker
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
override protected def initialize(inputObject: In): InitializerOutput

Attributes

Definition Classes
Inherited from:
CamundalaWorker
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 serviceDefaults(initVariables: Map[String, Any]): Right[Nothing, Map[String, Any]]

Attributes

Inherited from:
CamundalaWorker
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

Concrete fields

protected val isService: Boolean

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