-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Tinkoff/feature/upgrade-to-camunda-7-14
update camunda version to 7.14.0
- Loading branch information
Showing
14 changed files
with
179 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
object Versions { | ||
const val KOTLIN = "1.5.31" | ||
const val CAMUNDA = "7.13.0" | ||
const val CAMUNDA = "7.14.0" | ||
const val DETEKT = "1.18.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...or-test/src/test/kotlin/ru/tinkoff/top/camunda/delegator/test/TestCamundaConfiguration.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...c/main/kotlin/ru/tinkoff/top/camunda/delegator/config/DelegatorBpmnParserCamundaPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package ru.tinkoff.top.camunda.delegator.config | ||
|
||
import mu.KLogging | ||
import org.camunda.bpm.engine.ProcessEngine | ||
import org.camunda.bpm.engine.impl.cfg.BpmnParseFactory | ||
import org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl | ||
import org.camunda.bpm.engine.impl.cfg.ProcessEnginePlugin | ||
import org.camunda.bpm.engine.impl.el.ExpressionManager | ||
|
||
/** | ||
* Registers delegatorBpmnParseFactory as BpmnParseFactor and delegatorExpressionManager. | ||
*/ | ||
class DelegatorBpmnParserCamundaPlugin( | ||
private val delegatorExpressionManager: ExpressionManager, | ||
private val delegatorBpmnParseFactory: BpmnParseFactory | ||
) : ProcessEnginePlugin { | ||
|
||
companion object : KLogging() | ||
|
||
override fun preInit(processEngineConfiguration: ProcessEngineConfigurationImpl) { | ||
logger.info { "Bpm parser camunda plugin is started" } | ||
|
||
with(processEngineConfiguration) { | ||
expressionManager = delegatorExpressionManager | ||
bpmnParseFactory = delegatorBpmnParseFactory | ||
} | ||
} | ||
|
||
override fun postProcessEngineBuild(processEngine: ProcessEngine?) = Unit | ||
|
||
override fun postInit(processEngineConfiguration: ProcessEngineConfigurationImpl?) = Unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...delegator/src/test/kotlin/ru/tinkoff/top/camunda/delegator/example/CamundaJavaDelegate.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package ru.tinkoff.top.camunda.delegator.example | ||
|
||
import org.camunda.bpm.engine.delegate.DelegateExecution | ||
import org.camunda.bpm.engine.delegate.JavaDelegate | ||
|
||
class CamundaJavaDelegate : JavaDelegate { | ||
override fun execute(execution: DelegateExecution) { | ||
execution.setVariable("javaDelegateVariableName", "javaDelegateVariableValue") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...ator/src/test/kotlin/ru/tinkoff/top/camunda/delegator/process/TestCamundaConfiguration.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.