From 05835c051b57d3231e3ddf8dc160f1477a6494ca Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 21 Nov 2019 08:59:34 +0100 Subject: add stop condition to process-flow engine that can be set dynamically by tasks --- .../egiz/eaaf/core/api/idp/process/ExecutionContext.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'eaaf_core_api/src') diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/process/ExecutionContext.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/process/ExecutionContext.java index 38a66d4c..319db027 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/process/ExecutionContext.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/process/ExecutionContext.java @@ -37,6 +37,21 @@ import java.util.Set; */ public interface ExecutionContext extends Serializable { + /** + * Flag that indicates that a Task canceled the current {@link ExecutionContext} + * + * @return true if the process-flow was marked as canceled, otherwise false + */ + boolean isProcessCancelled(); + + /** + * Mark this {@link ExecutionContext} as cancelled + * + * The process-flow engine will stop execution when the task that sets this flag is finished + * + */ + void setCanceleProcessFlag(); + /** * Returns the identifier of underlying process instance. * -- cgit v1.2.3