You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engine-adapter/adapter-testing/src/main/kotlin/dev/bpmcrafters/processengineapi/test/BaseGivenWhenStage.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ class BaseGivenWhenStage : Stage<BaseGivenWhenStage>() {
97
97
taskId = userTaskId!!,
98
98
payloadSupplier = { emptyMap() }
99
99
)
100
-
)
100
+
).get()
101
101
}
102
102
103
103
fun`complete the external task`() = step {
@@ -108,7 +108,7 @@ class BaseGivenWhenStage : Stage<BaseGivenWhenStage>() {
108
108
taskId = externalTaskId!!,
109
109
payloadSupplier = { emptyMap() }
110
110
)
111
-
)
111
+
).get()
112
112
}
113
113
114
114
fun`unsubscribe user task subscription`() = step { unsubscribeTask() }
@@ -121,15 +121,15 @@ class BaseGivenWhenStage : Stage<BaseGivenWhenStage>() {
121
121
taskType = taskType,
122
122
taskDescriptionKey = taskDescriptionKey,
123
123
action = taskHandler,
124
-
termination = {} //nothing to do
124
+
termination = {this.externalTaskId =null} //wait until the termination delivers success
Copy file name to clipboardExpand all lines: engine-adapter/camunda-platform-7-embedded-core/src/main/kotlin/dev/bpmcrafters/processengineapi/adapter/c7/embedded/task/delivery/job/EmbeddedTaskDeliveryJobHandler.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ class EmbeddedTaskDeliveryJobHandler(
60
60
}
61
61
62
62
TYPE_SERVICE-> {
63
-
val serviceTask = commandContext.fetchAndLockExternalTask(configuration.executionId, workerId, lockTimeInSeconds)
63
+
val serviceTask = commandContext.fetchAndLockExternalTask(configuration.executionId, workerId, lockTimeInSeconds*1000)
64
64
logger.debug { "PROCESS-ENGINE-C7-EMBEDDED-023: Delivering external service task for execution ${configuration.executionId}, with task ${serviceTask.id}" }
Copy file name to clipboardExpand all lines: engine-adapter/camunda-platform-7-embedded-core/src/main/kotlin/dev/bpmcrafters/processengineapi/adapter/c7/embedded/task/delivery/pull/EmbeddedPullServiceTaskDelivery.kt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ class EmbeddedPullServiceTaskDelivery(
Copy file name to clipboardExpand all lines: engine-adapter/camunda-platform-7-embedded-core/src/test/kotlin/dev/bpmcrafters/processengineapi/adapter/c7/embedded/process/C7EmbeddedProcessTestHelper.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,8 @@ class C7EmbeddedProcessTestHelper(private val processEngine: ProcessEngine) : Pr
0 commit comments