summaryrefslogtreecommitdiff
path: root/eaaf_core_api/src
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_core_api/src')
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/process/ExecutionContext.java15
1 files changed, 15 insertions, 0 deletions
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
@@ -38,6 +38,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.
*
* @return The identifier of the process instance.