cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Collaboration Task using UWL API

Former Member
0 Kudos

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-b59...

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Birla,

You can use this code:

IProviderConnector connectors[] =

uwlService.getRegisteredProviderConnectors();

Please reply if your task has been created fine as I am facing some other issues in my dynamic task creation.

Regards,

Sumit

Former Member
0 Kudos

Some time ago I had the same requirement and I implemented a Connector by my own. The tasks where stored in a Database and my connector reads it to show them.

If you achieve to do it using the existing API, paste code here please

Former Member
0 Kudos

Hi Birla,

I am no expert concerning the IProviderConnector but I just had a look into the Javadocs. There are some static fields named ACTIONINBOX_CONNECTOR (described as Knowledge Management: Action inbox connector), etc. I assume that's what you are looking for. Unfortunately, I do not have access to a EP right now. Have a look into these fields. Maybe you will find the name of the class you are looking for there.

Hope I could help!

Best regards,

Martin