Skip to Content
0
Former Member
Jan 19, 2007 at 08:23 AM

Creating Collaboration Task using UWL API

8 Views

Hi All,

We are trying to create the collaboration Task using UWL API from the below API Doc.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/89ac4d2e-0e01-0010-98b0-b59bd51092e1

From the above link i thought of using IPushChannel Interface to create the Task. For that i need to pass the IProviderConnector instance , Problem here is this IProviderConnector is interface i dont know from which class i ll get the instance of the IProviderConnector.

The below code snippet we have used to create the Task.

============================================

IUWLService uwlService = (IUWLService) PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);

UWLContext uwlContext = new UWLContext();

uwlContext.setUser(componentRequest.getUser());

uwlContext.setLocale(componentRequest.getUser().getLocale());

uwlContext.setOriginRequest(componentRequest);

uwlService.beginSession(uwlContext, 300);

IProviderConnector pc;

uwlService.registerProviderConnector(pc) ;

// Creating Item

IPushChannel iPushChannel=uwlService.getPushChannel();

Item item1=new Item("AdHocWorkflowConnector","AdHocSystem","9","USER.CORP_LDAP.user1");

item1.setShared();

Set users=new HashSet();

users.add("USER.CORP_LDAP.user2");

users.add("USER.CORP_LDAP.user3");

iPushChannel.pushSharedItems(pc,item1,users);

===================================================

Any of you tried this or tried to create Collaboration Task using UWL API anyotherway.

Useful answers would be rewarded for sure.

Regards,

Birla.