How to retrieve Process Role Name

Hi @ all,
can anyone tell me how to retrieve the Name of the actual processing Role in a web dynpro callable object.
Until now I just found out how to get the technical name in the execute() method. Unfortunately it's not the human readable name.
e.g.
String name  = executionContext.getProcessRoleInstance().getProcessRoleTechName();
Thanks and Regards
Robert

Hi Robert,
After you created a process, block, action, and your WD GP interface callable object and would retrieve this information in custom way you can use the following coding:
<code>
String processId = executionContext.getProcessId() ;
IGPRuntimeManager runtimeManager = GPProcessFactory.getRuntimeManager() ;
IGPProcessInstance process = runtimeManager.getProcessInstance(processId, getCurrentUser()) ;
IGPProcess processTemplate = (IGPProcess)process.getTemplate() ;
int gpRolesSize = processTemplate.getRoleInfoCount() ;
String roleDisplayName = null ;
for (int i = 0; i < gpRolesSize; i++)
       IGPRoleInfo role = processTemplate.getRoleInfo(i) ;     if (role.getRoleName().equals(roleTechName))
            roleDisplayName = role.getText()
            break ;
</code>
Best regards,
Aliaskei

Similar Messages

  • How to get the role name in which query is published ?

    Hi Experts,
       Is there any table where i can get the name of the role in which a particular query is published. I know that if i have a role , i can check in pfcg giving that role name and in menu tab i can see all the queries published under that role. But if i know query but not role how to get the role name . Is there any table or functon modules or programs to get the information.
    Thanks & Regards
    Vamsi Kiran

    Check this table
    AGR_HIER

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • How to retrieve various file names from a filepath of application server

    Hi All,
    I am using a FILEPATH  of application server which can have multiple file names i want to retrieve data from all the existing files.
    i am using FM "GET_NAME_FILE" but it is applicable only for file name.
    so my question is how to fetch various file names of particular filepath.
    Thanks in advance.

    Hello Mayank,
    You can use the below FM and code
    PARAMETERS: p_file TYPE rlgrap-filename.
    ***AT Selection-Screen*******
    AT SELECTION-SCREEN ON  VALUE-REQUEST FOR p_file.
    ***Function  module for F4 help from Application  server
      CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
    * EXPORTING
    *   DIRECTORY              = ' '
    *   FILEMASK               = ' '
       IMPORTING
       serverfile             =  p_file
       EXCEPTIONS
       canceled_by_user       = 1
       OTHERS                 = 2
      IF sy-subrc = 0.
        MESSAGE 'Successful'  type 'I'.
      ENDIF.
    Regards,
    Mithun Shetty

  • How to retrieve the Field Name of a Table

    Hi guys,
    I'm trying to retrieve the field name of a table in java, but i don't know how to do it. Could somebody help me?Let say i have a table name Itemmaster, then
    i want to retrieve its field and display to dos prompt.
    Example :
    Item No.
    Description
    Quantity
    It is possible to retrieve the fields?
    What could be the possible command in java using packages Java.sql.*?
    Thanks in advanced...
    Best regards,
    Dharry

    The ResultSet class, which is how query results are returned in JDBC, has methods to get at the metadata for the table queried, including column names:
    ResultSet resultSet=statement.executeQuery("select * from table");
    resultSetMetadata=resultSet.getMetaData();
    resultSetMetadata.getColumnLabel(column+1);

  • How to Retrieving Mandatory Filed name from Tcode.

    Hi,
    I need to retrieve mandatory field names from tcode like (mm01)  using abap programming..
    How to find that field name is mandatory?
    Thanks and Regards,
    Meena

    Hi Meena,
    I guess you need to manually find it out and make z-table which can be used for further logic.
    Once you have table for required fields, you can even add/remove any field depending on your requirement.
    I also faced the same issue and we maintained it in ztable as follows.
    MANDT  
    FIELDNAME   
    STATUS
    For STATUS , create fixed domain values as "REQUIRED", "HIDDEN", "GRAYED OUT".
    I hope this will help you.
    Regards,
    Rahul Mahajan

  • How to retrieve the Role of a custom sharepoint Group Progrmatically and also assigning the same roles to new user?

     I want to retrieve the roles assigned to custom group progrmatically and assigning the same roles to new user?

    Hi,
    According to your post, my understanding is that you want to retrieve the Role of a custom sharepoint Group Progrmatically and also assigning the same roles to new user.
    To retrieve the Role of a custom sharepoint Group, you can refer to:
    http://www.sharepointfix.com/2011/05/find-rolepermissions-of-currently.html
    To assign the same roles to new user, you can refer to:
    http://msdn.microsoft.com/library/Microsoft.SharePoint.SPRoleAssignment
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to find the role name for the trasaction

    Dear Gurus,
    Kindly assist me to find the role name to which a perticular transaction was assigned.
    For example:- I need to find the role name for SU01, SUIM, SE38...etc
    Thanks&Regards,
    Kalyan.

    Hi Kalyan,
                        Use SUIM T-code to analyse User Vs Roles  and Roles Vs T-Codes. Then your problem will be solved.
    Regards,
    Hari.
    PS: Points are welcome.

  • How to retrieve child attribute names in XML?

    How do I retieve only the child attribute names from the XML.
    XML:
    <catalog>
         <book>
               <author></author>
               <title></title>
               <genre></genre>     
               <price></price>    
         </book>
    </catalog>Expecting result:
    author
    title
    genre
    price
    I tried with the SAX Parser and class extending DefaultHandler it returns catalog and book aswell which I do not want to retrieve.
    public void startElement(String namespaceURI, String localName,
                                     String qName, Attributes atts)  {
                   System.out.println(qName)
    //this returns catalog and book along with the other attribute names
    }

    gsry wrote:
    jverd wrote:
    Your problem is not clear. Are you saying you want only the leaf nodes? Or are you saying you want all the /catalog/book child nodes, even if they're not leaf nodes? Or something else?I do not know what leafy nodes mean but i want to retrieve all the child nodes (tag names).
    <catalog>
         <book1>
               <author1></author1>
               <title1></title1>
         </book1>
         <book2>
               <author2></author2>
               <title2></title2>
         </book2>
    </catalog>In this example i want to retrieve author1, title1, author2, title2
    Also, you're still not specific enough. For instance, what if there's another layer before author and title. Do you want that? What about if there's another level under author and title, do you want that? Can those situations even happen?
    Do you want nodes at a certain level?
    At a certain level and below?
    Always author and title nodes, regardless of where they appear?
    Always author and title, but only if they're immediately enclosed by book? Or by book<some number>?
    Author and title only when they're under /catalog/book?
    If you can't specify your requirements precisely, it's going to be awfully hard for someone to help you.

  • How to retrieve form user name?

    Hi !
    If I catch from v$session module name (i.e. CEXCABMR form) how to get the name to ask user what is he/she doing on that form....
    You know "CEXCABMR" is not a good name for them....
    THX

    THX that was in the same time as my solution:
    set linesize 220;
    set pagesize 1600;
    set head on;
    col form_name for a15;
    col user_form_name for a36;
    col language for a3;
    col app_us for a25;
    col app_hr for a25;
    col creation_date for a20;
    col last_update_date for a19;
    accept form_name char prompt 'Input SHORT form name (Enter for all): ';
    break on form_name on user_form_name
    SELECT DISTINCT
      form_name,
      ftl.user_form_name,
      (select application_name from apps.fnd_application_tl tl where tl.application_id=atl.application_id and language='US') app_us,
      (select application_name from apps.fnd_application_tl tl where tl.application_id=atl.application_id and language='HR') app_hr,
      to_char(ftl.creation_date,'dd.mm.yyyy hh24:mi:ss') creation_date,
      to_char(ftl.last_update_date,'dd.mm.yyyy hh24:mi:ss') last_update_date
    FROM
      apps.fnd_form frm,
      apps.fnd_form_tl ftl,
      apps.fnd_application_tl atl
    WHERE
          frm.form_name like '&form_name%'
      and frm.form_id = ftl.form_id
      AND ftl.application_id = atl.application_id
    ORDER BY 1,3,2
    ;

  • How to retrieve Global Roles in a the current security realm?

    Is there a WLS API available that obtains a list of mapped global roles (defined in a security realm) from an application?
    I want to be able to do a getRoles call against an authenticated user. So far, I'm only able to use isUserInRole. What I need is a list of all global roles mapped to a user's group.
    Thanks all...
    Message was edited by:
    raymondng

    You can refer to the api
    http://e-docs.bea.com/wls/docs81/javadocs/weblogic/management/security/authorization/RoleReaderMBean.html#getRoleExpression
    -Ramkumar

  • How to retrieve Sales rep name tagged to AR Invoice in a query.

    Hi,
    We need to display the sales person name which is tagged to the AR Invoice for our internal sales commission tracking.
    The problem here is if we use OSLP table to get this information the data retrived is the Sales rep name as seen in the BP data.
    In our scenario, even though a slaes rep is linked to a particular customer, sales person are given incentives based on the Products sold hence for certain brand the sales employee for that Invoice is allowed to change.
    When we create a query to list invoices and payments against the invoice we are not able to display the sales rep name that is tagged to the Invoice.
    Is there a way to display the sale persons name in a query using 'CASE' statement?
    or is there wany other way out.
    Please advise.
    Regards

    Hi Gordon,
    Thanks for your reply!
    The query is as: (Query for displaying the invoice and the payment received by cheque against the invoices )
    SELECT T1.CardCode, T1.CardName, T0.DocDate as 'Posting Date', T0.DocNum as 'AR Invoice Number',T0.DocTotal as 'AR Invoice
    Total', T0.DocTotalFC as 'AR Invoice Total FC', T1.DocDate as 'Payment Date', T2.DocNum as 'Incoming Payment Number ',
    T2.DueDate as 'Check Due Date' , T2.CheckNum as 'Check Number', T2.CheckSum as 'Amount, (select SlpCode, 'Sales Rep Name'=
    CASE
    when
    SlpCode = '8'THEN 'Amir Mehmood'
    SlpCode = '7'THEN 'Anwarul Chowdhary'
    SlpCode = '2'THEN 'Calvin Ching'
    SlpCode = '5'THEN 'Calvin Ong'
    SlpCode = '4'THEN 'Darren Ting'
    SlpCode = '6'THEN 'Dev Puri'
    SlpCode = '12'THEN 'Edison'
    SlpCode = '3'THEN 'Janet Teo'
    SlpCode = '13'THEN 'Kah Leong'
    SlpCode = '-1'THEN 'No Sales Employee'
    end)
    FROM OINV T0 INNER JOIN ORCT T1 ON T0.ReceiptNum = T1.DocEntry INNER JOIN RCT1 T2 ON T1.DocNum = T2.DocNum where T0.DocDate
    >=[%0] and T0.DocDate <=[%1]
    PS: the CASE statement above needs correction.
    Regards,

  • How to retrieve message structure name of an incoming XI message?

    Hi,
    Is it possible to reveal the message structure name of an XI message, that is send through a proxy?
    Background:
    I have a ABAP proxy that passes a XSD message from XI to the Mobile Middleware. I need the name of the that message structure in order to generate Mobile Business Objects from it.
    There should be an API available for that.
    I would appreciate your help.
    Best Regards,
    Michael

    Hi Lucas (says Lucas),
    After a little digging and trying out things I have found the solution.
    The Advanced Components palette available in the Mapping Editor has a section Mediator Functions. The getProperty() function shown there can be used to extract header properties. The property I am after is called jca.file.FileName, and can be assigned in the XSLT document like this:
    <ns2:filename>
    <xsl:value-of select="mhdr:getProperty('in.property.jca.file.FileName')"/>
    </ns2:filename>
    Note that the Assign Values dialog that is available in the Mediator editor has a long list of many names of properties that are available, including jca.file.Directory and jca.file.Size as well as many properties for the AQ, BPEL and EBS adapters.
    hope this helps any one besides myself.
    bye for now,
    Lucas

  • How to retrieve User Session in Xcelsius 2008

    Hi
    I am currently building dashboards with some securities on display. The dashboards have to show different views (e.g. Manager view with full access of data and Employee view with partial access of data) for different users, and I expect to get the user information (particularly user name) from the BO user session for making the security decision.
    I can successfully retrieve the user session from Dashboard [url button] to JSP using openDocument (by looking at the cookies), but it seems that I have no way to import the data back to the Dashboard. When I am using Data Manager > XML Data (With XML datasource is a JSP file), it seems the user session cannot be retrieved.
    So, my question is, how to retrieve the user Name in Xcelsius 2008 ?
    Any help is greatly appreciated.

    Hi,
    we did also some research activities about Xcelsius. We are passing the user name to the Xcelsius via Webservice. Based on the portal integration, you do not have to care about the authentication to the Webservice. This does the Enterprise Portal for you. For the integration, we are currently using a BSP solution. In this way, you can get the user name very simple:
    sy-uname
    You can put into the Webservice or provide it as Flash Variable to the Xcelsius in the <OBJECT> tag.
    Take care,
    Thomas

  • How to retrieve resource name in JSP page

    Hello,
    I have the following scenario:
    User wants a new resource to be provisioned to himself, he makes standard steps; chooses one resource from the list of available resources and sends a request. After that a summary page is displayed - my goal is to create an url to external application on that summary page (i.e. tjspRequestSubmitTiles.jsp) that should be displayed depending on the name of the resource, e.g. if user requests for a ResourceA - link appears, but when he requests for a ResourceB - link does not appear.
    So far I have created a link with a sample if statement - it works.
    My problem is how to make a real condition - retrieve the resource name that request deals with. Anybody know how to do that, which API to use etc.?
    Regards,
    Maciej.

    After adding the code to tjspProvideDataShowInfoTiles.jsp file, nothing has been improved, I am still facing the same result (on the console):
    RO: null
    It seems that file (tjspProvideDataShowInfoTiles.jsp) does not take part in the process.
    I have tried to pass some sample session attribute in tjspRequestVerificationTiles.jsp and this works, but I do not know how to retrieve resourceName in this file.
    I was trying to make some code retrieving resourceName in tjspRequestSubmitTiles.jsp, e.g.
    tcRequestWizardForm tcReqWizForm = (tcRequestWizardForm)session.getAttribute(requestWizardForm);
    String requestID = tcreqWizForm.getRequestID();
    ...and what to do now to retrieve resourceName?

Maybe you are looking for

  • Any hope of a new CourseBuilder?

    Any hope of a new version of CourseBuilder for CS3? With added features? Compatible with Firefox (drag and drop, timer, slider...)? We have hundreds of exercises based on CB? We have tailored the interactions to our needs. We suppose we are not alone

  • What has APPLE done to iTunes 7.1 This is HORRIBLE

    This new version has completly jumbled all of my TV shows and will not put them back in numerical or in episode order. What is the problem here, does Apple think people just want to watch any old thing that comes up next on the computer. Help ...plea

  • Regarding BI Authorization Issue

    Dear Friends, can anyone help me to solve this issue.. I have a Authorization Issue, u201CNO Authorization u201C Error : EYE 007 ( Insufficient Authorizations ) I have follow this stepsu2026 Steps 1 :- Define Authorization-Relevant Characteristics (

  • Character with extension display-problem

    Dear all, I have forms10 in a UTF8 environment, using JPI technology with JRE 1.6 I'm able to write letters with extension, letters are well saved in the database, but the problem I'm facing is that I'm getting the letter not well displayed in forms,

  • Imovie takes a long time to export

    I Edited in iMovie a two-hour movie, I added music and transitions. And now takes three hours to export and said that will export the full movie after 94 hours.Is a long time. How can I try trahat it takes fewer time to export. For example 4 hours