cancel
Showing results for 
Search instead for 
Did you mean: 

UWL in CE: APIs and... DC(s) ???

former_member184154
Active Contributor
0 Kudos

Guys,

I am running CE EhP1 and I want to do some programmatic stuff on UWL.

So I go [here|http://help.sap.com/javadocs/nwce/current/uw/index.html], and look for how to manipulate UWL items. Let me first notice that though this javadoc is under "CE", the title states "SAP NetWeaver 2004S SPS 10"... Bad, bad, bad.

What I need is maybe (I don't know since I couldn't try yet... read on) [IUWLItemManager|http://help.sap.com/javadocs/nwce/current/uw/com/sap/netweaver/bc/uwl/IUWLItemManager.html], which is obtained via [IUWLService|http://help.sap.com/javadocs/nwce/current/uw/com/sap/netweaver/bc/uwl/IUWLService.html]. Very good.

So now, the first question: how are we supposed to GUESS (???) what DC is to be used for a certain purpose? For instance, in my NWDS, I couldn't find any DC for UWL... Does anybody know which is/are the right one/s to put dependency on in a DC project...?

Secondly, despite of the right DC, the doc gives two approaches for getting the IUWLService:

-1-


IUWLService is a portal service and is accessible by calling PortalRuntime api. 
IUWLService uwlService = 
(IUWLService)PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);  

This doesn't work, bacause it relies on PortalRuntime: I have set a dependency on tc/epbc/prt/api, and that's ok, but then I can't neither compile nor build or run because of indirect references to classes that cannot be found in any DC... (searched in the whole NWDS file system with JarClassFind...)

-2-

"Alternatively JNDI look up can also be done for the key IUWLService.ALIAS_KEY to get a handle to UWL service."

So I tried with this:

InitialContext ctx = new InitialContext();
uwlService = (IUWLService)ctx.lookup(IUWLService.ALIAS_KEY);

No way... NameNotFoundException (or somthing like this...). Also looked in the JNDI Registry in NWA and, that's right... No way I could find the IUWLService.ALIAS_KEY string.

So finally: is anybody able to get this UWL APIs working on CE EhP 1?

Since this a CE EhP1 issue, I will cross post on NetWeaver BPM forum, [here|https://forums.sdn.sap.com/thread.jspa?threadID=1138660&tstart=0].

Cheers,

Alex

Accepted Solutions (0)

Answers (2)

Answers (2)

p_2_5_6_9_6_0
Active Participant
0 Kudos

Hi,

Just wanted to mention a super tutorial on your requirement:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/802bfda2-8a85-2b10-9290-d67da32d...

Hope that helps.

Thanks.

p256960

Former Member
0 Kudos

Hello Alex,

I am not sure if I understood your problem correctly, but I will try to help you. Last 2 weeks I had similar problems because I am using the CE 7.1 SP5 for developing portal content.

In the NWDS 7.0.11 there is an option for generating a new project with the type "Universal Worklist" which supports the UWL API which you have tried to use. In CE 7.1 there isn´t an option for this project type. I guess that CE 7.1 doesn´t support the UWL-Plugin any longer.

I helped myself by the following way:

1. generating an UWL-project in NWDS 7.0

2. generating an new project in CE 7.1 and copying the java classes, build.xml and so on

from the project in NWDS 7.0 to the project in CE 7.1

3. exported the whole project from NWDS 7.0 and imported in the project in CE 7.1

unfortunately the libaries were not included in the export-file so I have done also

step 4

4. searching the workspace of NWDS 7.0 for the libaries which are used by the UWL-project

there and copying this libaries into my new project in CE 7.1

Maybe this was not a very elegant and efficient way to do this, but it worked. Now I have a project in CE 7.1 which supports development for the UWL and I can use this project as a template for new projects.

I hope this helps you a little bit.

Best Regards,

Iris

former_member184154
Active Contributor
0 Kudos

Hello Iris,

Sounds good! Thanks for the idea. I hope I'll be able to give it a try within t'row. I'll let you know.

Cheers,

Alex