Skip to content

Commit

Permalink
RHPAM-4446: beforeTaskCompletedEvent shows updated value of process v…
Browse files Browse the repository at this point in the history
…ariables (#639)

will merge this as the dependencies were not merge before.
  • Loading branch information
cimbalek authored Mar 21, 2024
1 parent eee4256 commit 6625e5f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kie-api/src/build/revapi-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
"fieldName": "PKG",
"elementKind": "field",
"justification": "remove possibility of using serialized packages as kie resources"
},
{
"code": "java.method.addedToInterface",
"new": "method java.util.Map<java.lang.String, java.lang.Object> org.kie.api.task.TaskContext::getContextData()",
"package": "org.kie.api.task",
"classSimpleName": "TaskContext",
"methodName": "getContextData",
"elementKind": "method",
"justification": "[RHPAM-4446] add possibility to pass additional data through TaskContext"
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions kie-api/src/main/java/org/kie/api/task/TaskContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package org.kie.api.task;

import java.util.Map;

import org.kie.api.task.model.Task;

public interface TaskContext {
Expand All @@ -38,4 +40,12 @@ public interface TaskContext {
* @return user id of the caller
*/
String getUserId();

/**
* Returns contextual data related to the task. There can be various usages of this depending on the current needs.
*
* @return contextual data
*/
Map<String, Object> getContextData();

}

0 comments on commit 6625e5f

Please sign in to comment.