Index Changes

Difference between version and version     

Back to WLM Web Console, or WLM Web Console Info


At line 5 changed 1 line.
WLMSE provides a static common service in TaskCommon.wsdl, for operations as GetTaskList, ClaimTask, GetTaskInput, GetTaskOutput, SetTaskOutput, GetTaskXForm, ReassignTask, RevokeTask, etc. The TaskCommon.wsdl is present in the build folder of every wlm project, note although soap binding is on TaskCommon.wsdl, javaeese is used as the proxy between Java EE client (such as a web console) and WLMSE to pass the security context of the client to WLMSE. Our generic web console provided is discussed below, the goal is user can either build their own web console for wlm from scratch (see [Make your own Worklist Manager client application|http://wiki.open-esb.java.net/attach/WLMSE/WLMSE_Sampe_UserGUide.pdf]), or customize the generic web console
WLMSE provides a static common service in TaskCommon.wsdl, for operations as GetTaskList, ClaimTask, GetTaskInput, GetTaskOutput, SetTaskOutput, GetTaskXForm, ReassignTask, RevokeTask, etc. The TaskCommon.wsdl is present in the build folder of every wlm project, note although soap binding is on TaskCommon.wsdl, javaeese is used as the proxy between Java EE client (such as a web console) and WLMSE to pass the security context of the client to WLMSE. Our generic web console provided is discussed below, the goal is user can either build their own web console for wlm from scratch (see [Make your own Worklist Manager client application|http://wiki.open-esb.java.net/Wiki.jsp?page=WLMSE_Sample_UserGuide#section-WLMSE_Sample_UserGuide-MakeYourOwnWorklistManagerClientApplication]), or customize the generic web console
At line 9 added 1 line.
----
At line 75 added 36 lines.
!!! Configure Security \\
----
The Web Console uses JavaEE Security to control the access to the console, user may want to add finer-grained programmatic security ([request.isUserInRole|http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#isUserInRole(java.lang.String)]) when customizing the page for Administrative operations such as ReAssign. \\
! Add Users and Groups
We use an example to describe how to add users and groups for the Web Console, you can find more details in
[User Guide On AppServer Security|http://java.sun.com/javaee/5/docs/tutorial/doc/bnbxj.html] \\
We want to add both a user Luke and his team Support to access the web console. \\
Using ''__FileRealm__'', we will do the following steps: \\
1. Add Luke as a user and specify he is a member of group: Support in the file realm used in the web console: Configuration --> Security --> file --> Manage Users \\
[{Image src='http://wiki.open-esb.java.net/attach/WLMSE/wiki_create_user.jpg' link='http://wiki.open-esb.java.net/attach/WLMSE/wiki_create_user.jpg' align='none' caption='Figure: Create User' }]
2. Add permission for Luke to access the web console:\\
You have 2 options to do it: \\
__a. Add permission for any group of which luke is a member (e.g. Support). __\\
# Open WorklistWebApplication/web/WEB-INF/web.xml, add a Security Role : Support (or any name you like), see Figure: Add Security Role\\
# Open WorklistWebApplication/web/WEB-INF/sun-web.xml, go to Security tab and expand the Security Role Mapping for role:Support, add group:Support (the group is configured on admin console in step 1), \\
see Figure: Add Security Role-Group Mapping \\
[{Image src='http://wiki.open-esb.java.net/attach/WLMSE/wiki_add_role.jpg' link='http://wiki.open-esb.java.net/attach/WLMSE/wiki_add_role.jpg' align='none' caption='Figure: Add Security Role' }] \\
[{Image src='http://wiki.open-esb.java.net/attach/WLMSE/wiki_add_role_mapping.jpg' link='http://wiki.open-esb.java.net/attach/WLMSE/wiki_add_role_mapping.jpg' align='none' caption='Figure: Add Security Role-Group Mapping' }] \\
__b. Add permission for luke as a principal.__ \\
# Open WorklistWebApplication/web/WEB-INF/web.xml, add a Security Role : Support (or any name you like), see Figure: Add Security Role\\
# Open WorklistWebApplication/web/WEB-INF/sun-web.xml, go to Security tab and expand the Security Role Mapping for role:Support, add principal:luke (configured on admin console in step 1), \\
see Figure: Add Security Role-Principal Mapping\\
[{Image src='http://wiki.open-esb.java.net/attach/WLMSE/wiki_add_role_principal_mapping.jpg' link='http://wiki.open-esb.java.net/attach/WLMSE/wiki_add_role_principal_mapping.jpg' align='none' caption='Figure: Add Security Role-Principal Mapping }] \\
3. Add permission for team Support to access the web console: if you do Step 2a, you will have added team Support already\\
Using ''__LDAPRealm__'', we will do the following steps: \\
1. Refer to [Realm setting on Glassfish|http://wiki.open-esb.java.net/Wiki.jsp?page=WLMLDAP#section-WLMLDAP-LDAPRealmConfigurationOnGlassfish] for setting up the realm \\
2. WorklistWebApplication change is similar to FileRealm with regards to adding role and role-group, role-principal mappings, please see [Configure WebApp for Ldap | http://wiki.open-esb.java.net/Wiki.jsp?page=WLMLDAP#section-WLMLDAP-ConfigureWorklistClientApplicationToUseLDAPRealm]
At line 112 added 1 line.
----
At line 82 changed 1 line.
Step 1. Get the data from input message to TaskInstance table's Title field, this can be done as in PurchaseOrderXpath sample:
Step 1. Get the data from input message task Title field, this can be done as in PurchaseOrderXpath sample:
At line 84 changed 10 lines.
<init>
<variable-init>
<copy>
<from>concat($TaskInput/po:purchaserName, concat(' Purchase Order for ', $TaskInput/po:productId))</from>
<to>$TaskInstance.Title</to>
</copy>
</variable-init>
...
<title>concat($TaskInput.part1/po:purchaserName, concat(' Purchase Order for ', $TaskInput.part1/po:productId))</title>
At line 95 changed 1 line.
Using xpath you can construct a delimited string using any delimiter you choose through xpath on input message ($TaskInput) and assigns it to $TaskInstance.Title, which effectively saves it into TaskInstance table's Title field. \\
Using xpath you can construct a delimited string using any delimiter you choose through xpath on input message ($TaskInput) to the task title which effectively saves it into TaskInstance DB table's Title column. \\
At line 145 added 3 lines.
!!! Lightweight Web Console
----
Lightweight Web Console is a console that shows task input and output as plain xml and with no built-in xform support. It has a much smaller size and flexible to plug-in any view component or external service call to create task presentation. Lightweigh Web Console can be downloaded at [here|http://wiki.open-esb.java.net/attach/WLMSE/WorklistWeb_noXform.zip] \\
At line 149 added 1 line.
In the full-size Web Console, user would see task details as a form provided by the xform engine: \\
At line 151 added 1 line.
[{Image src='http://wiki.open-esb.java.net/attach/WLMSE/wiki_web7.jpg' link='http://wiki.open-esb.java.net/attach/WLMSE/wiki_web7.jpg' align='center' type="thumb" size width='600' caption='Figure: Full-size WLM Console }]
At line 153 added 1 line.
In the lightweight Web Console, user sees task details as plain xml: \\
At line 155 added 1 line.
[{Image src='http://wiki.open-esb.java.net/attach/WLMSE/webconsole_noXform.jpg' link='http://wiki.open-esb.java.net/attach/WLMSE/webconsole_noXform.jpg' align='center' type="thumb" size width='600' caption='Figure: Lightweight WLM Console }]
At line 157 added 1 line.
!! View plugin
At line 159 added 1 line.
User can replace the web/wlm-jsp/taskDetailsIn.jsp and web/wlm-jsp/taskDetailsOut.jsp with custom view component to display task input and task output, user can also integrate information from other sources such as result of web service calls.

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-35) was last changed on 19-Mar-09 09:03 AM, -0700 by MeiWu