InitProcessHandler

camundala.worker.InitProcessHandler
See theInitProcessHandler companion object
trait InitProcessHandler[In <: Product](implicit evidence$1: Codec[In])

handler for Custom Process Initialisation. All the variables in the Result Map will be put on the process.

For example if you want to init process Variables to a certain value.

Usage:

.withValidation(
  InitProcessHandler(
    (in: In) => {
     Right(
       Map("isCompany" -> true)
     ) // success
    }
  )
)

or (with implicit conversion)

.withValidation(
    (in: In) => {
     Right(
       Map("isCompany" -> true)
     ) // success
    }
)

Default is no Initialization.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def init(input: In): Either[InitProcessError, Map[String, Any]]