Wednesday, April 29, 2015

How to give special rights to particular users to applicaitons in WAS CONSOLE


I have installed one war file (Ex. ManageExcel.war) to my local BPM. 

Following are the 2 users that I have created to my local BPM server. 
I would like to give user1 role as Monitor + <<special role>> so that he can own the MangeExcel deployment.
Sr No
User id
Role
Description



1
Bpm.wasdmin
Administrator
This user is administrator user & have all rights on BPM platform.
2
User1
Monitor
This user as same rights like “jsapariy” as explained above.

To give special role to any user, we need to create “Administrative Authorization Groups”. 
This group allow you to restrict/allow particular user to access particular resource. 
As per below snapshot I have created AAG group WAR_DEPLOYMENT_GRP with access of “ManageExcel.war” (Ex. Snapshot 1).  

Hence all member of this group can access only particular war file/resources. 
I have added “user1” to this group (Ex. SNAPSHOT-2). 
Hence when user1 will login in was console (Ex. Snapshot 3) , it will have only “ManageExcel.war” file access & read only access for other application.

 As per snapshot-3, user1 have only access of “ManageExcel.war”.

Remember thru AAG we can control Cluster, Nodes, Application, and Business Applications etc.  





Wednesday, April 22, 2015

Enable SELECT ALL in a Table and GridX table

  •  Go to Table Coach View 
  •  Under the Event Handlers, Select the LOAD( )  option
  •  With in the code we need to replace this
    gridOptions.plugins.indirectSelection = {headerSelector:true};     in place of 
     gridOptions.plugins.indirectSelection = true;


 GRIDX Table:

    For GRIDX table we need to add two modules. 
  • Indirect Select
  • Extended Select Row 
Go to GridX Coach View
Search for the Indirect Select Module ,you will find below code as commented.

   if (rowSelect != "None") {
                            /*
                                      modules.push(
                                        {
                                              "moduleClass": IndirectSelect,
                                             "all": true
                                        },
                                            RowHeader
                                      );
 
                                      if (rowSelect == "Multiple") {
                                            modules.push(
                                                 {
                                                          "moduleClass": ExtendedSelectRow
                                                    });
                                          } else {
                                modules.push(
                                {
                                  "moduleClass": SelectRow,
                                   "multiple": false
                                });
                          }
                  */

Uncomment the Indirect Extended Select Row and place the following Highlighted code instead of that.

modules.push(
                                        {

                                              "moduleClass": SelectRow,

                                              "multiple": rowSelect == "Multiple",

                                              "selectByIndex": true,

                                              "triggerOnCell": true

                                            },

                                                    RowHeader,

                                                     {

                                                              "moduleClass": IndirectSelect,

                                                              "all": true

                                                        }

                                              );

                                                    } // End of rowSelect != None





Monday, April 20, 2015

Find USERS,ROLES,MANAGER ROLE/GROUP IN 8.5.X

In this we are going to find the difference b/w role ,group and manager role/group. And also we will understand how to retrieve user details details from System API.

Assume that we have 2 groups in process admin console
                             1.DEV_GRP --> user1,user2
                             2.MANAGER_GRP --> mgr1,mgr2



  •   How to find role of current logged in user  tw.system.org.findUserByName(tw.system.userLogin_Name).roles -->  it will give DEV.GRP for User1 & MANAGER.GRP for mgr1
  • How to find Manager role of current logged in user  tw.system.org.findUserByName(tw.local.currentUser).roles[0].teamManagerRole.roles --> it will give MANAGER.GRP for mgr1
  • How to find group of current logged in user  tw.system.org.findUserByName(tw.local.currentUser).participantGroups it will give DEV.Team for User1 & MANAGER.Team for mgr1.
  • How to find all users in a team    tw.system.org.findTeamByName("DEV.Team").allUsers