Skip to content

Commit

Permalink
Merge pull request #297 from holunda-io/dependabot/maven/camunda.vers…
Browse files Browse the repository at this point in the history
…ion-7.22.0

Bump camunda.version from 7.21.0 to 7.22.0
  • Loading branch information
zambrovski authored Oct 8, 2024
2 parents 153f894 + 40d39f8 commit 8f29a6c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class ApprovalProcessBean(
private val processEngine: ProcessEngine
) : Supplier<ProcessInstance> {

/**
* Main attributes.
*/
companion object {
const val KEY = "approval"
const val RESOURCE = "approval.bpmn"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class ApprovalProcessBean(
private val processEngine: ProcessEngine
) : Supplier<ProcessInstance> {

/**
* Main attributes.
*/
companion object {
const val KEY = "approval"
const val RESOURCE = "approval.bpmn"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ object TestProcessEngine {
configuration.isJobExecutorActivate = false
configuration.isDbMetricsReporterActivate = false
configuration.expressionManager = MockExpressionManager()
configuration.isTelemetryReporterActivate = false
configuration.isInitializeTelemetry = false
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ class ProcessStage<SELF : ProcessStage<SELF, PROCESS_BEAN>, PROCESS_BEAN : Suppl
* @param activityId activities the execution is waiting at.
* @return fluent stage.
*/
@As("process continues")
fun process_continues(vararg activityId: String) = job_is_executed(*activityId)
@As("process continues with activities $")
fun process_continues(@QuotedVarargs vararg activityId: String) = job_is_executed(*activityId)


/**
Expand Down Expand Up @@ -504,7 +504,7 @@ class ProcessStage<SELF : ProcessStage<SELF, PROCESS_BEAN>, PROCESS_BEAN : Suppl
* @param activityId id of the activity the job is waiting in.
* @return fluent stage.
*/
fun job_is_executed(vararg activityId: String) = step {
fun job_is_executed(@QuotedVarargs vararg activityId: String) = step {
require(activityId.isNotEmpty()) { "At least one activity id must be provided" }
activityId.map {
val job = job(it)
Expand Down Expand Up @@ -580,16 +580,6 @@ class ProcessStage<SELF : ProcessStage<SELF, PROCESS_BEAN>, PROCESS_BEAN : Suppl
assertThat(externalTasks).isNotEmpty
}


/**
* Completes external task.
*
* @param topicName name of the topic.
* @param workerName optional, defaults to `test-worker`
* @param variables variables to set on completion, optional, defaults to empty map.
* @param isAsyncAfter executes the async job after completion, optional, defaults to `false`.
* @return fluent stage.
*/
private fun externalTaskIsCompleted(
topicName: String,
workerName: String = "test-worker",
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


<properties>
<camunda.version>7.21.0</camunda.version>
<camunda.version>7.22.0</camunda.version>
<jgiven.version>1.3.1</jgiven.version>
<assertj.version>3.26.3</assertj.version>
<jgiven-kotlin.version>1.3.1.0</jgiven-kotlin.version>
Expand Down

0 comments on commit 8f29a6c

Please sign in to comment.