cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Processor ID for a task claimed.

03-19-2014 8:57 AM
sambaran Explorer
844 views 8 comments
0 Likes
SAP Managed Tags
Subscribe

Hi Experts,

In our process flow we have two human activity  Validate & Confirm.

Each human activity has task (Validate & Confirm) associated with it.

Role is assigned as Potential owner in task level.

Now my requirement is to get the actual owner name/id when someone claim the task from UWL  form both the human activity.

I tried to map the TaskOutput-->TaskAttributes-->actualOwner  data to a reporting activity with a data source; but only getting the ROLE ID not the particular user. Is there any way I can get the task owner name/id ?

Moreover when a user just open the task from UWL and then close the window; then it treated as the user claimed the task, and its ID assigned as current processor. How do I get that info ? Because TaskOutput node will only generate when a task in completed (as per my knowledge)

Is it possible we can add TaskAttributes node to  TaskInput of a human activity Input mapping like below

Please let me know your valuable input. Any kind of suggestion is highly appreciated.

Thanks & Regards,

Sambaran Chakraborty

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion
0 Likes

have you tried with bpm api?

for the output, you can add your own field to store the actual processor.

Former Member
0 Likes

Thats Right the only way to see the claimed status is using BPM API, but TASK API are exclusive for tasks which for meant for that user and administrator only. So if you want to see who claimed the task youcan use getMyTaskAbstract(status) but use user who is administrator, else if you use any other user he/she can see only those tasks which has been claimed by him/her. I have never tried this but should work.

Thanks

Manish

sambaran
Explorer
0 Likes

Thanks Jun & Manish, I know in 7.31 we can use the API.

Forgot to say we are using CE7.2 .

Jun,

From the task output when we are trying to get the owner details (using reporting activity and VC ) it is only giving us ROLEID, not the UserID.

Is it because our Potential Owner defined at task level as ROLE. ?

Regards,

Sambaran

junwu
SAP Champion
SAP Champion
0 Likes

could be , i am not sure.

Former Member
0 Likes

API is only from 7.3, 72 does not support api.

junwu
SAP Champion
SAP Champion
0 Likes

even if you are using the role, can you try with expression?

Former Member
0 Likes

It should give you the user who has completed the task.Can u use

getPrincipalByUniqueName(Name of request createdby,"user")

sambaran
Explorer
0 Likes

Thanks All for your input.

I am not an expert of BPM. And in 7.2 without BPEM API it seems difficult to realize our requirement.

Therefore I have found a work around to get potential owner from  task UI (which is in our case webdynpro application)

Closing this thread.

Regards,

Sambaran