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

camundala.helper.setup.BpmnProcessGenerator.scala Maven / Gradle / Ivy

There is a newer version: 1.30.23
Show 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"""
       |
       |  
       |    
       |  
       |  
       |    
       |      Flow_1jqb7g9
       |      
       |    
       |    
       |      
       |        
       |          output-mocked, validation-failed
       |        
       |      
       |      Flow_1jqb7g9
       |      Flow_151h2k5
       |    
       |    
       |      Flow_1szk79c
       |      
       |    
       |    
       |      Flow_1tnbvod
       |      
       |    
       |    
       |      
       |        
       |      
       |      Flow_151h2k5
       |    
       |    
       |      
       |        
       |      
       |      Flow_0vdwlr8
       |    
       |    
       |      
       |        
       |      
       |      Flow_1canyvf
       |      
       |    
       |    
       |      Flow_1canyvf
       |      
       |    
       |    
       |      Flow_0vdwlr8
       |      
       |    
       |    
       |      Flow_1tnbvod
       |      
       |    
       |    
       |      Flow_1szk79c
       |      
       |    
       |    
       |    
       |    
       |    
       |    
       |    
       |  
       |  
       |  
       |  
       |  
       |  
       |    
       |      
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |          
       |        
       |      
       |      
       |        
       |        
       |      
       |      
       |        
       |        
       |      
       |      
       |        
       |        
       |      
       |      
       |        
       |        
       |      
       |      
       |        
       |        
       |      
       |      
       |        
       |        
       |      
       |    
       |  
       |
       |""".stripMargin
  end bpmn
end BpmnProcessGenerator




© 2015 - 2024 Weber Informatics LLC | Privacy Policy