cancel
Showing results for 
Search instead for 
Did you mean: 

UWL Custom Connector & Lotus Workflow

0 Kudos

Hi Folks,

We are using lotus worflow. To integrate lotus WF with netveawer UWL we've developed a custom UWL connector with webdynpro which reads user activities from domino web server as a rss feed. Ous rss feed needs authentication. Netveawer and the lotus domino web server are configured SSO. Once user logs into portal at the same session he/she will be authenticated with domino web server. But although there is a SSO between two systems somehow our connector could not get the job list from domino WF because of authentication problem. I've searched intenet and gone into other resources resulted nothing. Does anybody know in which credentials UWL connector service runs. Does it use logged in user's account or another account. Is there any way that make uwl connector read rss request with current users credentials. Finally none of them above is not feasible then how can I get logged in user's name inside uwl connector application code.

System versions

SAP netveawer 2004s sp 13.

Lotus Domino 7.0.1

Any help will be appreciated .

Thanks.

Edited by: MAHMUT ERMIS on Feb 12, 2008 7:32 AM

Edited by: MAHMUT ERMIS on Feb 12, 2008 7:33 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The UWL connector retrieves the items as per the current logged in user.

I tried to create a UWL task by code once and in that I got the info of the logged i user first, then the specific connector and then created a task.

Please find the code in wiki in Portal code snippets as "Creating a UWL task by code".

I hope it helps.

Regards,

Sumit

0 Kudos

Question is how can I "get logged iuser". I searched forum I found code below.

How am I gonna get the request object? What is request?

IUWLService uwlService = (IUWLService)

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

IUser user = request.getUser();

userContext = new UWLContext();

Thanks.

Former Member
0 Kudos

Hi,

When we create any portal component we implement the AbstractPortalComponent.

There is a method called doContent().

In this we have two components request and response. See code.

Regards,

Sumit

0 Kudos

Hi,

Problem status is updated. New situation we are able to get username. But we found that URLConnection or HttpUrlConnection objects in java does not use session info in current request. We have to manually manage session in HttpUrlConnection object.(beginner in java) Remote web server has a isapi filter which provides SSO. This filter looks for the session info(cookie) in http headers. We can add session info by following code:

URL a_url = new URL("http://host/lwf/appt.nsf/myTasks?OpenPage");

HttpURLConnection uc = (HttpURLConnection)a_url.openConnection();

uc.setRequestProperty("Cookie", session_string);

Problem is how can I get session string in current request's http headers.

SAP portals http header session info is below. I want to read that value.

Cookie: JSESSIONID=(J2EE7983600)ID1378444950DB00244516005707151005End; MYSAPSSO2=AjExMDAgAA9wb3J0YWw6SFVTRVlJTkGIABNiYXNpY2F1dGhlbnRpY2F0aW9uAQAISFVTRVlJTkECAAMwMDADAANOV1QEAAwyMDA4MDIxMzA3MzkFAAQAAAAICgAISFVTRVlJTkH%2FAQYwggECBgkqhkiG9w0BBwKggfQwgfECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0TCBzgIBATAiMB0xDDAKBgNVBAMTA05XVDENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDgwMjEzMDczOTI2WjAjBgkqhkiG9w0BCQQxFgQUqRZ2jIFcxHcXDOKDuAPSKe0pao4wCQYHKoZIzjgEAwQwMC4CFQDWFc182pCAs6%2FzOKl6%2Ftxvq5GAggIVAKUIe%2F%2FNwMp7UThxshXCgE3AnGY%2F; SAPWP_active=1;

Thanks.