Skip to content

Commit

Permalink
feat: set the process instance key when a timer triggered (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
saig0 authored Dec 3, 2022
1 parent 11af7a4 commit 1142d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/src/main/kotlin/io/zeebe/zeeqs/data/entity/Timer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Timer(
val dueDate: Long,
var repetitions: Int,
val elementId: String,
val processInstanceKey: Long?,
var processInstanceKey: Long?,
val elementInstanceKey: Long?,
val processDefinitionKey: Long?
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ class HazelcastImporter(
"TRIGGERED" -> {
entity.state = TimerState.TRIGGERED
entity.endTime = record.metadata.timestamp
entity.processInstanceKey = record.processInstanceKey
}
"CANCELED" -> {
entity.state = TimerState.CANCELED
Expand Down

0 comments on commit 1142d41

Please sign in to comment.