Hi All,

Fixed the issue $subject of JIRA[1]. Removed the ROLE: item from the
notification view in the UI as it is not possible to retrieve the role name
associated with a task through HumanTaskClientAPIAdminStub.

[1]. https://wso2.org/jira/browse/REGISTRY-2235

Thank you,
Regards,
Sithumini

On Fri, Sep 19, 2014 at 2:57 PM, Heshani Gamage <[email protected]> wrote:

> 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 : [email protected]
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: [email protected],   mobile: +94 756977999
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to