Skip to Content
avatar image
Former Member

User's propagation for custom actions

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 09, 2015 at 12:52 AM

    did u enable that feature(user propagation)?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yes, we did. And this option is suitable only for automatic activites.

      I think it could be an error in BPM API. I hope SAP's guys will clarify that situation. 

  • avatar image
    Former Member
    Oct 09, 2015 at 01:18 PM

    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"; }
    Add comment
    10|10000 characters needed characters exceeded