camundala.bpmn.exports.scala Maven / Gradle / Ivy
package camundala
package bpmn
import domain.*
import io.circe.syntax.*
import scala.compiletime.{constValue, constValueTuple}
val camundaVersion = "7.15"
// os
export os.{pwd, Path, ResourcePath, read}
// sttp
export sttp.model.StatusCode
def toJsonString[T <: Product: Encoder](product: T): String =
product.asJson.deepDropNullValues.toString
@deprecated("Use `Optable`.")
def maybe[T](value: T | Option[T]): Option[T] = value match
case v: Option[?] => v.asInstanceOf[Option[T]]
case v => Some(v.asInstanceOf[T])
def cawemoDescr(descr: String, cawemoLink: String) =
s"""
|$descr
|
|
|""".stripMargin
inline def nameOfVariable(inline x: Any): String = ${ NameFromVariable.nameOfVariable('x) }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy