Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.67.x-blue] RHPAM-4446: beforeTaskCompletedEvent shows updated value of process v… #639

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();

}
Loading