ProcessVariablesExtractor

camundala.camunda7.worker.ProcessVariablesExtractor$

Validator to validate the input variables automatically.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Types

type GeneralVariableType = () ?=> Either[BadVariableError, GeneralVariables]
type VariableType = () ?=> Seq[Either[BadVariableError, (String, Option[Json])]]

Value members

Concrete methods

def extract(variableNames: Seq[String]): VariableType

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.

Returns the Variable in the Bag. B if there is no Variable with that identifier.

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.

Analog variable(String vari). You can define a Value that is returned if there is no Variable with this name.

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.

Returns the Variable in the Bag. If there is none it return null. It returns whatever datatype the variable contains.

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