Launch Custom Workflow thru Business Event

Hi ,
My requirement is to launch a Workflow Approval process after creating a Transaction Record in Oracle Apps.
(1) Is it a good practice to invoke the custom workflow (from PLSQL) from a database trigger on the TRX table?
(2) Instead, can I define an event or use a pre-defined business event to invoke my customer WF?
(3) If so, is it sufficient while defining "Event Subscription", just set action type "Launch Workflow" and set workflow details? or do I still need to define an Receive Event Activity in my customer WF?
Thx, Suresh

Hi,
1 - It's probably neither here nor there, to be honest. If it can be avoided, then I would always avoid launching a process from a trigger. However, you may have no other choice than to fire the workflow from a trigger - bear in mind that you will need to defer the process to the background and run a background engine later to start the process off, as the first node will issue a savepoint which is not allowed in a trigger.
2 - Yes. If you are defining a custom event, you will still need to raise the event in some manner, though. If you can hook into a seeded event, then that's the best way to do it.
3 - The workflow process needs to have a receive event node to receive the event. If you are starting the process, then this needs to be set as a Start node. You will then have to ensure that the event gets raised.
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://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com

Similar Messages

  • Creating a custom workflow that copies events in a calendar to another one

    Hello,
    I was looking for a
    Calendar displayed in having some
    items from B to A.
    calendar
    So, I suppose That I
    can run a workflow That
    Automatically copies specific events
    calendar and paste it in
    B.
    This is the step-by step
    of the procedure I executed:
    First, I checked That
    Both calendars have exactly
    the same columns.
    Then I added an yes
    / no column in A Calendar
    called "Rollup".
    Since I'm a new SPD in the
    whole world, I Decided
    to use the 2010 plattform,
    beacuse in the 2013 version
    I couldnt find the "Copy
    Item" Action.
    I developed a list workflow
    attached to Calendar A That Says:
    Condition: If Current List:
    Rollup equals Yes
      Action: Copy Item to
    Current Public Calendar
    For an unknown reason, This
    workflow always displays an error, Therefore
    Accomplished never its purpose.
    Does anyone have an idea what I
    am doing acerca wrong?
    Or knows a better workaround
    for syncing two calendars?
    Thanks for the help !

    Hi  Corina,
    For achieving your demand, you  can create a SharePoint  2013 Workflow for Calendar01 as below and it works fine in my test:
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to attach event to custome workflow object ?

    Hi Guys,
    Could someone help me on how to raise event while creating custom workflow object.We can attach event to object in transaction swe2 . I would like to know how to create that event. Could some send sample custom workflow object with events.
    Many thanks in advance.
    Cheers,
    Garrick.

    Here's an example  using Business object BUS2080  Service notification
    I delegated ZBUS2080 to BUS2080 (service notification).  Added 2 Events REASSIGNED and MODIFIED.
    Use transaction SWO1 for manipulating business objects.
    The User performs an action on a service notification  (IW52) say PUT IN SERVICE AGAIN.
    When the user puts the service notification in service again the event triggered will start a (user defined) workflow which makes a call to a method in the business object ZBUS2080 which launches a batch job.
    This batch job creates our user event REASSIGNED which in turn calls a new workflow to be executed.
    This workflow performs the action I want -- in this case to re-assign the service notification to a new person, send an email and escalate the deadlines
    Code samples are shown below.
    So here's how it works.
    First you need to set up some entries with table SWE2. I've assumed you've already defined the events to the Business object(s) you want to use.
    In SWE2 define entries for BUS2080 (or ZBUS2080) For Events INPROCESSAGAIN and (our event) REASSIGNED.
    IN SWE2 define the receiver call as a FUNCTION MODULE
    For the receiver function modules  for the SAP event (INPROCESSAGAIN) define the receiver module as SWW_WI_CREATE_VIA_EVENT
    For the event REASSIGNED define the receiver module as SWW_WI_CREATE_VIA_EVENT_IBF.
    I have no idea whatwhat the difference is between the two but the process works when it's done like this.
    Ensure the linkage Activated box is clicked in both cases.
    Put your workflow numbers in the RECEIVER TYPE in SWE2 table.
    In the first workflow when the user puts the service notification in service ensure your workflow starts a batch job which raises another event
    Note : You need to instantiate the object (I.e supply the key) to trigger the event correctly. The key is obtained from the WF and will be in the container anyway.
    You can do this by adding this type of function module into the method of the business object you want to execute during the first workflow. The code here creates a batch job which submits the EVENT creating program.
    function z_create_event_for_cs.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(OBJECT_KEY) LIKE  SWOTOBJID-OBJKEY
    *"     REFERENCE(W_REASON) LIKE  HRPXXXX-DUMMY
    *"     REFERENCE(W_ESCLEVEL) LIKE  HRPXXXX-DUMMY
    Create Batch job to run ZZREASSIGNCS
    which creates event REASSIGNED in Customer query workflow.
    data: jobnr like tbtcjob-jobcount,
          jobname like tbtcjob-jobname,
          pgmname  like sy-repid,
          w_key like viqmel-qmnum,
          w_code type c,
          w_num  type c.
          w_num = w_esclevel.
          jobname = 'CREATEEVENT'.
        pgmname = 'ZZREASSIGNCS'.
    call function 'JOB_OPEN'
      exporting
        jobname                = jobname
    importing
       jobcount               =  jobnr
    CHANGING
      RET                    =
      exceptions
       cant_create_job        = 1
       invalid_job_data       = 2
       jobname_missing        = 3
       others                 = 4
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
      input =  object_key
      importing
      output = w_key.
    w_code = w_reason.
    if w_code = ' '.
    w_code = 'Z'.
    endif.
    submit zzreassigncs
    with p_key = w_key
      with p_escl = w_code
      with p_escnum = w_num
      via job jobname number jobnr
      and return.
    call function 'JOB_CLOSE'
      exporting
         jobcount                          = jobnr
         jobname                           = jobname
       strtimmed                         = 'X'
      exceptions
        cant_start_immediate              = 1
       invalid_startdate                 = 2
       jobname_missing                   = 3
       job_close_failed                  = 4
       job_nosteps                       = 5
       job_notex                         = 6
       lock_failed                       = 7
       invalid_target                    = 8
       others                            = 9
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endfunction.
    For the actual program which creates the event  use something like this
    program zzreassigncs.
    This program creates an event REASSIGN
    This triggers a "clone" of the initial customer query workflow
    which is now marked as completed.
    The deadline and escalation level from the original workflow
    should be passed to the new workflow via the event container
    Program is submitted from the original workflow
    Ensure transaction SWE2 has the event REASSIGN for bus object BUS2080
    defined or the WF won't start even if the event is raised correctly
    As this program is run as a background / batch task
    you need to obtain the relevant notification number and pass it
    as a parameter.
    When run from the WF the you can get the notification number obtained
    from the workflow / task  container.
    include <cntn01>.   "For WF macros.
    parameters: p_key like swotobjid-objkey,  "Service notification number
                p_escl type c,
                p_escnum type c.
    constants: c_event    like swetypecou-event   value 'REASSIGNED',
               c_attrib   like swotra-attribute   value 'USRSTATUS',
               c_object   like swetypecou-objtype value 'BUS2080'.
    data:     w_object like swotobjid,
              w_stat     like  tj30t-txt04.
    data: rc like sy-subrc.
    data: begin of event_cont occurs 0.
          include structure swr_cont.
    data: end of event_cont.
    data: begin of return.
      include structure swotreturn.
    data end of return.
    if running from WF rather than a batch job
    swc_container container.
    swc_get_element container  'Znumber' p_key.
    w_object-objkey = p_key.
    w_object-objtype = 'BUS2080'.
    call function 'SWO_PROPERTY_GET'
    exporting
        object                = w_object
        attribute             = c_attrib
      changing
        value                 =  return.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    w_stat = return(4).
    event_cont-element = 'Status'.
    event_cont-value = w_stat.
    append  event_cont.
    event_cont-element = 'Escalated'.
    event_cont-value = p_escl.
    append event_cont.
    event_cont-element = 'Escalation'.
    event_cont-value = p_escnum.
    append event_cont.
    Note WAPI calls only valid from rel 6.1 using Webflow engine
    (part of standard WF since rel 6.1)
    CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
      EXPORTING
        OBJECT_TYPE           =   w_object-objtype
        OBJECT_KEY            =   w_object-objkey
        EVENT                 =   'REASSIGNED'
      IMPORTING
       RETURN_CODE           =  rc
      EVENT_ID              =
    TABLES
       INPUT_CONTAINER       =  event_cont.
    if rc <> 0.   "Houston ---We have a problem !! '
      write: text-002 color col_negative.
      exit.
    endif.
    even though no database / table is updated here by the event
    we still need the commit work to initiate the event correctly
    commit work.
    You CAN use Objects (OO ABAP) but if you are fairly new to this sort of stuff just stick with standard BOR (Business objects) to parctice on until you've got the hang of the process.
    It's actually a lot simpler than most people realize --which is why WF consultants get paid decently !!!!.
    Cheers
    Jimbo

  • Apps/Business events/getting Event name in workflow?

    Hello,
    I've created a new workflow that is supposed to receive an event (specifically oracle.apps.gml.po.receipt), and I've subscribed that workflow that business event.
    Within the workflow itself, I am trying to determine what the event is that spawned the workflow. I had thought a call to wf_engine.getitemattrtext for EVENT_NAME would do it, but that's apparently not set yet, or something's broken. Within the workflow, I have an EVENT_NAME and EVENT_KEY attributes, but neither of them are populated.
    The workflow is being started, and processing ok...that is, the p_itemkey (containing the event key) seems to be populated.
    I'm on 11.5.9, OWF.G.
    Does anyone know what I might be missing?
    Thanks,
    Gordon

    To verify - is the Event Name property set to the EVENT_NAME attribute in the Event Details tab for the activity node in the WF Builder?

  • Business Event not triggering the PLSQL procedure.. What to do?

    We need to call a plsql procedure when the GL Approval workflow has ended with approval. I thought i could do this by customizing the relevant business event.
    We are on EBS 12.1.3 with RDBMS : 11.2.0.3.0.
    I saw that the business event oracle.apps.gl.Journals.journal.approve was disabled currently. I enabled it and created a subscription for it. Subscription was a PLSQL procedure. Currently, for test purpose only thing it is doing is to insert a row into a table.
    Business Event Subscription settings:
    System: ORDEBS.SYSTEM.COM
    Triggering Event
    Source Type:Local
    Event Filter: oracle.apps.gl.Journals.journal.approve
    Execution Condition
    Phase: 100
    Status: Enabled
    Rule Data: Message
    Action Type:Custom
    On Error: Stop and Rollback
    Action
    PL/SQL Rule Function: XX_GL_APPROVE_BE_PKG.Get_Attributes
    Priority: Normal
    Documentation (Not sure what value to be given for these. I went with the below values.)
    Owner: Company Name
    Owner Tag: Custom Schema
    Using the below query i can see that the business event is getting called when the approval happens (One row added each time approval happened). But I cant see any rows in the table where it should insert a row. What could be going wrong? How can i verify that the procedure has been called?
    select * from WF_DEFERRED where corrid ='APPS:oracle.apps.gl.Journals.journal.approve'
    Procedure:
    CREATE OR REPLACE PACKAGE BODY APPS.XX_GL_APPROVE_BE_PKG
    AS
    PROCEDURE Get_Attributes
    IS
    BEGIN
    INSERT INTO xx.xx_test_table VALUES ('From BE');
    COMMIT;
    END Get_Attributes;
    END XX_GL_APPROVE_BE_PKG;

    Thanks Alejandro. Now this is working.
    Changes i made:
    1. Added the WFERROR workflow as a subscription to this event. So i could see that the function i am calling from the event did not have proper signature.
    2. Changed the function signature to have standard parameters like:
    CREATE OR REPLACE PACKAGE BODY XX_GL_APPROVE_BE_PKG
    AS
    function subscription(p_subscription_guid in raw,
    p_event in out nocopy wf_event_t) return varchar2 is
    l_result varchar2(20);
    begin
    insert into xxvtv.xxvtv_test_table values ('From BE');
    commit;
    exception
    when others then
    wf_core.context('XX_GL_APPROVE_BE_PKG','function subscription', p_event.getEventName(), p_event.getEventKey());
    wf_event.setErrorInfo(p_event, 'ERROR');
    return 'ERROR';
    end subscription;
    END XX_GL_APPROVE_BE_PKG;
    3. Changed the owner name and owner tag both to the custom schema name (XX)

  • Business Event during R12 upgrade (11.5.10.2 - 12.1.3)

    Best practices for R12 upgrade says to disable custom tiggers and business events.
    Disabling custom Triggers is fine , understood it.
    However the phrase "and business events." is a bit confusing for my customer.
    Though IMO ,it means disabling custom business events and not all ,however he is keen to know whether this means
    disabling standard business events as well.
    Also since we are bringing down all the services including WF services ,how can Business events be processed ?
    Moreover as far as I know ,enabling maintenance mode shuts down the Workflow Business Events System which means no business event will be processed.
    Thus why it is written in most of the Best Practices documents to disable business events ?
    thanks for your help.
    -SK

    I have never needed to disable business events in all the upgrades I did from 11.5.10.2 to 12.1.3 and I believe it is not mentioned in these docs (I understand it is mentioned in the best practices, but I believe it is not required).
    Oracle E-Business Suite Upgrade Guide Release 11i to 12.1.1 [ID 1082375.1]
    Oracle E-Business Suite Upgrade Guide, Release 11i to 12.1.3
    http://docs.oracle.com/cd/B53825_08/current/acrobat/121upgrade.pdf
    Thanks,
    Hussein

  • Regarding business event Creation

    Hi folks,
    My requirement is to create a workflow using business event. It is done and working as expected in 'development' instance.
    Next I need to move the workflow and implement the business events in 'Production' instance. But am not having the sysadmin login credentials for production and it is the option to create to business events.
    Kindly suggest me any other solution for this
    Thanks in advance

    You can do this via command line WFXLoad utility but you will need the apps scheme password.
    In the source environment, where the event and its subscriptions are define, download the data as follows:
    - Download business event definition
    java oracle.apps.fnd.wf.WFXLoad -d apps <passwd> <db server name>:<port>:<SID> thin US eventDef.wfx EVENTS <event name>
    example
    java oracle.apps.fnd.wf.WFXLoad -d apps apps myserver.oracle.com:8068:PROD thin US myEvent.wfx EVENTS oracle.apps.fnd.wf.myevent.created
    - Download business event subscriptions
    java oracle.apps.fnd.wf.WFXLoad -d apps <passwd> <db server name>:<port>:<SID> thin US eventSubs.wfx SUBSCRIPTIONS <event name>
    In the target instance, where you do not have access to events studio:
    - Upload business event definition
    java oracle.apps.fnd.wf.WFXLoad -u apps <passwd> <db server name>:<port>:<SID> thin US eventDef.wfx
    - Upload business event subscriptions
    java oracle.apps.fnd.wf.WFXLoad -u apps <passwd> <db server name>:<port>:<SID> thin US eventSubs.wfx
    In the syntax I used eventDef.wfx and eventSubs.wfx but you can use any file name.
    Regards,
    Alejandro

  • Inbound  using Business Events

    Hi All,
    We have to develop an inbound interface using business event to get better asynchronous mode of process between the middleware and Ebusiness Suit. The previous design was using a stored procedure by passing input parameter as table type (We had header line and details information in 3 different table type). Now instead of calling stored procedure middleware(ESB) will trigger business event by passing the input parameter. Please let me know how can I achieve this.
    My main concern is if ESB is able to populate data via business event how can we process in our side.
    I am ok even if we can get the data as xml also,, Please tell me how to achieve.
    Please help.
    Thanks,

    Ayyapan wrote:
    Hi,
    I have to use business events to send concurrent program status.Could anyone help me out ?
    Sytem : R12
    linux env.
    Thanks.Please see "Business Events Region" in (System Administrator responsibility > Concurrent > Program > Define) window.
    Concurrent programs can be integrated with the Business Event System in Oracle Workflow. Business events can be raised at key points of the life cycle of a request to run a concurrent program. Users can subscribe to the business events and create their own business processes interacting with the concurrent programs.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174301.htm
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458252.htm
    Thanks,
    Hussein

  • How di I find demo/test workflows with triggering events?

    Hello all,
    I am kinda new to WF. I would like to find a demo / test workflow which can be triggered via an event. This is in order to test my ABAP program which is supposed to launch a workflow via an event.
    Thank you for your help.

    You don't really need one. Just enable the event logging (transaction SWELS) and check the event log (transaction SWEL) afterwards. Don't forget to COMMIT WORK.
    If you need the name of an object/event(/workflow) combination, use transaction SWE2 which lists all generic event-to-recipient entries, both those that are active and those that are just defined (event will still be in log).

  • Business Event System in Workflow

    Hi,
    I am having difficulties with the Business Event System (BES).
    Actually, I've read the Oracle documentation about BES. Still I don't understand much.
    There are little documentation about the BES, and I still get blank point.
    Here are my questions :
    1. What the Business Event System is?
    2. Some of documentations show that using the BES, the workflow can interact with
    different system.
    What does 'different system' mean?
    Does it mean to another computer (perhaps Client Server type)?
    Or to another system (like headquarter which has several branches) located in
    different location?
    Or to another database service in the same computer (perhaps ORCL and ORCL2)?
    Or with another database applications (i.e Microsoft SQL Server, MySQL)?
    3. How do we use the BES?
    How do we define BES?
    Where do we use the BES?
    Is it using PL/SQL?
    Or the BES itself is a PL/SQL which is inside a procedure or function or trigger (used
    to manipulate the database)?
    What does the BES look like? Is it a PL/SQL code, an e-mail, or ...?
    4. Some documentations said that using the Event (with Receive type) as a start node
    (in Workflow Builder), the process will wait and respon <u>until</u> a Business
    Event is detected?
    How do we interact with BES?
    How do we know what kind of BES to start the process?
    Do we use the Oracle Advanced Queuing?
    Is it using an e-mail to start the Event?
    5. There is a statement from the "Feature Overview Oracel9i Application Server : Oracle Workflow" (from Oracle site)
    "Business event messages from Oracle Workflow can be placed on or received from Oracle9i Advanced Queues, providing support for Oracle Net as well as HTTP and HTTPS communication protocols."
    and
    "The Business Event System uses Oracle Advanced Queuing to propagate messages between communication points on systems, called agents, using a specified protocol. Events received from external systems are processed by an agent listener that runs on the agent's queue."
    Actually what the Advanced Queuing is?
    Is it the mechanism of scheduling activites such as sending a message?
    Is it use to start the Workflow Background Engine periodically?
    What does the Events received from external system is? Is it an e-mail?
    If it is True, so the workflow process could be start using an e-mail?
    6. There is also a documentation stated that the Event can be raised using the PL/SQL WF_EVENT.Raise() API.
    The Event also could be launch using the Workflow Home Page (Workflow monitor) in Event link?
    So what does the BES is used for, if the Event could be launch using a PL/SQL?
    Is the process of raising the Event called BES?
    Such as a procedure to manipulate database tables that consist the WF_EVENT.Raise().
    What is Generate Function is?
    7. What Agent is?
    What Subscription is?
    What Event group is?
    8. Perhaps there is a guide book of using the Business Event System?
    Any light would be grateful.
    Many many thanks,
    Buntoro

    Hi
    I am in exactly the same position...
    Have queued up my events using wf_event and the subscription is putting them in WF_OUT ok.
    So, I guess that WF_OUT is a multisubscriber queue, so when we register with it in BPEL it asks for us to identify ourselves using the consumer and/or correlation ID.
    However, I'm with you in that I have no idea how to specify the consumer.
    There is a CORRID column in WF_OUT and I'm banking on that being the correlation ID at the moment....
    I'll let you know if I crack it!
    Chris

  • Business Event when Sales Order is Booked....Custom Business Requirement

    Hello,
    I have business requirement like when a sales order line is booked/ Item is Received in Inventory/ Line is Cancelled , I need to update quantity,price for that customer and item# in a custom table.
    So what is the best approach to do it..Is it making use of business events or Alerts or any other approach?
    If business events, can you please tell me what are the business events and how to find out event parameters for the following
    1. When Sales order Line is Booked
    2. When Item is Received in Inventory
    3. When Account Alias Receipt is Done in Inventory
    Please advise.
    Thanks,
    Sridhar

    Check these links
    https://forums.oracle.com/thread/2337912
    https://forums.oracle.com/thread/976272
    https://forums.oracle.com/message/2427841
    I don't recommend alert as the alert is fired during every record update. If you have modified the OM workflow, then you can achieve your requirement by adding a new node/function in the workflow to update the custom table.
    Thanks
    Shree

  • Oracle E-Business events - Launch worflow

    Hi All,
    Need some info regarding Oracle Workflow and E-Business Suite R12 events.
    We have defined a business event in a E-Biz R12 and its subscription is of type ‘Launch Work Flow’ to launch a node(activity) of the work-flow. This activity is not the start node(activity) of the wf. Name of the activity is ‘Receive data’
    ‘Receive data’ is defined as an ‘receive-event’ type of activity. We’ll invoke the workflow from back-end, it will halt at the ‘Receive data’. When e-Biz event is raised, workflow will be resumed.
    We’ll be running different instances of work-flow. So, how do I inform e-Biz event to resume a particular instance of work flow?
    My assumption is:
    Work-flow (wf) instances are distinguish based on item-key while e-Biz event takes event-key as an input parameter when it is raised. E-Biz event will match the event-key with item-key of workflow and resume the correct instance of wf. Is it correct?
    All pointers are appreciated.
    Thanks,
    MK

    Thanks Bhavesh for your inputs. But, I'm little bit confused.
    We have defined 'Event Name', 'Event Key' attributes but they are of type 'Text'. Could you please inform me if I need to change the type?
    Another question is regarding getting/fetching the parameters passed to e-Biz event in Work-flow. I want to fetch/get these parameters in the activity which is after 'Receive Data' Activity in my work flow.
    Could you please help me in this regard?
    Thanks,
    MK

  • Integrating Workflow Process and Business Events

    Hi,
    Im trying to use events in oracle workflow process..im trying to run the demo
    process named 'Workflow Agent Ping / Acknowledge'. I have scheduled the listeners for local inbound agent WF_IN and propagations for local outbound agents WF_OUT. The master ping process begins executing and calls the detail ping process. The detail ping process begins execution but the process gets stuck on the receive event node.The process is not receiving the acknowledge event in return to the ping event. It does not move further,not allowing the detail ping process to complete, which as a result doesnot allow the master ping process to complete its execution.
    How do i make it move?
    Thankyou
    Saadia

    After launching the master process, check for the state of the message in WF_OUT queue. It could be that the message stays in READY state in WF_OUT and has not propagated to WF_IN queue.
    Check if DB init parameters aq_tm_processes is set to 1 and it is running. If the message is not found in WF_OUT even after launching the proces, check if the queue is enabled for enqueue. Also check if the Business Event System is ENABLED.
    SELECT text
    FROM wf_resources
    WHERE name = 'WF_SYSTEM_STATUS';

  • Event Linkage for custom Workflow and Custom BO

    Hi Friends,
    I have created one Custom Module Pool, Business Object and Workflow Definition. In Business Object I have created one Business Event and the event is triggered from Custom Module Pool using function module SWE_EVENT_CREATE. I have created event linkage in transaction SWETYPV and receiver type given Workflow Template No: (WS*) and receiver function Module SWW_WI_CREATE_VIA_EVENT_IBF and checked Event Linkage Active checkbox. Finally I have activated the Triggering Event in the Workflow basic data section. But the Workflow is not getting triggered. Can anyone of you give me a solution for this or tell whether i missed any of the setting for the workflow?
    Regards
    Sujith

    Hi Sujith,
    Did you include a commit work statement after the call to SWE_EVENT_CREATE?
    Regards
    Gareth

  • 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

  • File to IDOC

    Hi, While working with File to IDOC, How can we know what are the mandatory fields that need to mapped? Regards Krishna.

  • How to remove extra html markups from adf generated code in webcenter porta

    hi! I am trying to develop navigation in oracle webcenter portal. My code is generating extra div's for li and a tags. how to remove the extra div's. code in my template for generating navigation is: <div id="JS-MainNav " class="menu9 clearfix"> <ul

  • How to add a link into a bubble tip

    Hi All, I am new with OAF and I have 4 requirements with OAF page.I need help from OAF gurus. I am working on iProcurement's Checkout: Requisition Information page. Following are the requirements : 1>On that page it having a drop down list and this d

  • JTable can't display column names and scroll bar in JDialog !!

    Dear All , My flow of program is JFrame call JDialog. dialogCopy = new dialogCopyBay(frame, "Bay Name Define", true, Integer.parseInt(txtSourceBay.getText()) ,proVsl ,300 ,300); dialogCopy.setBounds(0, 0, 300, 300); dialogCopy.setVisible(true);      

  • Cs5 download for supporting canon 6D

    What is the download version in cs5 for supporting canon 6D and where do I find it to download?