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
I have such worker
bpmn:intermediateCatchEvent
...
bpmn:timerEventDefinition"
<bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5M</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:intermediateCatchEvent>
How could I resolve it by completeTask?
There is example of test for worker with timeDuration's value not in string, but in variable "properties.timerDurations.DURATION"
completeTask(
jobType = T.workerType,
variables = mapOf(
"status" to "PROCESSING", "properties" to mapOf(
"timerDurations" to mapOf(
"DURATION" to
Duration.ofSeconds(1).toString()
)
)
)
)
In your process, you have a timer catch event. The timer waits until the given duration is over. You can't trigger a timer event using completeTask() as this works only for service tasks.
Currently, bpmn-spec has no action to trigger a timer event. We would need to add this feature.
@IKurganov I don't plan to implement the feature soon. However, I'm open to contributions. 😅
I don't maintain this project actively anymore. Instead, I'm working on the new official process testing library of Camunda 8: Camunda Process Test. Eventually, the new library will provide a similar way to define the test cases and replace this community project.
Hello! Need your help
I have such worker
bpmn:intermediateCatchEvent
...
bpmn:timerEventDefinition"
<bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT5M</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:intermediateCatchEvent>
How could I resolve it by completeTask?
There is example of test for worker with timeDuration's value not in string, but in variable "properties.timerDurations.DURATION"
completeTask(
jobType = T.workerType,
variables = mapOf(
"status" to "PROCESSING", "properties" to mapOf(
"timerDurations" to mapOf(
"DURATION" to
Duration.ofSeconds(1).toString()
)
)
)
)
scheme:
bpmn:timerEventDefinition
<bpmn:timeDuration xsi:type="bpmn:tFormalExpression">= properties.timerDurations.DURATION</bpmn:timeDuration>
</bpmn:timerEventDefinition>
The text was updated successfully, but these errors were encountered: