Hi all,

I'm working on the issue $subject of JIRA [1].

I found reason for this as follows
1. Notifications displayed are retrieved at [2] from the
HumanTaskClient.getWorkItems() method
2. Inside the getWorkItems() 's method of HumanTaskClient [3], when
creating WorkItems from data retrieved from
HumanTaskClientAPIAdminStub, Username
is set instead of role name by htStub.loadTask(id).getActualOwner().getTUser
()

because of this, username is set as the role of a workItem.

@ BPS Team:
Is it possible to retrieve the role name associated with a task
through  HumanTaskClientAPIAdminStub
?

If it is not possible, IMO possible solutions to the $subject are
1. Remove the ROLE: item from the notification view in the UI
2. Instead of the ROLE, display USER: (This would be redundant since USER
would be always be the current logged in user

What do you suggest?

[1].https://wso2.org/jira/browse/REGISTRY-2235
[2].
https://github.com/wso2-dev/carbon-governance/blob/master/components/governance/org.wso2.carbon.governance.notifications.ui/src/main/resources/web/worklist/view-notifications-ajaxprocessor.jsp
[3].
https://github.com/wso2-dev/carbon-governance/blob/master/components/governance/org.wso2.carbon.governance.notifications.ui/src/main/java/org/wso2/carbon/governance/notifications/ui/worklist/HumanTaskClient.java
Thanks,
Heshani
-- 
Heshani Gamage
Software Engineer, WSO2, Inc.
email : hesh...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to