How to get instance notes in a global

I have a global in a utility project that gets called through PAPI WS from an external client.
I want this global to take an instance id as the input argument. It should then get a reference to the instance, get the instance notes currently associated with that instance and pass them back (as an array of delimited strings). The instance will be residing in one of many other projects.
I can use PAPI in the global to connect to a BusinessProcess:
connectTo bp
using url = Fuego.Server.directoryURL,
user = String(BusinessParameter.getValue(name : "GENIE_UID")),
password = String(BusinessParameter.getValue(name : "GENIE_PW")),
process = "/" + ou + "/" + process
and I can get a reference to the instance using bp.getInstance(), but I can not see anywhere in any of the PAPI methods where I can get the instance notes for that instance.
BTW I am using both ALBPM 5.5 and 6.0, so I need a solution for both.
Basically this external client wants to get instance notes for a given instance (and there is other processing I need to do as well - I need to add in custom notes from a custom table before I return the results, so they can't just use PAPI WS directly to get the instance notes).

I ran into this problem and requested from Product Management that they allow PBL code to get instance notes, audit info, etc. It's been a while since I've run into this problem but I'm sure it's the same issue. You can only get information about the instance notes, audit info, etc from PAPI.
The architecture of BPM is such that the BPM workspace actually uses PAPI to do all its work. So in other words anything the workspace does, PAPI can do. But from within a process, PBL code doesn't have access to all PAPI functionality. You may want to raise this issue up with product management and see if they have any recommendations.
BTW - It is not recommended to instrospect BPM tables to use from within your process. Although this would solve your problem, it is not recommended...
Cheers!
Mark

Similar Messages

  • I need to know how to get my notes onto icloud without retyping them

    i need to know how to get my notes onto icloud without retyping them

    First of all - allow me to provide you a link relating to security / av etc.....
    http://www.thesafemac.com/mmg/
    secondly - data confirm your exterminal drive is compatable with your mac
    * i have a 1tb external where I have 1/2 formated for mac and 1/2 for win....on the win side I can read the file and move it but not update it...on the mac side I can do all
    third - depending on how your emails area set up (pop3, imap, http) and you left them in the cloud (or on your email providers server) you simply add the mail to your mac mail

  • How to get oss notes ?

    hi guru's,
    how to get OSS notes ? is there any special subscription for this,
    Edited by: ravi netyam on Oct 29, 2008 11:34 AM

    you can go to service.sap.com/notes to browse note than in sap go to snote (tcode) to download and apply it .
    Please check below thread to get more details.
    Can a functional guy check if a certain NOTE had been implemented
    Checking if different versions of a SAP Notes are implemented or not
    Manish
    Edited by: Manish Kumar Rathi on Oct 29, 2008 7:58 AM

  • How to get instance of all components in a frame  dynamically

    Hai ,
    I want to know how to get the instance names and values of components on a frame . if any body knows anything on this
    Please help me
    Advance Thanks

    Hai ..
    Thanks for guiding me here i had copied my example code i am getting name value null
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    * @author  naveen
    public class Test extends javax.swing.JFrame {
        /** Creates new form RaviTest */
        public RaviTest() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            jTextField1 = new javax.swing.JTextField();
            jTextField2 = new javax.swing.JTextField();
            jButton1 = new javax.swing.JButton();
            getContentPane().setLayout(null);
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitForm(evt);
            getContentPane().add(jTextField1);
            jTextField1.setBounds(180, 60, 100, 20);
            getContentPane().add(jTextField2);
            jTextField2.setBounds(180, 90, 90, 20);
            jButton1.setText("jButton1");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            getContentPane().add(jButton1);
            jButton1.setBounds(170, 140, 81, 26);
            pack();
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            // Add your handling code here:
            Component[] comp=this.getContentPane().getComponents();
            for(int i=0;i<comp.length;i++)
                if(comp[i] instanceof JTextField)
                    getT((JTextField)comp);
    public void getT(JTextField jt)
    System.out.print("name "+jt.getName());
    System.out.println("value "+jt.getText());
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
    new RaviTest().show();
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    // End of variables declaration
    OUTPUT AS :
    if we enter some text in text box and press the button we get like this
    name null value ABCD
    name null value EFGH
    may be some components will have name but if they names are not set
    then we get null value
    what i want is at that i want the jTextField1.. as name(ie.. object name) when the name is not set how to do it

  • How to get instance of Class with its type parameters

    Hi,
    Have any of you folks been dealing with generics long enough to show me how this should be written? Or point me to the answer (I have searched as well as I could).
    I boiled down my situation to the included sample code, which is long only because of the inserted comments. And while boiling I accidentally came across a surprise solution (a bug?), but would obviously prefer a smoother solution.
    My Questions (referred to in the code comments):
    #1. Is there a way to get my parameterized type (classarg) without resorting to using the bogus (proto) object?
    #2. Can anyone understand why the "C" and "D" attempts are different? (All I did was use an intermediate variable????) Is this a bug?
    Thanks so much for any input.
    /Mel
    class GenericWeird
       /* a generic class -- just an example */
       static class CompoundObject<T1,T2>
          CompoundObject(T1 primaryObject, T2 secondaryObject)
       /* another generic class -- its main point is that its constr requires its type class */
       static class TypedThing<ValueType>
          TypedThing(Class<ValueType> valuetypeclass)
       // here I just try to create a couple of TypedThings
       public static void main(String[] args)
          // take it for granted that I need to instantiate these two objects:
          TypedThing<String>                        stringTypedThing = null;
          TypedThing<CompoundObject<String,String>> stringstringTypedThing = null;
          // To instantiate stringTypedThing is easy...
          stringTypedThing = new TypedThing<String>(String.class);
          // ...but to instantiate stringstringTypedThing is more difficult to call the constructor
          Class<CompoundObject<String,String>> classarg = null;
          // classarg has got to be declared to this type
          //    otherwise there will rightfully be compiler error about the constructor call below
          // This method body illustrates my questions
          classarg = exploringHowToGetTheArg();
          // the constructor call
          stringstringTypedThing = new TypedThing<CompoundObject<String,String>>(classarg);
       } // end main method
       // try compiling this method with only one of A,B,C,D sections uncommented at a time
       private static Class<CompoundObject<String,String>> exploringHowToGetTheArg()
          Class<CompoundObject<String,String>> classarg = null;
          /* Exhibit A: */
      ////     classarg = CompoundObject.class;
             results in compiler error "incompatible types"
             found   : java.lang.Class<GenericWeird.CompoundObject>
             required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
                   classarg = CompoundObject.class;
                                            ^
             I understand this.  But how to get the type information?
          /* It's obnoxious, but it looks like I will have to construct a temporary
              prototype instance of type
                 CompoundObject<String,String>
              in order to get an instance of
                 Class<CompoundObject<String,String>>
              (see my Question #1) */
          CompoundObject<String,String> proto = new CompoundObject<String,String>("foo", "fum");
          /* Exhibit B: */
      ////     classarg = proto.getClass();
             results in compiler error: "incompatible types"
             found   : java.lang.Class<capture of ? extends GenericWeird.CompoundObject>
             required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
                   classarg = proto.getClass();
                                            ^
          /* Exhibit C: */
      ////     classarg = proto.getClass().asSubclass(proto.getClass());
             results in compiler error: "incompatible types"
             found   : java.lang.Class<capture of ? extends capture of ? extends GenericWeird.CompoundObject>
             required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
                   classarg = proto.getClass().asSubclass(proto.getClass());
                                                         ^
          /* Exhibit D: (notice the similarity to C!): */
      ////     Class tmp1 = proto.getClass();
      ////     classarg = tmp1.asSubclass(tmp1);
          /* It compiles (see my Question #2) */
          return classarg;
       } // end method exploringHowToGetTheArg()
    } // end class GenericWeird

    Thanks so much, Bruce. (Oh my goodness, how would I have ever come up with that on my own?)
    So in summary
    This doesn't compile:
          classarg = (Class<CompoundObject<String,String>>)CompoundObject.class;but these do compile:
          classarg = (Class<CompoundObject<String,String>>)(Class)CompoundObject.class;or
          Class coclass = (Class)CompoundObject.class;
          classarg = (Class<CompoundObject<String,String>>)coclass;And this doesn't compile:
           classarg = proto.getClass().asSubclass(proto.getClass());but this does:
           Class tmp1 = proto.getClass();
           classarg = tmp1.asSubclass(tmp1);

  • How to get a note to carry over to the next measure?

    I want to know how to "slide" into the one beat from the 15/16 beat of the previous measure. In other words, how can I get a note to cross over from one measure to the next?
    Thanks-

    Thanks for bearing with me.
    I created a region (up in the track timeline) which spans two measures. When I pencil in a note in the grid below (in Piano Roll) near the end of measure one, I cannot extend it or drag it into measure two (even though they both reside in the same region). Even stranger, whatever note I write into the grid in measure one gets "ghost" duplicated in measure two.

  • How to get the notes

    Hi Gurus,
    Can u plz let me know how to get the desired notes from SERVICE.SAP.COM/NOTES, am not getting the proper notes its just giving notes No. and when search the notes from tat perticular No. its just giving, hte overview.
    Thanks & Regards
    Syed..

    Hello,
    I am providing the direct link here. Click and give SUser Name and Passwd.
    https://websmp109.sap-ag.de/notes
    In this window, Right Side you can enter direct Note number and also,
    You can search and find appropriate solution/Notes.
    Note: Points always encourage me to reply !!

  • How to get the value of the global variable of test stand in labview User interface?

    Hi.
     Can anyone Please share examples and tell me to how access the test stand global variable using labview user interface.
    Solved!
    Go to Solution.

    I'm not surprised that what you are doing doesn't work.  The Start Execution UI Message is triggered when the user clicks a button to start an execution.  Realize that most executions go through a process model.  So you could be looking at the sequence context of the process model and not your client sequence file.
    I recommend reading that link I posted above.  UI Messages are your best bet but you cannot just piggy back on an existing UI Message like this.  They may not be getting sent at the time you need them to be.  The only way to ensure you get what you want is to trigger one yourself at the right time.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Doubt: How to get Instance Id of a BPEL Process

    Hi All,
    I have a doubt in BPEL as to how we can get the Instance Id of a particular faulted process.
    Business Scenario
    We have a process which does the following:
    1. Dequeue message from a queue.
    2. Do the Transformation
    3. Insert the Output message into a Database Table by calling a Stored Procedure
    The BPEL Process will create multiple instances of the process after successful completion.
    Now we want to add fault handlers at each of the above steps which will catch any exception that will basically get the Instance Id of the particular faulted process and send it to a mailing list using E-mail notification Service mentioning the Instance Id of the Faulted Process.
    Currently we could not find any way on how to capture the Instance Id of the Faulted Process. We have this requirement because in Production Environment many instances of the process will be spawned and it will be difficult to know which Instance has faulted.
    Anybody familiar with a similar requirement or any pointers on how to achieve this, please post it and let us know.
    Thanks In Advance,
    Dibya

    This xpath function returns current instance id of running process ora:getInstanceId().
    But in your case I would do this flow in ESB. Because this kind of "provisioning" of data can be done in ESB. Each execution I would define as async. And when exception occurs it will be logged by ESB and moved to error hospital. Administrator can easily use ESB console to query faulted instances and if neccesary he can resubmit them.
    Just an idea how to make it faster, without doing some special development.

  • How to get instance name

    I was wondering if there was any way to get the instance name
    of the class to the class without having to pass it in when you
    create the instance of it. For example, so I can do this:
    var myObject:CustomClass = new CustomClass();
    and then the class knows whats its instance name being used
    is instead of having to do something like this:
    var myObject:CustomClass = new
    CustomClass("myObject");

    As I think I found out how to gnerate unique key form components passed to my method and afterwards be able to get this key by knowing the component.My code is following:
    public static String generateUniqueKey(Component c){
    String resultString="";
    String s = c.getAccessibleContext().getAccessibleComponent().toString();
    StringBuffer stringbuffer = new StringBuffer(s);
    if(!Character.isJavaIdentifierStart(stringbuffer.charAt(0))){
    resultString="a_";
    }else{
    resultString=resultString+stringbuffer.charAt(0);
    for(int j = 1; j < s.length(); j++){
    if(!Character.isJavaIdentifierPart(stringbuffer.charAt(j))){
    resultString=resultString+"_";
    }else{
    if (stringbuffer.charAt(j)=='$'){
    resultString=resultString+"s_";
    }else{
    resultString=resultString+stringbuffer.charAt(j);
    return resultString;
    Any suggestions on this. May this result in problems anywhere?
    Thanks

  • How to get instance of NormalizedMessage of payload in BPEL

    hi,
    I have a BPEL with a JavaEmbedding task in it. And the BPEL receives an XML payload. How can I get an instance of com.oracle.bpel.client.NormalizedMessage of the payload in the JavaEmbedding task. What is the API that gives an instance of the NormalizedMessage.
    Thanks,
    Anil

    hi,
    I have a BPEL with a JavaEmbedding task in it. And the BPEL receives an XML payload. How can I get an instance of com.oracle.bpel.client.NormalizedMessage of the payload in the JavaEmbedding task. What is the API that gives an instance of the NormalizedMessage.
    Thanks,
    Anil

  • How to get back notes after the Note app updates

    Hi,
    I erased everything off my Macbook Pro to clean it but i used TimeMachine to restore any wanted files and software. However, i can't find where my old notes would be. I've also updated to the latest operating system, which could affect things i'm guessing? Could someone please tell me how i can get my old notes back using TimeMachine or if there is a way at all now that i've update OS?
    Thanks.

    Check Settings > General > Restrictions to see if Restrictions are ON and Safari is turned OFF.

  • How to get my notes back from a different iCloud account?

    I used yahoo account for iCloud and I when I try to save my notes on settings they  me make a new account for iCloud email and when I did my Notes disappear I bean try to get it back turn in off on settings but nothing work and I have really important things on it some one Please Help me to get it back

    Go to Settings>Mail,Contacts,Calendars...tap your Yahoo account and make sure Notes syncing is turned on.
    Then open the Notes app, tap Accounts on the top left, then tap your Yahoo account.  Do your notes appear now?

  • How to get Podcasts not to play with songs?

    Hello:
    I just downloaded about 10 podcasts, and this is the first time that I have downloaded any podcasts. I noticed that when I started playing my music that the podcasts are also in my music lineup, and therefore they also play with the music alphabetically. I would like to seprate my podcasts from my music. How can I do this?

    You can create a "Music Only" smart playlist in iTunes with the settings:
    Select "match all of the following rules" and set filters:
    Kind - contains - audio
    and
    Genre - is not - Podcast
    This playlist will exclude podcasts and anything not audio (eg videos). In the future you can add additional filters to exclude audiobooks, etc. If you want to play music, just play this playlist.

  • How to get correct  note notation in score?

    The problem, in a nutshell, is that in some cases (see below) half notes are represented in the score as tied quarter notes, and I can't seem to do anything to change it.
    Here's the piano roll of the first measure (V - V7 - I). This is 4/4 time. Note the combined quarter and half notes in the first two beats, and half notes only in the last two beats of the measure.
    Here is the corresponding score.
    Note that the B and D are tied quarter notes. (With some quantizations, this can really get ugly.) I want them to be half notes, which is standard notation. Is there any way to do this?
    FYI, here is the top part of the score inspector:
    Thanks

    Hi
    You need to use a polyphonic Staff Style to do this:
    Individual notes are assigned to the voices by MIDI channel. You can do this with the Voice Separation tool, in the Event list or by key command.
    HTH
    CCT

Maybe you are looking for

  • How to delete an iCloud account and turnoff Find my Phone for a email address that does not exist

    I have switched my itunes account to a new email address but the iCloud account is still registered to the old email account which I can no longer access. If I go to Settings>iCloud it requests my Apple ID password for the old email account but as th

  • HP Officejet Pro 8600 won't recognize secure home network

    Hi, just got an HP Officejet Pro. Setup went great, except for a snafu with our home network: it won't recognize it, even when I manually enter the name and password. It will however recognize our unsecured guest network. I temporarily set it up on t

  • Updating Music Files in iPod

    I'm a musician and record my own music. I like to transfer it to my iPod so I can listen to it over and over away from the PC in order to identify any improvements to the arrangement, mix, etc. Now, the problem I have is that in order to transfer an

  • Portal EHP1 SP07 Patch causes app server jcontrol.exe to not start.....

    I just finished patching our test portal system. The database\message server which also has an app server on it starts up and runs just fine. The problem we are having is the second app server which is on a different windows host will not start (jcon

  • Adjustment brush auto mask broken for 32bit TIFF image

    Hello, I am using Lightroom 4.2 (updated today) on Windows 7 64bit. I have an issue using the adjustment brush with the option "Auto Mask" within a 32 bit TIFF file: the Auto Mask magic there does not work. I've created 32 bit TIFF files using the "m