How Respond() function knows what NID to use

Hi, I need to respond a notification from my application, I read a lot of message about it, but I can't see how to get the notification ID (NID) to call respond() function, I saw the following example about it:
CREATE OR REPLACE PROCEDURE "RESPOND"
( itemtype in varchar2,
itemkey in varchar2,
response in varchar2,
responder in varchar2) is
x_sqlcode NUMBER;
x_sqlerrm char(512);
nid NUMBER;
begin
select B.notification_id into nid
from owf_mgr.WF_ITEM_ACTIVITY_STATUSES_V A,
owf_mgr.WF_NOTIFICATIONS_VIEW B
where A.item_type = itemtype
and A.item_key = itemkey
and A.ACTIVITY_STATUS_CODE = 'NOTIFIED'
and A.NOTIFICATION_ID = B.GROUP_ID
and B.RECIPIENT_ROLE = responder;
dbms_output.put_line('NID='||nid || ' RESPONSE='||response );
owf_mgr.wf_notification.setAttrText(nid, 'RESULT', response);
owf_mgr.wf_notification.respond(nid,null,responder);
EXCEPTION
When others then
x_sqlcode := sqlcode;
x_sqlerrm := sqlerrm;
DBMS_OUTPUT.PUT_LINE ('Error #: ' || x_sqlcode);
DBMS_OUTPUT.PUT_LINE (SUBSTR(1,70,x_sqlerrm));
end RESPOND;
but whats happend when the SELECT result is 2 nid's, because this workflow is waiting for 2 different notifications (from 2 different activities) at the same time ...
How I know what NID use?
how can I to distinguish both NID's?

Typically you want to replicate in your code what SAP is doing in theirs... I find the easiest way to achieve this is to turn on debugging (/h) and run the standard SAP transaction, and set Breakpoint > At Statement > Authority-Check and see what gets triggered... then you can be pretty sure you are checking the same objects, fields, and values.
Jonathan

Similar Messages

  • How do you know what classes to use ?

    Hello,
    This may sound daft - but how do you know what classes to use to do a particular task ? For example to do password-related stuff - how would I know which classes are all relevant to that ? Am I supposed to buy a book on the classes as the API documentation doesn't really tell you WHEN to use which classes.

    If you're using JSP, then your password field is likely going to be implemented in HTML. So that's nothing to do with Java. (And you can't use a JPassword field in a JSP page.) But when that field comes back to your server, you may be using Java to authenticate it. Even there, the question is not yet what Java method you are going to use, but what methodology. You could have a database to authenticate against, or an LDAP directory. Or you could have the web server use its built-in authentication, which means you don't have to do any Java coding at all. And there are other ways.
    So the question before yours is, how do you know what methodology to use? Again, that comes down to experience.

  • How do I know what Jdeveloper is using for a CLASSPATH?

    yeah yeah yeah I know do
    c:> echo $CLASSPATH
    ... or ... or look at
    control panel > system > environment
    Those tricks still don't tell me what
    JDeveloper thinks it is using for
    a classpath ... I am new to NT and
    these IDE things so any help would
    be nice.
    Thanks

    The easiest way is to compile and run inside the IDE (it is an
    integrated environment after all). You can do this with the
    Build, Make and Run menu items on the context menu of a java
    file or project.
    If for some reason, you need to compile on the command line, you
    will indeed need to set the classpath environment variable
    manually or pass it in as an argument to javac or java. You
    could copy it from the JDeveloper output window (after compiling
    inside the IDE) and paste it into a command prompt.
    Was there some other specific way you'd like the IDE to
    integrate with the windows command prompt?

  • How do I know what OS I have on mu iMac? I've used it as a PC for years and need to switch over but I may be out of date with current software.  I think I read Lion somewehere....?

    How do I know what OS I have on my iMac? I've used it as a PC for years and need to switch over but I may be out of date with current software.  I think I read Lion somewehere....?  OS 10.5.8

    Click on the Apple icon at the top left of your menu bar, then About this Mac.
    OS 10.5.8 is Leopard. Lion is 10.7
    As for upgrading:
    Start by checking if you can run Snow Leopard:
    Requirements for OS X 10.6 'Snow Leopard'
    http://support.apple.com/kb/SP575
    The OS 10.6 Snow Leopard install DVD is available for $19.99 from the Apple Store:
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    and in the UK:
    http://store.apple.com/uk/product/MC573/mac-os-x-106-snow-leopard
    but nobody knows for how long it will be available.
    When you have installed it, run Software Update to download and install the latest updates for Snow Leopard to bring it up to 10.6.8, or download the combo update from here:
    http://support.apple.com/kb/DL1399
    Check via Software Update whether further updates are required.
    You should now see the App Store icon, and you now need to set up your account:
    http://support.apple.com/kb/HT4479
    To use iCloud you have to upgrade at least to Lion, but some functions are only available in Mountain Lion:
    http://support.apple.com/kb/HT4759
    You can also purchase the code to use to download Lion (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
    http://www.apple.com/osx/specs/

  • HT4946 How do I know what is using my iCloud space?

    I see that 1.9g of my iCloud I'd being used. How do I know what it represents and how can I manage it?

    Settings app > iCloud > Storage and Backup > <device>.
    From there you can choose what to back up (apps' data) and see how much each backed up app is using (or would use if you turned it on).
    For an average device, 1.9 GB sounds pretty reasonable.

  • HT1918 how do you know what computers are authorized to use home share before i delete a computer

    how do you know what computers are authorzed to use an I tune account?

    Welcome to the Apple Community.
    There is no way to view a list of authorised computers. You can only tell a computer is authorised from that computer itself, from the store menu in iTunes.

  • I purchased the teacher and student lightroom 5. I put in my code and uploaded my evidence to show that I am a teacher. I am guessing it was sent through to someone. How do I know when I can use the software? I don't understand what to do next.

    I purchased the teacher and student lightroom 5. I put in my code and uploaded my evidence to show that I am a teacher. I am guessing it was sent through to someone. How do I know when I can use the software? I don't understand what to do next.

    Please refer below link for more information
    Education FAQ

  • How to know what CBO programs uses transaction codes

    Hello Everyone,
    How to know what CBO programs uses transaction codes?
    Thanks for the help!

    Hi,
    Please clarify your question ....
    for e.g. give program name

  • After updating latest security update for my OSX 10.7.5 one of my usb port is not working now.how do i know what is cause that usb port is not working after security update

    one of usb port in my macbook pro havent work after i ve updated latest security update for osx 10.7.5, how do i know what is cause that usb port is good or bad

    On a Mac running v10.7.2, the only way to reinstall Safari is to reinstall OS X using OS X Recovery.
    Safari 5.1.1 is for Snow Leopard. It will not run on a Mac with v10.7 installed.

  • I'd like to replace my hard drive.  How do I know what to buy for my 15-inch early 2008 MacBook Pro?

    I am out of room on my hard drive.  I'd like to get a new hard drive and restore my data to the new drive from Time Machine.  How do I know what kind of hard drive to buy for my 15-inch, early 2008 MacBook Pro?  Also, how hard is this to do? 

    I have changed HDDs several times on the old MBP.  Currently it has a Hitachi 500 GB HDD that came out of my new one.  My adage is that one cannot have too much storage and I think that the 1TB HDD is an excellent choice.  Not only do you get generous capacity, the performance should be (theoretically) comparable to a 750 GB 7200 rpm HDD.  I will be very surprised if there are compatibility problems.
    If you bought the HDD from OWC, you should have received Installation instructions.  If not, go to the OWC website and look at the video.  I actually downloaded it so that I could hand write the instructions down step by step.  Also check out iFixit website.  They have step by step instructions that may prove to be useful.
    Tools you need:  00 Phillips and #6 Torx Drivers (get good ones).   The instructions make mention of a plastic pry bar (spudger).  I use a stiff piece of plastic like a credit card.
    Tips to keep in mind:  Get a large open table space and place a large clean towel on it.  That will protect your MBP and when you drop a screw (and you will) it will not bounce far so you will not have to spend an hour looking for it.
    As you take out a set of screws, keep them together (I use wide masking tape.  The little screws will stick to it.)
    Keep the sets in sequence.  That will make reassembly much, much easier.
    The most difficult steps are removing the keyboard from the MBP body and removing the ribbon cable from the mother board.  In case of the former, work from the back (the display) to the front.  You will initially have to pry it up and then do a lot of jiggling to remove it.  Don't be too timid about it.  At the end of the ribbon cable there is a rectangular connector.  Use your credit card to remove it.  Just pry it off.
    The #6 Torx driver is used to take off the 4 mounting pins on the HDD and if I remember correctly there is another place where it is needed, specifically in the battery compartment ( I think).  If the instructions don't say so, keep that in mind and inspect the screw before you select the driver.
    Good luck and make sure that you don't have parts left over.
    Ciao.

  • How do I know what files to remove from my Macbook Pro laptop?

    Apparently my hard drive is full and I need to remove files so I have space to download more music and movies.  I don't want to delete important files.  How do I go about doing this? 

    How do I know what files to remove from my Macbook Pro laptop?
    Remove only files you yourself stored on the laptop; files in your Home folder. Don't delete any files from the system libraries, and if you want to remove applications, use the provided uninstallers.
    For files in the media libraries - iTunes, iPhoto, iMovie use the application to delete music, photos, movies.
    If you are planning on storing more movies and music on your mac, deleting old files will probably not suffice alone to free enough space. Consider to get yourself an external drive to store your media.

  • ICalendar: How do I know what day, in month view, I am working on?

    The calendar in Mavericks is so frustrating compared to SL. How do I know what day, in month view, I am working on? There is no highlight or box or anything. Am I missing something? Also I suppose its not possible to just see 1 month anymore like it use to be instead of seeing 6 weeks. Thanks.  Sure wish Apple would let us keep our Macs the way WE like it with a classic setting everytime they add something that they think is better. Like those awesome grey icons all over the place instead of color.

    The day with the red line on top is today

  • How do we know what are all the fields  updated in a screen?

    Hi all,
             If i am making modifications in row details of sales order screen .for eg, <b>i am changing the quantity or price for a row</b> 
             I want to write log file for the updated fields for that particular sales order.
             <b> How do we know what are all the fields are updated ?</b>     
             If we can use SBOTransaction_Notification procedure.How to write code inside that.
             Please provide code example for that.I have downloaded the sample.But i donot know how to use 'Add code to here ' part.
             Please help me to solve this.Hope  your  reply soon
    Regards,
    V.Rangarajan

    Hi, V.Rangarajan!
    When the field in the matrix is filled with some value and the user moves to another field, the et_LOST_FOCUS event occurs. So, i think you can try to handle ItemEvents and use such code (for example):
    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_LOST_FOCUS && pVal.ItemUID == "38" && pVal.BeforeAction == false && pVal.FormType == 139)
    string ChangedColumnID = pVal.ColUID;
    int ChangedRowNumber = pVal.Row;
    and write the values to your log.
    "38" - is the matrix ID in the Orders form
    "139" - is the Orders form
    Also you can access to the value, that user had put into the field.
    Hope this helps!

  • How do you know what view is available to a form?

    A customer requirement that we set the a firstlogin attribute on the on one of the resources the first time a user logs into the IDM end user interface, changes their password, and provides answers for their authentication questions. The way I know that a person has done this, it that they are displayed the "End User Menu"
    The problem is the accounts portion of the User view is not accessible from the End User Menu. I put the same code in the End User Form and it works.
    Is there a way for me to access resource attributes from this form?
    Is this the incorrect approach to solving this problem?
    How do you know what view is available to a form?

    Thanks, that was my problem originally. When using a fieldref I had to set the base context to variables.user i.e.
    baseContext=':variables.user'
    And in workflow I had to preface variable names with the name of the object I checked the view out into.
    What I really wanted to know how to have multiple views open in a form if possible. I'd like to be able to manipulate user and role objects in the same form when editing users in a specific org.

  • How do you know what version Mac OSX is on ANOTHER drive?

    How do you know what version Mac OSX is on ANOTHER drive without starting that drive
    and seeing the system profiler? In fact, because the drive wont start up, Now I am wondering if it is pre-intel. ? CMD-I doesn't do it. Thanks

    Why mess with this? Well, I got the HDDs and the enclosure from my previous PPC, so I'd like to make use of it all without $pending again.
    I don't see any problems with using the card and drives on your new Mac. Hardware is too pricey to just leave behind if you can't help it. With the new drivers I suspect you'll be able to use your drives, I just don't think you'll be able to boot from them if the interface card requires drivers. They should still be very fast storage devices, and probably reliable due to the ongoing support the vendor has provided.
    I went through the same type of issue when I bought my Dual G4 1.42 Tower (upgraded from a Quadra 840AV ). Several of my devices were SCSI (I was into SCSI Wide/Fast drive arrays at the time for video capture), and I was able to use an Adaptec card for scanning for several years with Jaguar and Panther. I'd spent quite a bit of cash to ensure high quality and performance and didn't want to loose all of the investment. Eventually the SATA hard drives and other USB and Firewire replacements became so cheap and performance improved enough that loosing SCSI with Tiger was not a big deal. I do think I should get about 5 years of hardware compatibility with most products and I keep older Mac's around for dedicated services as long as they aren't a costly maintenance issue.

Maybe you are looking for

  • Copy Database Wizard error: Enumerate subsystems failed for JobServer

    Hi, non-SQL person looking for some guidance. I'm trying to copy databases with permissions from a Win2008 server with SQL2008R2 to a Win2012 server with SQL2012. I'm running SSMS on the 2012 instance, and intiating the Copy Wizard from there. I'm ge

  • Open contracts

    Hi Friends, Is there any std trcode for getting the open contracts (SD)...or ABAP query is required to generate the report for the same. Thanks Ivy

  • Subscribe to RSS Feed - Bing Wallpaper

    Hi - I just downloaded iPhoto from the app store for Mac OS X Lion and I would like to subscribe to the bing rss wallpaper feed.  I found the link http://themeserver.microsoft.com/default.aspx?p=Bing&c=Desktop&m=en-US and when I put that into the sub

  • Why can I not download itunes

    I had to uninstall itunes and now I cannot re-install it.  Why

  • Page won't preview in browser. Realy slow.

    Page won't preview in browser. Realy slow. Images half load and I just get the basic grey box with a slide show. Same files new version new problem Wan't a problem with last version.