Skip to content

Instantly share code, notes, and snippets.

View edudant's full-sized avatar

Jiri Bubnik edudant

View GitHub Profile
@edudant
edudant / SpringBoot3CamundaConfiguration.kt
Last active May 10, 2023 18:50
Necessary configuration for Camunda 7.19 and Spring Boot 3.
package cz.datalite.tsm.process.camunda.boot3
import jakarta.persistence.EntityManager
import jakarta.persistence.EntityManagerFactory
import jakarta.persistence.PersistenceException
import jakarta.persistence.TransactionRequiredException
import org.camunda.bpm.engine.ProcessEngine
import org.camunda.bpm.engine.ProcessEngineException
import org.camunda.bpm.engine.impl.cfg.*
import org.camunda.bpm.engine.impl.context.Context
package cz.datalite.tsm.pm.model
import cz.datalite.tsm.commons.model.AbstractCodeTableEntity
import jakarta.persistence.ManyToOne
import java.util.*
class MaintenanceActivityType(
code: String, name: String,
@ManyToOne
package cz.datalite.tsm.pm.model
import cz.datalite.tsm.commons.model.AbstractCodeTableEntity
import java.util.*
class MaintenanceActivityGroup(
code: String, name: String,
) : AbstractCodeTableEntity<UUID>(code, name) {
}
package org.springframework.expression.spel.ast
import cz.datalite.tsm.commons.service.SpringContext
import cz.datalite.tsm.commons.service.TsmSpelService
import cz.datalite.tsm.commons.spel.SpelTestBean
import cz.datalite.tsm.commons.spel.extensions.SpelContextContributorBasicFunctions
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.springframework.context.support.StaticApplicationContext
package org.springframework.expression.spel.ast
import cz.datalite.tsm.commons.service.SpringContext
import cz.datalite.tsm.commons.service.TsmSpelService
import cz.datalite.tsm.commons.spel.SpelTestBean
import cz.datalite.tsm.commons.spel.extensions.SpelContextContributorBasicFunctions
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.springframework.context.support.StaticApplicationContext