From b765f121d25e59dbc49c2b82b5d4d4f04427cc5a Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com> Date: Tue, 30 Jan 2024 22:20:23 +0100 Subject: [PATCH] [Fix_#3384] Including business key on process instance state event (#3385) --- .../org/kie/kogito/event/impl/ProcessInstanceEventBatch.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api/kogito-events-core/src/main/java/org/kie/kogito/event/impl/ProcessInstanceEventBatch.java b/api/kogito-events-core/src/main/java/org/kie/kogito/event/impl/ProcessInstanceEventBatch.java index 96a34dba476..4f153ec5fd9 100644 --- a/api/kogito-events-core/src/main/java/org/kie/kogito/event/impl/ProcessInstanceEventBatch.java +++ b/api/kogito-events-core/src/main/java/org/kie/kogito/event/impl/ProcessInstanceEventBatch.java @@ -309,6 +309,7 @@ private ProcessInstanceStateDataEvent toProcessInstanceStateEvent(ProcessEvent e .rootProcessId(pi.getRootProcessId()) .rootProcessInstanceId(pi.getRootProcessInstanceId()) .state(event.getProcessInstance().getState()) + .businessKey(pi.getBusinessKey()) .slaDueDate(pi.getSlaDueDate()); String securityRoles = (String) event.getProcessInstance().getProcess().getMetaData().get("securityRoles");