Event Subscription

Hi,
I have two different queries:
A) I have an event that has 2 subscriptions, both using some custom rule functions. I noticed that only one of them executes at a time. (I am testing by putting an insert in the rule functions.) I also tried specifying the phase for one as 10 and other as 20, in that case also only phase 10 subscription gets executed. Why is that ?
B)I am enqueuing to WF_IN. There is an event subscription in workflow which runs whenever a message is dequeued from WF_IN. In this event subscription, under triggering condition I specified the "Source Agent" as WF_OUT, which should actually never let the subscription run. But the subcription still executes. Why is it so, is it not filtering the Source Agent ?
Thanks,
Shalu
Thanks,
Shalu

What you have described sounds like it should work fine. You would need to make sure there are database links between System 1 and System 2, and do the system signup procedure so that the two systems are storing each other's system and inbound agent information. Then have System 1 enqueue the event - for instance you could raise the event on System 1 and have a subscription of type Local with a To Agent of the inbound agent on System 2. And finally on System 2, have a subscribtion of type External that sends the event message to the specified workflow process. The workflow process will need to have a Receive event activity marked as a start activity to launch a new process when the event is received.

Similar Messages

  • Incorreect event-key in oracle.apps.inv.lotCreate Event subscription

    Hi,
    I have created event subscription as PL/SQL function for oracle.apps.inv.lotCreate Event.
    In this PL/SQL function, i am calling "getEventKey" method on WF_EVENT_T object obtained.
    However, value returned by this "getEventKey" method is incorrect. According to Oracle Inventory User Guide, event-key should be
    Organization_id-Item_id-Lot_number. However i am getting some six digit number which is neither Organization_id nor Item_id nor Lot_number.
    I am using Oracle E-Business suite Release 12.
    Please let me know if anyone has faced similar problems? what was cause of such problem?
    Let me know if you require more information.
    Thanks,
    Rohit

    Hi Steve,
    The test subscription is raising from the workflow administrator responsiibility but when I update the item attribute controls then the subscription is not raising and checked with the forms trace, there is no event is recorded in the trace. I am using 11.5.10 cu 2 version and suspecting still some setting might be missing for the inventory events.
    I wrote the following code for my initial testing to test the event subscription raising on the item update.
    CREATE OR REPLACE PACKAGE BODY APPS.schl_event_item_update_elt
    AS
    FUNCTION schl_item_attrib_update (p_subscription_guid IN raw,
    p_event IN OUT wf_event_t
    RETURN VARCHAR2
    IS
    l_key VARCHAR2 (240);
    l_key_stat VARCHAR2 (50);
    l_status_rec VARCHAR2 (50);
    l_org_id VARCHAR2 (240);
    BEGIN
    l_key := p_event.geteventkey ();
    INSERT INTO schl.schl_item_attrib_update
    VALUES (l_key);
    RETURN 'SUCCESS';
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    INSERT INTO schl.schl_item_attrib_update
    VALUES ('error');
    END;
    END;
    I would highly appreciate your thoghts on this.
    Thanks,
    Srini C

  • How to setup PCG Flow Rule Process flow with Business Event subscription

    Hi,
    How to setup PCG Flow Rule Process flow with Business Event subscription type?
    When should Business Events be used?
    The latest user guide does not provide ay information on this functionality of Flow rules.
    Thanks

    You should find it's usage noted in the new PCG user guide on page 3-26 under the heading "Configuring Workflow/Event Rules". This way you can have a Flow Rule call a business event component or a workflow. This would be kicked off within a process flow as one of the steps.
    I hope that helps.

  • Cannot Deploy JPD with Timer Event Subscription in WLI 9.2 MP1 cluster

    Has anyone had any luck deploying a JPD with a timer event subscription to a 9.2 MP1 WLI cluster? I am able to deploy Synchronous Client Request JPDs without any trouble but the ones that rely on internal WLI queues for invocation will not deploy in production. I am able to deploy the problematic JPDs to a non-clustered development environment without any issues but when I try to deploy the same artifact to a 9.2 MP1 cluster I see the following error:
    Throwable: java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: tosipDomain_phase2:Name=cgJMSServer,Type=JMSServer
    Stack Trace:
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: tosipDomain_phase2:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
         at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:667)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1025)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:946)
         at com.bea.wli.management.adminhelper.AdminHelperBean.getDispFile(AdminHelperBean.java:348)
         at com.bea.wli.management.adminhelper.AdminHelperBean.getProcessMetadata(AdminHelperBean.java:94)
         at com.bea.wli.management.adminhelper.AdminHelperSSB_wivmoo_EOImpl.getProcessMetadata(AdminHelperSSB_wivmoo_EOImpl.java:70)
         at com.bea.wli.management.adminhelper.AdminHelperSSB_wivmoo_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:548)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:438)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:434)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:57)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:965)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    I am suprised about this error, b/c we are running out of a vanilla WLI domain created with the Configuration Wizard and the error message has to do with an internal JMS server that we have left with the default configuration. Has anyone else had success with this?
    On a side note, I have to complain about the lack of 9.2 WLI documentation about deploying applications to production. The links on e-docs.bea.com actually redirect you to 8.5 documentation?!? I can't believe that this is the documentation we are left to use for 9.2 because there are so many changes between WLS 8 and 9.

    Hey buddies,
    I have a very similar error on WLI 9.2 MP2 on development mode with a cluster of managed servers on the same machine. I'm afraid that the automatic resource creation feature of dev mode is creating the error.
    The ...processes.UnlockService is jpd called by a JMS Broker thru a channel, and I considering it as the first suspect point.
    Any help is welcome.
    LOG CONTENT:
    <May 15, 2008 8:04:57 PM GMT-03:00> <Notice> <Stdout> <000000> <2008-05-15 20:04:57,575 [PERFO] localServer 10.10.10.10 xMDA  [iid=15899 prd=TC DATA act=INSTALL otp=I onb=00011552111 cid=12345189 mrt=]  END Designar_TCDATA OK>
    <May 15, 2008 8:04:57 PM GMT-03:00> <Error> <WLI> <000000> <Exception processing com.oi.integra.provisioning.lockManager.processes.UnlockService
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
         at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:671)
         Truncated. see log file for complete stacktrace
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.ensureQueue(EJBGenerator.java:442)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.ensureWorkshopQueues(EJBGenerator.java:412)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$3.run(EJBGenerator.java:194)
         Truncated. see log file for complete stacktrace
    java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.doesQueueExist(EJBGenerator.java:359)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$6.run(EJBGenerator.java:449)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         Truncated. see log file for complete stacktrace
    javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getProxy(MBeanHomeImpl.java:68)
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:88)
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getAdminMBean(MBeanHomeImpl.java:265)
         at com.bea.wli.knex.runtime.core.bean.WLSUtil.getWorkshopJMSServer(WLSUtil.java:713)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$5.run(EJBGenerator.java:372)
         Truncated. see log file for complete stacktrace
    >
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)

  • An Error occurred in the following Event Subscription: Event Subscription

    Dear All,
    i got a mail from WF mail which is below:
    +From: XXXX WAX [mailto:wfmailer@XXX WAX.com.xx]+
    Sent: Monday, March 28, 2011 3:24 PM
    To: XXxxHrmsSupport
    Subject: Action Required: Local Event ERROR : oracle.apps.ar.hz.Location.update / oracle.apps.ar.hz.Location.update32336
    To  SYSADMIN
    Sent  28-MAR-11 15:23:08
    ID  265172
    An Error occurred in the following Event Subscription: Event Subscription
    Event Error Name:
    Event Error Message:
    Event Error Stack:
    Event Data: Event Data URL
    Other Event Details:
    Event Field                    Value
    Event Name                  oracle.apps.ar.hz.Location.update
    Event Key                    oracle.apps.ar.hz.Location.update32336
    From Agent                  WF_DEFERRED
    From System                 PROD.OWSC.COM
    To Agent
    To System
    Priority                          50
    Send Date                  28-MAR-2011 15:20:18
    Receive Date              28-MAR-2011 15:21:35
    Correlation ID
    Parameter : USER_ID 2085
    Parameter : RESP_ID 50348
    Parameter : RESP_APPL_ID 660
    Parameter : SECURITY_GROUP_ID 0
    Parameter : ORG_ID 81
    Parameter : LOCATION_ID 924
    Parameter : #CURRENT_PHASE 101
    Parameter : ERROR_TYPE ERROR
    Parameter : SUB_GUID A242DC2FF79D70A7E030
    Action History
    Num
    Action Date
    Action
    From
    To
    Details 1
    +28-MAR-11 15:23:08+
    Submit
    SYSADMIN
    SYSADMIN
    Please click on one of the following choices to automatically generate an E-mail response. Before sending the E-mail response to close this notification, ensure all response prompts include a desired response value within quotes.
    Retry Raise Event
    Retry Raise Event: Abort   Raise Event with Event Key   Raise Event with Event Key and Event Data   Raise with Event Key, Event Data and Parameters  Request Information
    The client expecting detailed mail regarding this OED.. kindly help me to find this WF mail answer,,
    What is this mail, what is the reason, what action i have to take for this ?
    Regards
    Hameed

    Dear Hussein,
    Thank you for your support,
    You have mention the excat document which is realted to my error.
    Oracle.Apps.Ar.Hz.Location.Update / Oracle.Apps.Ar.Hz.Location.UpdateXXXXXX [ID 352888.1]i saw the soultion in this above document, still i have dought will you kindly clarify me !!
    · If the event is enabled with subscriptions and that is giving some error message, it means that the user is trying to update the location and he is doing something wrong. Is this correct?
    · If I disable the subscription from the production will that create any problem?
    Kindly expecting your suggestion
    Regards
    Hameed
    OS: Windows server 2003
    Application : 11.5.10.2.0

  • Oracle.apps.wf.notification.receive.message event subscription

    Hi,
    I have created a custom test subscription for the above event.I have simply created a rule function which inserts values in a custom table to show that the event is being fired.
    I tested from workflow responsibility, and yes, event is being captured and values are being inserted in the custom table. Means, from test subscription, its working.
    However, now I am trying to respond an notification from email(actual testing of the event). The notificatoin gets processed, but my function is not being called. In other words, possibly my event subscription is not being fired, seeded one is working though.
    I checked WF_NOTIFICATION_IN table. The email responses are received here and their state also shows from 0 to 2 changing. Also, the DEQ_TIME column also has values.
    So the question is how to know why my subscription is not being fired?
    Thanks,
    Abdul Wahid

    One Update.
    I tried to fire some different event and registered this function with that.
    Its working with this event.
    Does that mean that oracle.apps.wf.notification.receive.message event is not being fired?

  • Business Event Subscription Changes don't take immediate effect

    Hi, it seems that whenever I make changes to my business event subscriptions the changes only take effect the next day. (Almost like there is some concurrent request running at night, or something bounced to make the changes) Does anybody know what needs to be bounced, or what concurrent request needs to be run to make the changes take effect.
    I'm using Oracle Applications: 12.0.4 under the "Workflow Administrator" responsibility.
    Any help appreciated.
    Regards,
    Marinus Snyman

    Try restarting the Workflow Background Manager.

  • Enable Create Event/Subscription button in R12

    hello experts,
    I am trying to create a business event/subscription in R12 and I cannot find the "Create" button.
    I tried using Workflow Administrator, Workflow Administrator Event Manager and Workflow Administrator Web Applications responsibilities. None of them has the "Create" button.
    Is there some profile option I need to setup?
    Thanks in advanced.

    Hi,
    You need to use the user / responsibility that is configured as the Workflow administrator.
    From the Workflow Admin responsibility, open the Administration tab - this will show you who the administrator is. Then log in as either that user or a user with that responsibility and the button will be there.
    HTH,
    Matt
    Edited by: Darryl Burke -- advertisement and links removed

  • Dynamically set send date to defer event subscription

    Hi,
    I need to have an event subscription when new employees are hired, but defer payroll notification until their respective future hire dates.
    I am entertaining the thought of having one event subscription defined for the event, but deferring subscription processing using future send date by dynamically setting the send_date attribute to the future hire date of each new employee. Are there any PL/SQL API available to dynamically adjust the send date for new hires?
    Thanks in advance.

    Thank you for your feedback. I don't see this feature request in the idea list yet. You should post it here so other can vote on it.
    Randy

  • How do we pass the Business Event Data in the EBS business Events subscription Testing?

    HI,
    How do we pass the Business Event Data in the EBS business Events subscription Testing?
    --Khaleel

    Hi,
    Just to add what Dianne has said, whenever you are carrying out any configuration/ customising, you have to test all the related scenarios. For this you have to take help of the End Users who are in a better position to carry out this testing. If the affecting modules like FI, MM, SD, are many, then you also have to see how the cross-module enties are flowing.
    Regards,
    amit

  • Windows Event Subscription - Fails To Activate Subscription

    When I try to create a subscription on a GUI server I receive this error:
    "The client could not start a valid listener to receive subscription events based on the specified input settings."
    When I use WECUTIL on Server Core, I get the following error:
    "The subscription is saved successfully, but it can't be activated at this time. Use retry-subscription command to retry the subscription. If subscription is running, you can also use get-subscriptionruntimestatus command to get extended error status.
    Error = 0x3ae8. The subscription fails to activate."
    I have 1 WinRM GPO configured for the domain:
    Windows Components/Windows Remote Management (WinRM)/WinRM Services
    This is the config file I am using to create the subscription:
    <?xml version="1.0" encoding="UTF-8"?>
    <Subscription xmlns="http://schemas.microsoft.com/2006/03/windows/events/subscription">
            <SubscriptionId>applocker exe and dll</SubscriptionId>
            <SubscriptionType>SourceInitiated</SubscriptionType>
            <Description></Description>
            <Enabled>true</Enabled>
            <Uri>http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog</Uri>
            <ConfigurationMode>Custom</ConfigurationMode>
            <Delivery Mode="Push">
                    <Batching>
                            <MaxLatencyTime>30000</MaxLatencyTime>
                    </Batching>
                    <PushSettings>
                            <Heartbeat Interval="3600000"/>
                    </PushSettings>
            </Delivery>
            <Query>
                    <![CDATA[<QueryList><Query Id="0"><Select Path="Microsoft-Windows-AppLocker/EXE and DLL">*</Select></Query></QueryList>]]>
            </Query>
            <ReadExistingEvents>false</ReadExistingEvents>
            <TransportName>HTTP</TransportName>
            <ContentFormat>RenderedText</ContentFormat>
            <Locale Language="en-US"/>
            <LogFile>Microsoft-Windows-AppLocker/EXE and DLL</LogFile>
            <PublisherName></PublisherName>
            <AllowedSourceNonDomainComputers></AllowedSourceNonDomainComputers>
            <AllowedSourceDomainComputers>O:NSG:BAD:P(A;;GA;;;DC)S:</AllowedSourceDomainComputers>
    </Subscription>
    I also have a GPO set to identify the subscription manager:
    Windows Components/Event Forwarding
    Configure Target Subscription Manager set to enabled with the following entry:
    server=<server FQDN>:5985
    Output of C:\WINDOWS\system32>winrm get winrm/config/service
    Service
        RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;
    ;;WD)
        MaxConcurrentOperations = 4294967295
        MaxConcurrentOperationsPerUser = 1500
        EnumerationTimeoutms = 240000
        MaxConnections = 300
        MaxPacketRetrievalTimeSeconds = 120
        AllowUnencrypted = false
        Auth
            Basic = false
            Kerberos = true
            Negotiate = true
            Certificate = false
            CredSSP = false
            CbtHardeningLevel = Relaxed
        DefaultPorts
            HTTP = 5985
            HTTPS = 5986
        IPv4Filter = "*" [Source="GPO"]
        IPv6Filter = "*" [Source="GPO"]
        EnableCompatibilityHttpListener = false
        EnableCompatibilityHttpsListener = false
        CertificateThumbprint
        AllowRemoteAccess = true [Source="GPO"]
    And output of C:\WINDOWS\system32>winrm e winrm/config/listener
    Listener [Source="GPO"]
        Address = *
        Transport = HTTP
        Port = 5985
        Hostname
        Enabled = true
        URLPrefix = wsman
        CertificateThumbprint
        ListeningOn = null
    Any ideas why this isn't working? I thought this was a pretty simple service to set up?

    Hi Michael Haken,
    Based on your description, please refer to the following thread and check if can help you.
    Event
    Log forwarding (source initiated) GPO configuration qstns
    Regarding to error 0x3ae8, this error may be caused by the WinRM Firewall exception rule being disabled.
    If anything I misunderstand or any update, please don’t hesitate to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Deferred Event Subscription Processed but does not execute PL/SQL Rule Func

    Greetings all,
    I am creating a simple Business Event Subscription w/ a PL/SQL Rule Function in my 11.5.10.CU2/10gR2 E-Business Suite environment. My custom code simply inserts a record into a custom table. When I setup the Subscription to run synchronously (i.e. Phase < 100), the PL/SQL function executes and a record is inserted into my custom table. When I setup the Subscription to run in a deferred manner (i.e. Phase Code >= 100), no record is inserted into my custom table.
    The Service Component "Workflow Deferred Agent Listener" is running. A close inspection of the WF_DEFERRED queue tables reveal that the message/entry is being processed (I can see the status change from READY to PROCESSED), but the PL/SQL function is never executed.
    I would prefer to setup the Subscription to be deferred in order not to degrade performance of the user's session that triggers the business process. What am I missing?
    Thanks,
    Jeff

    Jeff,
    If you are using global variables in your custom code to insert, you may want to stop and start the WF agent listener and then try firing the event.
    Thanks
    Nagamohan

  • Event subscriptions and Event Group subscriptions

    Hi,
    I have a set of events with subscriptions to each one of them.
    Assume I create a Event group with all the events as a member in it.
    I also create a subscription for the event group while the individual event subscriptions are still existing.
    Will the subscription for the group be executed first or the individual subscriptions are executed first ?
    Regards,
    Srini.

    Hi, a few more additional observations.
    My subscription(S1) to the event group launches a process (P1) defined in a workflow item type(BEVLIS).
    My subscription(S2) to the individual event launches another process (P2) defined in the same workflow item type BEVLIS.
    Now when i raised an event... oracle.apps.per.api.person.update_person with event key 1820 following happens..
    1. S1 executed and the P1 got completed successfully. The item key observed in staus monitor is *1820*
    2. But on execution of S2 I got the following error notified
    Event Error Name: WFENG_EVENT_NOTFOUND
    Event Error Message: 3142: Process 'BEVLIS/1820' has no activities waiting to receive event 'oracle.apps.per.api.person.update_person'.
    Event Error Stack:
    Wf_Engine.Event(BEVLIS, 1820, NOTIFY_QUERY_RESULT2, oracle.apps.per.api.person.update_person)
    So prior to execution of S2, a workflow item type BEVLIS with item type 1820 was already available and marked as completed.
    And hence the S2 execution looks for a waiting activity in a process which is already competed and hence fails.
    An immediate soln will be to create another item type and copy the process P2 to it. and use it for S2.
    But is this the behavior expected in subscription processing?
    ~srini

  • Disabled business event subscription but still getting error messages

    We have been getting the issue described in MOS note 1149193.1 (ORA-01403: NO DATA FOUND in oracle.apps.cs.sr.serviceRequest.created On Creating And Updating SRs) - the fix is to disable the subscription against the business event.
    I have done this in our production system but we are still getting the error sent to Sysadmin - do I need to do anything else to get the system to pick up the changes to the business event (bounce apache, managers, etc)
    Thanks.
    Andrew

    Hi;
    After changes you are hitting same error message?
    You can try to close apps services(al) than retest issue. If you still have problem than please sr by using ORA-01403: NO DATA FOUND in oracle.apps.cs.sr.serviceRequest.created On Creating And Updating SRs [ID 1149193.1] as reference
    Regard
    Helios

  • How to pass concurrent request_id dynamically into workflow Business event subscription.

    Hi All,
    I created a workflow to send notification to user with the details in the message body of the workflow.
    Attached the same workflow to the subscription created under the seeded Business event 'oracle.apps.fnd.concurrent.request.completed'.
    Enabled the Business event for the concurrent program 'XXTEST' for 'request completed.'
    Workflow flow is:  Event>FUNCTION>Notification>END.
    In my workflow there are 4 attributes, 1 attribute is input (request id) for the function(procedure) attached in the workflow, based on that 1 input attribute (request id) the rest of 3 attributes are derived.
    Presently I have given constant value for the Attribute (request id) under its properties. I need to pass it dynamically as soon as the conc request is submitted.
    As I said its working perfectly, i.e., user (EG_AFZAL) receives notification after conc request is completed.
    Kindly suggest how to pass request id in the workflow.
    Regards,
    Afzal.

    Hi SamK,
    I applied as u suggested above in the procedure, but it is giving compilation errors.
    Below is my procedure which is attached to function in the workflow.
    CREATE OR REPLACE PROCEDURE APPS.XXWF_EMP_DETAILS
    ( ITEM_TYPE IN VARCHAR2,
      ITEM_KEY IN VARCHAR2,
      ACT_ID IN NUMBER,
      FUNC_MODE IN VARCHAR2,
      RESULT_OUT OUT VARCHAR2)
      AS
      V_REQUEST_ID NUMBER;
      V_USER_NAME VARCHAR2(240);
      V_PAYROLL_NAME VARCHAR2(40);
      V_CREATION_DATE DATE;
       BEGIN
      IF FUNC_MODE = 'RUN' THEN
        --  V_REQUEST_ID := getvalueforparameter('REQUEST_ID') ;
      SELECT REQUEST_ID INTO V_REQUEST_ID
    FROM PAY_PAYROLL_ACTIONS
    WHERE CREATION_DATE IN (SELECT MAX(CREATION_DATE) FROM PAY_PAYROLL_ACTIONS);
    select pap.payroll_name, fu.user_name, paa.creation_date
    INTO V_PAYROLL_NAME, V_USER_NAME,V_CREATION_DATE
      from
    pay_payroll_actions paa,
    pay_all_payrolls_f pap,
    fnd_user fu
    WHERE PAA.REQUEST_ID =V_PERSON_ID-- 44345723
    and paa.payroll_id = pap.payroll_id
    and fu.user_id = paa.created_by;
      --ASSIGNING VALUES TO THE ATTRIBUTES IN THE WORKLOW
      WF_ENGINE.SETITEMATTRTEXT(ITEM_TYPE,ITEM_KEY,'EMP_NUMBER',  V_PAYROLL_NAME);
      WF_ENGINE.SETITEMATTRTEXT(ITEM_TYPE,ITEM_KEY,'FULL_NAME', V_USER_NAME);
      WF_ENGINE.SETITEMATTRDATE(ITEM_TYPE,ITEM_KEY,'HIRE_DATE',V_CREATION_DATE);
      END IF;
        RESULT_OUT := 'COMPLETE';
      END;
    Kindly suggest.
    Regards,
    Afzal.

Maybe you are looking for

  • XML tag markers moved: Find and Replace causing problem in xml elements

    Hi All, I am doing find and replace using GREP. While using the expression like $1, $2 (Found Items) in the change to field it changes the placement of tag marker. If the found item is a part of two of more xml elements, I am getting a serious proble

  • ORA-00942: table or view does not exist in database control

    Hi all, i am getting "ORA-00942: table or view does not exist" error while accessing tablespaces from database control. i am able to access control files, redo log files everything fine, but not tablespaces. database version ---> 10.2.0.1 OS ----> Re

  • PreparedStatement and Date inputs

    Hello, Trying to recover table rows with date columns inside from mysql, I do the following without any success : String sqlFilter = "SELECT * FROM mytable WHERE startdate>=\"?\" AND startDate<\"?\""; PreparedStatement statement = myConnection.prepar

  • Porting Oracle 7 related application to Oracle 10

    Hello fellas, Currently I am trying to port an application from a legacy workstation that uses oracle 7 DB to SunBlade1500 which uses Solaris 9 and Oracle 10 database. Unfortunately, I faced alot of problem during object linking process, and most of

  • Quick Link to .xlsm file

    Hello everyone, I'm having hard time when trying to create Quick Link. I'm using Quick Link to Element which is supposed to open another .xlsm workbook from server. It doesn't seem to work properly though as every time I press the link I get the foll