Is it possible to get the scope name within a running BPEL instance

I am currently adding some error handling for a business fault and wondered whether there is any way to get the scope name at run time. I am already catching the fault details using getFaultAsString but the support team have asked whether we can log any other additional information such as the scope name to help the diagnose the problems quickly.
If any one has any ideas on other details that may be worth logging please let me know.
Thanks Rich

You can also use the DOM API to traverse the XML tree and generate your path. But I advice to look into XPath because it is very easy to get values with simple XPath strings. Here's a good start:
http://www.w3schools.com/xpath/

Similar Messages

  • Is possible to get the page name from the _pageid

    Is possible to get the page name from the _pageid displayed in the url?
    It must be stored in a portal oracle table does anyone know which ones or whether there is a api to translate the pageid.
    Thanks in advance.

    You have you execute this query, using both the numbers included in the parameter pageid:
    select display_name from portal.wwsbr_all_folders
    where caid = :first_number
    and id = :second_number

  • How to get the ACCOUNTING_FLEXFIELD Name  in a Multi Ledger Instance?

    Hi,
    How to get the <ACCOUNTING_FLEXFIELD> Name in a Multi Ledger Instance from logged-in Responsibility? Is there any profile option available?
    SELECT id_flex_num
    INTO l_structure_num
    FROM apps.fnd_id_flex_structures
    WHERE ID_FLEX_CODE = 'GL#'
    AND ID_FLEX_STRUCTURE_CODE=<ACCOUNTING_FLEXFIELD>;
    Tx

    SMOD->SEUED001->Display componens->double click on EXIT_SAPLEDITOR_002->See the source code...
    function exit_sapleditor_002.
    *"*"Lokale Schnittstelle:
    *"       IMPORTING
    *"             VALUE(PROGRAM) LIKE  SY-REPID
    *"       EXCEPTIONS
    *"              CANCELLED
    include zxseuu22 .
    endfunction.
    PROGRAM is the importing parameter for the function module.
    matt

  • How to get the table name in the trigger definition without hard coding.

    CREATE  TRIGGER db.mytablename
    AFTER UPDATE,INSERT
    AS
        INSERT INTO table1(col1)
        SELECT InsRec.col1   
        FROM
        INSERTED Ins
       --Below i am calling one sp for which i have to pass the table name
       EXEC myspname 'tablename'
      In the above trigger,presently i am hard coding the tablename
      but is it possible to get the table name dynamically on which the trigger is defined in order to avoid hard coding the table name

    I really liked your audit table concept.  You inspired me to modify it so that, the entire recordset gets captured and added a couple of other fields.  Wanted to share my end result.
    USE [YourDB]
    GO
    /****** Object: Trigger [dbo].[iudt_AutoAuditChanges] Script Date: 10/18/2013 12:49:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER TRIGGER [dbo].[iudt_AutoAuditChanges]
    ON [dbo].[YourTable]
    AFTER INSERT,DELETE,UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    Declare @v_AuditID bigint
    IF OBJECT_ID('dbo.AutoAudit','U') IS NULL BEGIN
    CREATE TABLE [dbo].[AutoAudit]
    ( [AuditID] bigint identity,
    [AuditDate] DateTime,
    [AuditUserName] varchar(128),
    [TableName] varchar(128) NULL,
    [OldContent] XML NULL,
    [NewContent] XML NULL
    ALTER TABLE dbo.AutoAudit ADD CONSTRAINT
    PK_AutoAudit PRIMARY KEY CLUSTERED
    [AuditID]
    ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    CREATE NONCLUSTERED INDEX [idx_AutoAudit_TableName_AuditDate] ON [dbo].[AutoAudit]
    ( [TableName] ASC,
    [AuditDate] ASC
    )WITH (STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    END
    Select * Into #AuditDeleted from deleted
    Select * Into #AuditInserted from inserted
    While (Select COUNT(*) from #AuditDeleted) > 0 OR (Select COUNT(*) from #AuditInserted) > 0
    Begin
    INSERT INTO [dbo].[AutoAudit]
    ( [AuditDate], [AuditUserName], [TableName], [OldContent], [NewContent])
    SELECT
    GETDATE(),
    SUSER_NAME(),
    [TableName]=object_name([parent_obj]),
    [OldContent]=CAST((SELECT TOP 1 * FROM #AuditDeleted D FOR XML RAW) AS XML),
    [NewContent]=CAST((SELECT TOP 1 * FROM #AuditInserted I FOR XML RAW) AS XML)
    FROM sysobjects
    WHERE
    [xtype] = 'tr'
    and [name] = OBJECT_NAME(@@PROCID)
    Set @v_AuditID = SCOPE_IDENTITY()
    Delete from AutoAudit
    Where AuditID = @v_AuditID
    AND Convert(varchar(max),oldContent) = Convert(varchar(max),NewContent)
    Delete top(1) from #AuditDeleted
    Delete top(1) from #AuditInserted
    End
    END

  • File adapter polling and getting the file name

    I have a requirement where I have to poll a file and dump the data into the DB. But while polling a file for a particular file name, I also need to get the name of the file to do some operations on the file. The file name should be passed from the adapter in order to do some operations based on the file name. Is it possible to get the file name by any chance?

    Hi,
    its easy to get the file name..by creating the variable for the fileAdapterInboundHeader.wsdl
    just follow the below link.
    http://abhishek-soablog.blogspot.com/2008/06/bpel-getting-file-name-from-file.html
    Edited by: Oraacler on Mar 19, 2010 2:59 AM

  • How to get the system name of the client?

    Hi,
    I 've followed this Blog:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/getting%252blogged%252bin%252bportal%252buser%252bdetails%252bin%252bweb%252bdynpro
    getSAPUser() method returns the logged in user name.
    Is it possible to get the System name of the client?
    Thanks,
    RPN

    Hi,
    Following Code returns the System id :
    String sid = System.getProperty("SAPSYSTEMNAME");
                                       if(sid.equals("J2E")){
                                            //Do something                                   }
    Siddharth

  • How to get the connection name of a Dataprovider

    Hi,
         I have a report with stored procedure dataprovider.Now I need to write a VBA script to get the connection name of this dataprovider.Is it possible to get the connection name of dataprovider?
    Thanks
    Rakul.

    What product are you using? Are you using Crystal Reports? Business Objects Enterprise? SAP product(s)? You sure you are asking in the correct forum?
    Ludek

  • Is it possible to get the active directory user name of the person

    Is it possible to get the active directory user name of the person who is logged onto a windows computer, when they are using your coldfusion site, the same way asp pages can do that?

    SECOND TRY TO POST THIS REPLY
    You have to turn on "Windows Integrated Security" and turn off anonymous login in the IIS web server, once that condition is met the cgi.AUTH_USER variable will be popluated with the domain/username of the user logged into the cient computer.
    If the user is using a windows browser on a windows client computer this will be done silently in the background.  Otherwise they will normally be presented with a login dialog box by the browser.

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • To get the Application name

    Hai experts,
    I have a requirement as follows:
    I have a component named as ZComponent which has 3 view.
    i am creating 2 applications for the component named as zappl1 and zappl2.
    zappl1 starts from first view itsef where as zappl2 starts from second view.
    I have an ALV table in the second screen.
    it shud not be editable for ZAPPL1 and shud be editable for ZAPPl2.
    Inorder to that i need to get the application name at runtime in the WDDOINIT METHOD of the second view.
    Is there any method to get the application name.
    If so plz help me as soon as possible.
    IF any doubts revert back to me ASAP.
    Cheers,
    Madhu

    Hi Madhu,
    You do not need the application name for this. The following would work:
    1. Create one more inbound plug to your window (interface view), other than the existing plug (default). The second plug should also be an interface plug of type "startup".
    2. Create a node in your component controller with an attribute denoting the editable property.
    3. Map this node in the window's context.
    4. Your window will have 2 plug handlers, for each startup plug. Inside one handler, set the editable attribute to true and in the other, set the same to false.
    5. Map the same node in the view controller also, and in your view layout, bind the "read only" attribute of your table to the node attribute.
    6. Create a new application, zappl2 and in the default plug, specify the name of the second plug.
    Launch both applications, your control should be editable in one and read only in the other.
    Regards,
    Nithya

  • How to get the infoobject name in runtime?

    Hi,
    I have a variable which is used by several queries. I can get the query name at run time through using the SAP memory (IMPORT compid = lv_compid FROM MEMORY ID 'COMPID'.).
    Now I want to get the Infoobject name in run time, is that possible through the same way?When yes, what is the memory ID?
    When no, how can I get it in RUN Time?
    best regards

    Hi,
    no, I m not using customer exit. I m using master data read class.
    When the user klick  the search help of the variable by the beginning of the query, the masterdata class will be called. I want to get the infoobject name of the variable in this class in run time 
    thanks
    best regards

  • How to get the file name from directory

    Hi,
    I have a directory called test inside i have only one .txt file. i dont know that file name.
    Is it possible get the file name using PL/SQl code. ???
    Using that .txt file i have to create a dynamic table.
    If i have use *.txt also not working
    Anyone suggest me its possible to do or not????
    Cheers,
    Shan

    Hi Saubhik ,
    Wheni execute the function i am getting the following error
    Warning: compiled but with compilation errors
    Errors for FUNCTION LISTDIR
    LINE/COL                                                                       
    ERROR                                                                          
    7/3                                                                            
    PLS-00201: identifier 'DBMS_BACKUP_RESTORE.SEARCHFILES' must be declared       
    7/3                                                                            
    PL/SQL: Statement ignored                                                      
    8/54                                                                           
    PL/SQL: ORA-00942: table or view does not exist                                
    8/20                                                                           
    PL/SQL: SQL Statement ignored                                                  
    10/11                                                                          
    PLS-00364: loop index variable 'EACH_FILE' use is invalid                      
    10/2                                                                           
    PL/SQL: Statement ignored      Cheers,
    Shan

  • Is It  POSSIBLE to change the Technical Name of Z-version Query

    Hi  Friends ,
    I was changed all quereis and cube from standard version to Z version.
    For queries, by using rszc , i was changed to Zversion,Now again is it
    possible to change the Technical Name of Zversion Query ?
    If possible , can you please tell me the process ?

    Hi Hameed,
    This may be the reason you are getting an error.
    The target InfoCube, the InfoCube for the query copies, must contain all the InfoObjects of the source InfoCube (InfoCube of the original queries).
    The another reasons may be the copying of queries within the same cube shouldn't be done by RSZC.
    It's better to approach the Bex Query designer.
    Hope you understood..
    Check the link below for more information:
    Re: How to copy query elements without Bex
    http://www.bi-expertonline.com/article.cfm?session=&id=2055
    Re: copy queries + variants + workbooks -- RSZC ?
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on Jun 10, 2009 10:03 AM

  • Is it possible to change the genre name...

    Can I change the name of the genre for an artist without changing the genre on every single song? Is it possible to change the genre name for all songs by an artist by just typing in the new genre for that artist just once?

    Ted,
    Yes and no.
    You can select all the tracks you wish to change the Genre of and change them all at once. Then choose File>Get Info or type command-i.
    You'll be warned that are about to edit information for multiple items.
    Click OK. Then make you Genre change.
    Just remember any field you change will be changed in all the selected items.
    Matt

  • How to get the tag name of HTMLDocument?

    I am now using JEditorPane to display and edit a html file.
    My code is like this:
    kit = new HTMLEditorKit();
    doc = (HTMLDocument) (kit.createDefaultDocument());
    editor.setEditorKit(kit);
    editor.setDocument(doc);
    editor.setContentType("text/html; charset=utf-8");
    editor.getDocument();
    [editor is the class JEditorPane,  doc is HTMLDocument,  kit is HTMLEditorKit]
    When a user clicks on the pane, it's easy to me to get the caret position. However, how can I get the tag?
    For example,
    <p><font class="book">I am a boy.</font> Hello! </p>
    On the pane, the position between "I am a boy" is clicked, I want to get the name of the tag - "font". Moreover, how can I get the class - "book" also?
    Moreover, can I get the <p> tag also?
    Many Thanks!
    Stephen

    Hi Stephen,
    is it possible to get the EditorKit from the EditorPane and then get the ViewFactory for the editor kit.
    Since u have the some tags of the elements hardcoded in the HTMLEditorKit.HTMLFactory it will be handy i guess.
    Let me know whether it helped or not so that either same method be approached or some other has to be tried.
    Cheers,
    Nagaraj

Maybe you are looking for

  • Calling an ABAP program in PC

    Hi, We have a ABAP program variant in our process chain which excutes an ABAP program. The problem is before the actual process of the ABAP program completes the variant is changing to green and triggering the subsequent process. I need to trigger th

  • Cant create an API app (365 connector or MS SQL connector)

    I am trying to create some API apps but when i go through the process for O365 connector as follows nothing gets created. Click the +(bottom left) Click "Web + Mobile" click marketplace Click on "API Apps" on left hand side  click "create" on the off

  • OC4J fails to compile jsp

    OC4J : canno't complie jsp Page : the oracle OracleJSP say "invalid flag : de" hello, I 've to deploy a J2EE web application with 10g application server (this application works fine with tomcat for the moment). The first time i access to my jsp page

  • Disable OID User account after 90 days of inactivity - OIM

    Hello there, I have a requirement where I have to disable a users account if he/she has not logged in since last 90 days into our environment(OID). The users are authenticated via OAM when they are logging in. Does anybody has any idea which attribut

  • Elements 11 installation

    I do not have a CD drive on my computer and am wondering if i can download it from the internet? I already have the serial number.