camundala.helper.setup.BpmnProcessGenerator.scala Maven / Gradle / Ivy
The newest version!
package camundala.helper.setup
case class BpmnProcessGenerator()(using config: SetupConfig):
def createBpmn(setupElement: SetupElement): Unit =
val name = s"${setupElement.identifierShort}.bpmn"
os.write.over(
bpmnPath / name,
bpmn(setupElement)
)
end createBpmn
private lazy val bpmnPath =
val dir = config.projectDir / config.bpmnPath
os.makeDir.all(dir)
dir
end bpmnPath
private def bpmn(setupElement: SetupElement) =
val processId = setupElement.identifier
s"""
|
|
|
|
|
|
|
|
| output-mocked
|
|
| Flow_1jqb7g9
| Flow_151h2k5
|
|
| Flow_1tnbvod
|
|
|
|
|
|
| Flow_151h2k5
|
|
| Flow_1tnbvod
|
|
|
|
|
|
| Flow_1jqb7g9
|
|
|
|
|
|
| Flow_0vdwlr8
|
|
| Flow_0vdwlr8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|""".stripMargin
end bpmn
end BpmnProcessGenerator