This is an automated email from the ASF dual-hosted git repository.

egonzalez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git


The following commit(s) were added to refs/heads/main by this push:
     new c9584230bd [kie-issues#1965] Support re-scheduling Process Instances 
and Node Instances SLA timers (#6358)
c9584230bd is described below

commit c9584230bd4f8e7f4645a8ec5b33b3fbb68dee66
Author: Pere Fernández <[email protected]>
AuthorDate: Fri May 30 10:21:12 2025 +0200

    [kie-issues#1965] Support re-scheduling Process Instances and Node 
Instances SLA timers (#6358)
---
 .../api/event/process/ProcessEventListener.java    | 12 ++++++++++
 .../event/process/ProcessNodeStateChangeEvent.java | 23 ++++++++++++++++++
 .../api/event/process/ProcessStateChangeEvent.java | 28 ++++++++++++++++++++++
 3 files changed, 63 insertions(+)

diff --git 
a/kie-api/src/main/java/org/kie/api/event/process/ProcessEventListener.java 
b/kie-api/src/main/java/org/kie/api/event/process/ProcessEventListener.java
index 6ad3c467c1..d83937a18c 100644
--- a/kie-api/src/main/java/org/kie/api/event/process/ProcessEventListener.java
+++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessEventListener.java
@@ -127,4 +127,16 @@ public interface ProcessEventListener
      * @param event
      */
     default void onError (ErrorEvent event) {}
+
+    /**
+     * This listener method is invoked right after a process instance is 
modified.
+     * @param event
+     */
+    default void onProcessStateChanged(ProcessStateChangeEvent event) {}
+
+    /**
+     * This listener method is invoked right after a node in a process 
instance is modified.
+     * @param event
+     */
+    default void onNodeStateChanged(ProcessNodeStateChangeEvent event) {}
 }
diff --git 
a/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeStateChangeEvent.java
 
b/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeStateChangeEvent.java
new file mode 100644
index 0000000000..2ce46ca32f
--- /dev/null
+++ 
b/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeStateChangeEvent.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.kie.api.event.process;
+
+public interface ProcessNodeStateChangeEvent extends ProcessNodeEvent{
+}
diff --git 
a/kie-api/src/main/java/org/kie/api/event/process/ProcessStateChangeEvent.java 
b/kie-api/src/main/java/org/kie/api/event/process/ProcessStateChangeEvent.java
new file mode 100644
index 0000000000..9e55a9bbe7
--- /dev/null
+++ 
b/kie-api/src/main/java/org/kie/api/event/process/ProcessStateChangeEvent.java
@@ -0,0 +1,28 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.kie.api.event.process;
+
+/**
+ * An event when a process instance has been started.
+ */
+public interface ProcessStateChangeEvent
+    extends
+    ProcessEvent {
+
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to