on 10-08-2015 8:41 AM
Good day!
We have implemented custom action and process them through BPM inbox. We found that there is no logged in user propagation, all actions processed by SAP_BPM_Service.
How can we fix it?
I can confirm that it is an error in BPM API.
The method below uses pure API and we get SAP_BPM_Service as the caller.
public String closeTask(String taskID) { | |
logger.debugT("BeanCloseTask: Start"); | |
URI taskInstanceId = URI.create("bpm://bpm.sap.com/task-instance/" + taskID); | |
TaskInstanceManager taskInstanceManager = BPMFactory.getTaskInstanceManager(); | |
CustomAction customAction = new CustomAction("approve"); | |
TaskDetail taskDetail = taskInstanceManager.getTaskDetail(taskInstanceId); | |
DataObject taskOutputData = taskDetail.getOutputDataObject(); | |
logger.debugT("BeanCloseTask:" + taskOutputData.getString(0) + taskOutputData.getString(1) + taskOutputData.getString(2)); | |
taskInstanceManager.claim(taskInstanceId); | |
taskInstanceManager.complete(taskInstanceId, taskOutputData, customAction); | |
return "OK"; | |
} |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did u enable that feature(user propagation)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.