on 01-19-2007 8:23 AM
Hi All,
We are trying to create the collaboration Task using UWL API from the below API Doc.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.