How to derive the notification id from APEXP WF when creating Expanse report in 11i

Hi,
I am new to WF, I need to derive the notification id when creating AP Expanse report, I can achieve this by creating trigger on WF_NOTIFICATIONS table, but I need to derive this by creating custom procedure and that procedure need to be called from WF node. Here I am not getting when this notification id getting creating into WF_NOTIFICATION table.
I have created custom procedure as below and calling this procedure from WF node.
PROCEDURE insert_notif_details( p_item_type    IN VARCHAR2,
                                p_item_key    IN VARCHAR2,
                                p_actid        IN NUMBER,
                                p_funmode    IN VARCHAR2,
                                p_result     OUT NOCOPY VARCHAR2) IS
BEGIN
        lv_report_header_id := p_item_key;
        l_notificationID    := wf_engine.context_nid;
        BEGIN
                 WHILE (l_notificationID IS NULL)
                 LOOP
                    DBMS_LOCK.sleep(1);
                    BEGIN
                     SELECT notification_id
                       INTO l_notificationID
                       FROM apps.wf_notifications
                      WHERE item_key = TO_CHAR(lv_report_header_id)
                        AND notification_id =(SELECT MAX(notification_id)
                                                FROM apps.wf_notifications
                                               WHERE item_key = TO_CHAR(lv_report_header_id));
                    EXCEPTION
                      WHEN no_data_found THEN
                           l_notificationID := NULL;
                           l_error_message := SQLERRM;
                      WHEN others THEN
                           l_notificationID := NULL;
                           l_error_message := SQLERRM;
                   END;
                 END LOOP;
        END;

Hi,
I'm not sure I'm reading your requirements correctly - do you want the process to move on as soon as anyone responds to it, or move on once everyone has responded to it?
In the first case, it sounds like what you really need is a notification activity, which requires a response, sent to the role (or create an adhoc role which is assigned to everyone assigned to role 1 and role 2). As soon as one person responds to it, the notification is closed and the process moves on.
In the second case, you should do the same but expand the roles. You will then need to write a post notification function to tally the votes and determine when to move on - have a look at the standard voting activity for an example of how to do it.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com

Similar Messages

  • How to remove the default theme from "Revolution theme" to create our own movies and put our own background..

    how to remove the default theme from 'Revolution theme" to create movies of our own and a background..
    how to create chapter maker for movies...

    Are you using iDVD? Or iMovie?
    If iDVD, post in -> https://discussions.apple.com/community/ilife/idvd.
    If iMovie, post in -> https://discussions.apple.com/community/ilife/imovie.
    Good luck,
    Clinton

  • How to stop the option key from changing tools when trying to subtract from a selection?

    How to stop the option key from changing my tools when I am trying to subtract from a selection?
    I'm running CS3 on Mac OS Leopard, and the automatic tool switching slows me down, but even preferences doesn't show a way to turn this off.
    Thanks for your help.

    With any marquee tool, JUST holding down the option key should not switch tools. You need to explain the problem much more carefully, It's completely impossible to tell from your description whats going wrong.
    automatic tool switching
    The only preference related to this, is to do with the SHIFT KEY - "use Shift key for tool switch".

  • How to Derive the Card Number from Expense report Invoice

    Hi,
    How can we derive Card Number(iExpense) from Expense Report Invoice number.
    By expense report invoice number i mean, once the expense reports are created in iExpense we import those reports into payables which in turn will create an Invoice.
    I want to find the Card Number which on the credit card transactions(ap_credit_card_trxns_all) from Invoice Number, How can we do this.
    Thanks
    Sandeep

    you can try this query
    select aid.distribution_line_number,acct.card_number
    from ap_invoices ai, ap_invoice_distributions aid, ap_expense_report_lines aerl, ap_expense_report_headers aerh, ap_credit_card_trxns acct
    where ai.invoice_id = aid.invoice_id
    and ai.invoice_id = aerh.vouchno
    and aerh.report_header_id = aerl.report_header_id
    and aid.distribution_line_number = aerl.distribution_line_number
    and aerl.credit_card_trx_id = acct.trx_id(+)
    and aerh.invoice_num

  • How to combine the same variables from 2 queries in one webi report

    HI ALL,
    I created two BW queries/universe and put them into one web intelligence report. Both queries have the same mandatory variable. I combined the relevant dimensions but can't find how to combine the two variables, which resulted in pop-up for 2 variables.
    Any idea?

    Hey Dick Zheng,
    Just to close it,
    Instead of working on existing reports.
    Create new report(s) on top of these changed Universes(2).
    1. New WebI report on top of Univ1 (With Prompt)
    2. New WebI report on top of Univ2 (Without Prompt)
    If both are working as expected. Do follow below:
    1. Open any Report (just created in above steps)
    2. Edit Query
    3. Add Query
    4. Select another Universe
    5. Drag few objects
    6. Run Queries
    Now see it is working as expected or not.??
    Still any issues post here...,,
    Gracias...!!

  • How do I 'remove' a dimension from a cube when creating a crosstab?

    I have a CUBE with 9 dimensions and one measure, This is based of a fact table that has a Materialized View with just 4 dimensions.
    In JDeveloper I used the wizard to create a new crosstab using just the four dimensions that exist in the MV (removing the others).
    ....eventually the page was generated but it takes minutes....
    Q. Is there a way to 'DROP' a dimension from JDeveloper crosstab when you query a CUBE?
    [It looks like Oracle is internally using all 9 dimensions when some are "Hidden"  or not required!]
    The only solution I have found is to create an extra CUBE using just the 4 dimensions (this works within couple of seconds)! But I will end up with 6 CUBES holding different dimensions combination, this feels wrong?
    Q2. Is it bad practice to have multiple CUBES all based on one fact table, just to improve performace?
    I hope you can help.
    Steve

    i think this question is more for the technical teams at the olap forum ;)
    nevertheless: if you have a cube defined with 9 dimensions,all of them are necessary for retrieving the data, "hiding" some of them is possible by the means of "hidden dimensions"
    nevertheless you have to specify which dimension, value gets substitued for those dimensions: usually it is a TOTAL level.
    otherwise your results may be misleading or wrong, so specifying a dimension value for those hidden dimensions is the only choice to be consistent with the OLAP data model
    btw: you can easily use a materialized view in this environment as well, when using the concept of a TOTAL dimension value
    regards,
    thomas

  • How significant is the yellow hazard warning for pictures when creating an album using IPhoto?

    How significant is the yellow hazard warning message for pictures when creating an album using IPhoto?

    Are you talking about making a Book?
    How siginificant depends on how low resolution the photo is and how sensative you are to poor prints - it displays when a -photo will print below 180 dpi - what is the DPI of the photos that is givingyou the warning (the photo size divided byt the pixel size)
    LN

  • How to access the MDX application from SQL server when working with OBIEE?

    Hi,
    I am new to MS SQL Server 2005. We have developed the OLAP Cubes on SQL Server Business Intelligence Development Studio with its integration with Oracle Business Intelligence Enterprise Edition (OBIEE).
    The backend query is in MDX language. Now if I need to run that query I need to access the MDX Application, rite?
    So need to know how to connect to MDX application.
    Regards,

    Administration Tool: File - Import - "from multidimensional". There you choose "Provider Type" = "Analysis Server 2005". You specify the URL, user name and password. Then you can import MSAS cubes just like Essbase ones.
    Cheers

  • How to preserve the column headings from my playlist when I transfer the list as WAV files to a flash drive?

    I have digitized several old vinyls as WAV files and have them in my MacBook Pro in an iTunes playlist. I have arranged the list under the column headings of "Grouping", "Name", "Time", "Artist", "Album" and "Genre". When I copy the files to a flash drive by drag-and-drop, none of the headings except "Name" show up. How to preserve all of the column headings when copying the file to an external device?  Thanks - RC@gnv.

    I have the same issue when trying to sync from iTunes 11 on my MacBook to my iPhone 4 iOS6.1. I blindly did the iOS upgrade to 6.1 (more fool me) and since then have not been able to use my phone as an iPod.
    I have tried restoreing it, I ve tried restoring it to a new phone but it hasn't worked for me.
    The sync starts and the capacity bar in iTunes shows capacity including and music or films etc that are to be included in the sync and then iTunes stops the sync and nothing has been transfered. As with your experience the music is shown in iTunes under Music, under Devices as greyed out with the syncing icon (dotted circle) to the left of it.
    When I try to include photos in the sync, I also get an error msg stating the connection to the iPhone has been lost. I am trying to do the sync vis USB, so I dont why I get this error.
    I can of course download any music I've bought from Apple from my iCloud to my phone but I want to be able to put any music I want on to it like I could before on iOS5.

  • How to get the item name from a column in an interactive report?

    I created an interactive report. Then on the same page I added a tabular form region. What I want to implement is that, when I click a column link button on a specific row, the name of the row will be passed to the tabular region, so that the tabular region can list the corresponding items that belong to that specific row. But I have no idea what the name it is. Any idea? Thanks!

    Thanks! I've got it work! Now I can associate many product to a specific ProductNumber.
    Another issue comes up: I want to be able to add more products in this category. But when I press the "Add Row" button, it generates a new line but with ProductNumber null. This results me in failing to insert the new record, because the rule is that ProductNumber can't be null, and also it can't be assured that the new record is associated with this category (ProductNumber). What can I do to make it automatically come up with the same ProductNumber for new records? I guess some kind of a trigger may be needed, but I don't know how to do it.
    I made a screenshot here: http://img25.imageshack.us/img25/3051/98605982.png
    Thanks!

  • How I prevent the batting linestyle from being lost when opening an Autocad file in Illustrator?

    I have worked out how to open Autocad files in Illustrator, but Illustrator does not obviously recognise the batting linestyle I have used for insulation and it only appears as a straight line. Is there any where to preserve the batting line when opening the file in Illustrator?

    If a linestyle is not coming over, I would assign a unique color in CAD. This way you can select similar color in Illustrator, and change them easily in Illustrator.

  • How to ensure the SSID matches in prod/dev when creating native users/group

    I am running into trouble when I migrate business rules projects-I lose any security assigned to native groups because the SSID in the open LDAP in DEV for that group is different from the SSID in PROD for that group. Is there any way to sync them up now?
    Also, for any new groups we create, how do I create them in both environments with the same SSID? I know I can create the group in PROD and use cssimportexport to create the group in DEV, but they end up with different SSIDs
    Thanks
    Jeff
    V 9.2.1 using Active Directory and Native Directory

    We are using 9.3.1 so I don't know if this switch is available.
    I export the prod ss security with the following switches which gets me all my native groups with sids, and the children of those groups.
    export.internal.identities=true
    export.provisioning.all=true
    export.delegated.lists=false
    export.user.filter=none@Native Directory
    I hack the file to remove anthing I don't want and then use the import utility to import it twice. First with a properties file that does a delete.
    import.operation=delete
    The first run fails right after it deletes the native groups I think because deleting the group deletes the children.
    The second properties file has this switch
    import.operation=create/update
    After this is complete you can have DBA do a schema export/import to the target environment. After bouncing planning in the target environment you go in and update the application settings to have the correct shared services server and re-register with shared services. A "Migrate Identities" ensures that you are in synch. The planning security should still be in place on all objects that had security.
    Keith

  • How can I remove the "Notifications" icon from the Menu Bar in OS 10.9?

    How can I remove the "Notifications" icon from the Menu Bar in OS 10.9?

    As far as I can tell, this is your best option: http://reviews.cnet.com/8301-13727_7-57608829-263/how-to-turn-off-notification-c enter-in-os-x-mavericks/

  • Derive the category/subcategory from the product hierarchy (PRDHA)

    Hi,
    Is there a function module/table/transaction where I can derive the category/subcategory from the product hierarchy (PRDHA)?
    Thks,
    William

    Hi,
    I do see entries in /n/sapapo/relhshow. I don't see how the production hierarchy (Seen in /sapspo/mat1 under the properties tab) relates to it.
    There is no F1 on that field in /sapapo/mat1 unfortunatly, so it acts like a free-form text field, as far as I can see. I changed it to a random value and it allowed me to save it, so it looks like there's no validation on the field?
    William

  • How to find the group ids from which the mail has been sent

    Hi,
    We are able to see the list of mails have been sent to respective mail ids with the help of tcode SOST.
    Is there any way to find through which group ids the mails have been sent.
    Tehe details showing as the mail has been sent by Batchusr.
    Please suggest how to find the group id from where the the mails have been triggered.
    Regards,
    Jena.

    Hi
    This is not helpfull
    If you open any notification QM03, there you will get tab " Action Log"
    If you click on action log , there are two fileds
    Date and time for task release
    I want to fetch these fileds in one of Z report.
    I am unable to find table name for these two fileds
    Task release Date
    Task release Time
    Can we add 'QN CHANGE DATE' parameter in the selection screen (just like QN creation date) w/ range?  The user want to run the report by QN change date as well.

Maybe you are looking for

  • How do I get my HD back to one partition?

    I'm done using Windows and Linux, I don't need them for work anymore and I want to erase both and merge the partitions back into Macintosh HD. I was able to remove a few of the Linux partitions, but neither Bootcamp setup or Disk Utility are letting

  • ORIGINAL NOKIA

    HELLO Iam looking foward to purchase the new nokia5310 problem is there are many fake phones or so I think going by that name,so my question is what features do I need to look out for in an original nokia.

  • Any Alternative to Numerical Identifiers

    I've always been real big on using a readily understood identifier for files, classes, topic names etc. But now I have a bunch of imported PowerPoint presentations--one image to t each topic page that have a couple of added slides throwing off the nu

  • Active data guard 11gr2

    hi, I want to setup Active Data Guard Oracle 11gr2. This is my first time. Is there any good guide or cookbook for setting up active data guard 11g. I want to setup on linux. I'll be thankful. thanx

  • What's the difference between RSE and differential terminal configuration?

    I'm seeing some "digital" (noise that is at a constant value offset from the stable signal value) noise when viewing 2 pressure signals through a NI USB 6008. I currently have the terminals configured to RSE, is that correct? The Transducers are 1-5V