Runner

camundala.camunda7.worker.Runner
trait Runner[In <: Product, Out <: Product] extends CamundaHelper

Allows you to initialize variables of the process with default values

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CamundalaWorker[In, Out]
trait ServiceWorker[In, Out, ServiceIn, ServiceOut]

Members list

Type members

Types

type RunnerOutput = () ?=> Either[CamundalaWorkerError, Option[Out]]

Value members

Concrete methods

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

Inherited methods

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
def jsonVariableOpt(varKey: String | InputParams): () ?=> Either[BadVariableError, Option[Json]]

Attributes

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

Attributes

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