All Downloads are FREE. Search and download functionalities are using the official Maven repository.

camundala.bpmn.BpmnMessageEventDsl.scala Maven / Gradle / Ivy

There is a newer version: 1.30.23
Show newest version
package camundala.bpmn

import camundala.domain.*

import scala.reflect.ClassTag

trait BpmnMessageEventDsl extends BpmnDsl:

  def messageName: String

  def messageEvent[
      Msg <: Product: InOutEncoder: InOutDecoder: Schema
  ](
      in: Msg = NoInput(),
      id: Option[String] = None
  ): MessageEvent[Msg] =
    MessageEvent(
      messageName,
      InOutDescr(
        id.getOrElse(messageName),
        in,
        NoOutput(),
        msgNameDescr(messageName)
      )
    )
end BpmnMessageEventDsl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy