How to create send mutliple notifications

Hi,
I created a workflow for one of our module.
My task is to create a workflow for all running projects. Each project contains different jobs and tasks. Each job owned by different Partners/Supervisors and all jobs may be executing dffferent location (may be different country/ inside one country diffent locations). Project can only close after finishing the related jobs and each project managed by a manger.
So I need to initiate process once a project started, then workflow send email/ notifications to all supervisors/partners about their jobs and task.
I this purpose I create a one Workflow with 2 process.
1) First one will collect all superviosrs/partners and thier jobs/taks.
2) Second one will send notification to these partners and Superviosrs
My Question is How I can excute the second one from first process. First one will initate the process one time , depends upon number of supervisors/partners sencond one will excute more than one time and send notifications to each partners and supervisors.
Also I want to get an all job completed flag from second process, that will return to first process then first process will update the project status to closed. So first process will wait until all supervisors/partners send a completed response.
Somebody can help me to achive this.
With regards
Satheesh Kumar

Hi,
I figure out the above mentioned error, because of detail workflows were initiated before the Master Start Workflow activity. So Start Detail Workflow giving this error message.
Find approver function intiating all process programatically. Below I am pasting the code of initiasting detail activity:
--start timesheet sub workflow procees
PROCEDURE start_approval_workflow (p_ts_id IN NUMBER,
p_preparer_fnd_user_id IN NUMBER,
p_preparer_resp_id IN NUMBER,
p_ts_name IN VARCHAR2,
                                        p_ts_job IN VARCHAR2,
                                        p_ts_approver IN NUMBER,
                                        p_parent_itemkey IN VARCHAR2,
                                        p_parent_itemtype IN VARCHAR2
                                        ) IS
     l_itemtype           VARCHAR2(10) := 'PMSTSAPR';
     l_itemkey           VARCHAR2(40) ;
BEGIN
-- Get Approval run id
SELECT XXXPMS_PMS_APPROVAL_S.nextval
INTO l_approval_run_id
FROM DUAL;
-- Get AOL user name
SELECT user_name
INTO l_fnd_user_name
FROM fnd_user
WHERE user_id = p_preparer_fnd_user_id;
-- generate the item key
l_itemkey := p_parent_itemkey || '/' || to_char(l_approval_run_id);
-- start workflow process
wf_engine.CreateProcess( itemtype => l_itemtype,
          itemkey => l_itemkey,
          process => 'PMS_DETAIL_APPROVAL' );
-- for testing               
wf_engine.SetItemParent(itemtype => l_itemtype,
     itemkey => l_itemkey,
                                   parent_itemtype => p_parent_itemtype,
                                   parent_itemkey => p_parent_itemkey,
                                   parent_context => null
-- Finally, start the process
     wf_engine.StartProcess( itemtype => l_itemtype,
                    itemkey => l_itemkey );
EXCEPTION
WHEN OTHERS THEN
Wf_Core.Context('XXXPMS_WF_TS_APPROVAL_PKG', 'start_sub_approval_workflow', l_itemtype, l_itemkey);
raise;
END start_approval_workflow;
=====================================
Find approver procedure
=====================================
PROCEDURE find_approver( itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
               actid IN NUMBER,
               funcmode IN VARCHAR2,
               result OUT NOCOPY VARCHAR2)
IS
l_project_id      NUMBER;
l_job           VARCHAR2(10);
l__task           VARCHAR2(10);
l_preparer_fnd_user_id      NUMBER;
l_preparer_resp_id           NUMBER;
l_ts_name                VARCHAR2(100);
l_ts_job                VARCHAR2(1000);
l_ts_approver                NUMBER;
CURSOR ts_appr_cur(l_ts_id NUMBER)
IS SELECT DISTINCT OWNER FROM test_wf
WHERE TS_ID = l_ts_id;
CURSOR ts_job_cur(l_ts_id NUMBER, l_approver_id NUMBER)
IS SELECT JOB FROM test_wf
WHERE TS_ID = l_ts_id AND OWNER = l_approver_id;
BEGIN
     IF ( funcmode = 'RUN' ) THEN
result := 'COMPLETE:N';
          -- Get Timesheet ID from workflow engine
          l_project_id := wf_engine.GetItemAttrNumber(itemtype,
          itemkey,
                                                                 'PROJECT_ID');
-- Get prepare AOL User Id
          l_preparer_fnd_user_id := wf_engine.GetItemAttrNumber(itemtype,
          itemkey,
                                                                           'PREPARER_FND_ID');
          -- Get prepaare Responsibility ID
          l_preparer_resp_id := wf_engine.GetItemAttrNumber(itemtype,
          itemkey,
                                                                      'PREPARER_RESP_ID');
l_ts_name := wf_engine.GetItemAttrText(itemtype,
          itemkey,
                                                            'TIMESHEET_DOC');     
FOR ts_a IN ts_appr_cur(l_project_id)
          LOOP
          FOR ts_j IN ts_job_cur(l_project_id, ts_a.owner)
               LOOP
               l_ts_job := TRIM(l_ts_job) || ts_j.job;
               END LOOP;
               l_ts_approver := ts_a.owner;
               --start the sub work flow process
                    start_approval_workflow (p_ts_id                => l_timesheet_id,
p_preparer_fnd_user_id => l_preparer_fnd_user_id,
p_preparer_resp_id => l_preparer_resp_id,
p_ts_name => l_ts_name,
                         p_ts_job => l_ts_job,
                         p_ts_approver => l_ts_approver,
                         p_parent_itemkey => itemkey,
                         p_parent_itemtype => itemtype
          END LOOP;          
          -- find the approver of this timesheet job from timesheet table
result := 'COMPLETE:Y';
ELSIF ( funcmode = 'CANCEL' ) THEN
     NULL;
END IF;
EXCEPTION
WHEN OTHERS THEN
Wf_Core.Context('XXXPMS_WF_TS_APPROVAL_PKG', 'Find_Approver',itemtype, itemkey, null );
raise;
END find_approver;
I would like to know, aboce code I pasted correct or not. Current sututation is my parent workflow starting and detail workflows are also initiating properly. Bu I am not able to keep track of detail workflow are finished or not. In this detail workflow contains more than one process.
if somebody can clarify the follwoing
1) How I can start a multiple instance detail workflow from parent
2) How I can get the status of detail workflow instances, (that means workflows instance responses like approved/Reject, Complete/Incomplete)
3) How I can continue parent workflow after finish the detail workflow.
With regards
Satheesh Kumar

Similar Messages

  • How do I send single notifications to multiple people in the workflow?

    HI
    As I see you can send notification to one person at a time.
    For example, the approval notification goes to a approver once someone submits a expense report or po approval.
    How do I send single notifications to multiple people in the workflow?
    Any idea?
    Thanks in advance.

    Hi,
    You need to send the notification to a role, which can comprise one or more than one users. If you check the "Expand roles" checkbox, then a different copy of the notification will be sent to each member of the role; otherwise one notification is sent which can be viewed by all holders of the role.
    You should always send a notification to a role rather than a user, anyway - roles do not go on holiday, get sick or leave the company; users do.
    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

  • How do I send email notifications to a different email address?

    I created a form in Forms Central, but I need the notifications and receipts to be sent to and from a different email address other than what I used to create my adobe account. How do I accomplish this?

    How do I send cards, calendars etc created in Iphoto to an overseas address, I can't see the option to change to another country.
    You have to order the cards from the Print Products Store in the country of the delivery address. The store is selected in the iPhoto Preferences:
    If a country does not appear in this menu, it does not yet have an Apple Print Products store and you cannot ship an order there.
    To be able to order from a Store in a different country, you have to use an Apple ID, that has a billing address in that county, with a credit card, that is valid in that country.
    See this support document:   Apple Print Products - Apple Store (U.S.)

  • How to create custom FYI Notification in the iRecruitment Notification Approvals Transaction type

    Dear All,
    Does anyone know how to create a custom FYI Notification using the Notification Apporval Transaction type??
    my requirement is when the Candidate complete filling his personal information and upload required document, a notification should be sent to the recruiter informing that all documents have been uploaded.
    Can anyone tell me how to do that?
    Thanks
    Regards

    Hi,
    Please see this thread.
    Want to send public message to all oracle apps users while instance up
    Re: Want to send public message to all oracle apps users while instance up
    Also, see these docs/links.
    Managing Downtime in Restricted Mode from OAM [ID 364236.1]
    R12 Enabling Applications Maintenance Mode and Preventing User Access [ID 557964.1]
    Downtime and Apache Restricted Mode in Release 12
    http://blogs.oracle.com/stevenChan/2008/03/downtime_and_apache_restricted_1.html
    Thanks,
    Hussein

  • How can i send email notification from UCM?

    Hi
    I am new to this technology. I need to send email notification to the user's, whenever file is checked-in. What is the procedure to send an email notification let us take GMAIL from UCM.
    1) Now I have installed UCM in my machine. Do I need to install any other software to implement this feature(sending email)?
    2) I read it in a document, that configuration is needed in a config file in order to send email. What details do i need to give in these fields,
    HttpServerAddress= ?
    MailServer= ?
    SysAdminAddress=?
    SmtpPort=25
    HttpRelativeWebRoot=/idc/
    CgiFileName=idcplg
    UseSSL=No
    WebProxyAdminServer=true
    3) Do I need to install any mail server? If so which software can i go with?? Is it possible to send email to gmail or yahoo acccount without installing mail server ???
    Regards
    Raj

    You will need to have an SMTP server of some sort that you can use. I think out of the box, you may only be able to use an SMTP server that allows anonymous sending or sending unauthenticated (e.g. an internal server). Any good SMTP server (that is not an internal server) would not allow this for security reasons.
    Thus, I think if you want to use an external SMTP server such as Gmail, you will need to write custom Java code. See this thread for more information: UCM SMTP server Configuration
    Jonathan
    http://jonathanhult.com

  • How to create send connectors for multiple sites in the same domain?

    Current Scenario:
    We have 2 offices, 1 in London and 1 in India. Both are in the same domain and are connected via VPN. Both have their own separate Exchange 2003 server. Each location sends out their mail via the Default SMTP Virtual Server on their exchange server through
    their local ISP. There are no Send connectors created currently.
    We have now installed an additional Exchange 2010 server with Hub, CAS and Mailbox roles at the London site. Internal mail flow between the sites seems to be working fine.
    I believe the Exchange 2010 needs a Send connector to send out mail to the internet. However as soon as we create a Send connector on Exchange 2010, mail from the older 2003 servers at both sites start to flow out from the exchange 2010 server. This is not
    optimal for our India site since their outgoing mail now has to flow via the VPN to London and out via the new server.
    How can we configure it so that each server sends outgoing mail independently?
    Thanks

    Hi,
    In India site, you can create a SMTP connector which point to the local ISP.
    Thanks.
    Niko Cheng
    TechNet Community Support

  • How to create a Email Notification in SRM5.0 ?

    Dear SRM Experts,
    This is my requirement:
    Requirement: If Delivery date for a PO is approaching, system should send notification E-mails to approvers and PO initiators. Program execution and dates for notifications will be affiliate specific.
    Each affiliate should be able to define text for E-mail notification and number of days before delivery date when reminder should be sent.
    We need to send an email notification if Delivery date is approaching that is 3 days before delivery date,if no action is taken then
    PO needs to be locked .
    Kindly help  me regading the requirement.
    Thanks&Regards,
    Chitra

    Chitra,
    you can have one record per affiliate in the custom table with Standard Text name and no of days and in your program based on the text name and no of days you should able to send notification also for locking the PO from approval the work item can be deleted(by program) so that the approver can no longer approve the PO.
    Thanks,
    Suresh

  • How to create a popup notification in lower right corner of screen

    Hi
    I am fairly new to GUI building in Java. I am using Netbeans 5.0 and currently developing a desktop application. I wanted to display informational messages from the application to come up in lower right corner of screen - similar to when in MSN or Yahoo messenger if new person signs in. Similar pop-up is also found in Norton when it finishes live update.
    Currently I am using JOptionPane.showMessageDialog to do this, but it would be more appealing with messages showing on the side without interrupting the application user.
    Can someone point me to what I should look at to achieve this? Any sample code would be great help.
    Thanks

    Use JFrame from javax.swing package. JOptionPane is a built-in dialog that is located at the center of its parent component. With JFrame u can specify the position of your GUI. Try to read the Sun's java tutorial on Creating GUI with Swing: http://java.sun.com/docs/books/tutorial/uiswing/index.html

  • How to create event/notification in SAP using PI.

    Hi there,
    How to create the event/notification in SAP that triggered by the PI system. Any suggestion appreciated.
    Thanks

    Hi Mistry
    You call a bapi to add the event message to SAP EM.
    Below an example:
    SAP EM ABAP - Calling a BAPI to create an Event Message in SAP Event Management - Code Gallery - SCN Wiki
    Best regards
    Eduardo Chagas

  • How do i create & send an e-mail

    I forgot how to create & send e-mails

    I know how to create an HTML page. How do I send it
    as HTML e-mail?
    You open the page with Safari and use a menu option to send the page as email.
    10.5 is supposed to add html email to Mail.

  • Send mail notification on creation of substitute through SBWP.

    Hi All
    We create substitution for a person through SAP Mailbox. Settings>>Workflow settings>>Maintain substitute. This maintains the table HRUS_D2.
    How can we send a notification mail to the concerned people (the person who has been created as the substitute) immediately? Is there a user exit for the same where we can call our FM which sends out the mail.
    Please help.
    Thanks in advance.
    Harsh

    Can anyone help me on this.

  • Who can we send email notification

    hi,
    we had create user and provide access to the groups using the maxl scripts in the shell scripts.
    how can we send email notification for an user after access has been granted to the user using Maxl scripts in shell scripts, and if the user is not created due to error we should not send email to the user.
    the user email id will be in the table.
    Thanks ,

    Hi Rajasekar,
    Actually, when the workitem is manually forwarded to the correct agent, the mail should also be sent to the correct agent explicitly. Usually this happens quiet rarely.
    You can see the new Agent(Forwarded Agent) in the Workflow Log. I think you can even get the forwarded agent in SWWWIHEAD table. Check this out.
    You dont have to change any coding in WD Side.
    Regards
    <i><b>Raja Sekhar</b></i>

  • How to create a new role : Need to send notifications to multiple users.

    Hi All,
    I have a requirement where in I need to send notifications to multiple users
    and no. of users in the list is not fixed.i.e. this builds up dynamically.
    Kindly let me know how do I achieve this.
    Also wanted to know where form the Workflow roles get created i.e. who inserts data into wf_roles and wf_user_roles tables. Is there any UI to create roles and associate users with them.
    Thanks,

    Hi,
    Yes - by default all responsibilities are defined as roles in the Workflow directory. You just need to identify the role that corresponds to the responsibility (look at ORIG_SYSTEM and ORIG_SYSTEM_ID columns, IIRC) and then send the notification to the role.
    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

  • How to create a notification subscription to send email for all alerts except exchange objects related alerts.

    Hi Team,
    We have notification subscription configured currently, which will send email notification for Central team for all alerts generated in SCOM. Recently we got complaint from messaging(exchange server) team, that the exchange related email notifications are
    going to other teams.
    How shall we exclude "All exchange 2010 entities" group from current subscription.
    Thanks,
    Dinesh
    Thanks &amp; Regards, Dinesh

    Hi
    There is no functinality to exclude objects in notifications. You would have to select everything that you want to be alerted on. Either you select all Groups, classes or split up the subscription per "Technology" like SQL, IIS etc. and select
    the corresponding MPs to be alerted on like all rules and Monitors.
    Probably selecting the classes would be the best option
    https://social.technet.microsoft.com/Forums/systemcenter/en-US/7e8a5d4a-1727-4448-a2d8-85950645e01a/notification-subscription-by-management-pack
    This might help also
    http://blogs.technet.com/b/kevinholman/archive/2008/06/26/using-opsmgr-notifications-in-the-real-world-part-1.aspx and
    http://myitforum.com/myitforumwp/2014/03/04/system-center-operations-manager-2012-r2-generating-notifications-by-management-pack/
    Cheers,
    Stefan
    Blog: http://stefanroth.net If my post helped you, please take a moment to vote as helpful and\or mark as an answer

  • How to create Procedure  send Notification to Email In Oracle Worfkflow

    Hi all!
    Now,I'm doing about oracle workflow and i want send my notification to email of my boss.
    I configured workflow mailer in my system and it cant send mail to any email address.
    I want when workflow running,it can send notification to my email of my boss but now it can't
    How i write procude send noticafiton to email?
    Please,tell me about it ?
    Thanks all

    Are you using the notification mailer within Oracle Applications (ebs)? If so, I would post to the Oracle Applications forum, someone there might be able to give you a better idea.

Maybe you are looking for

  • Error while importing data into Oracle 11gr2 with arcsde 9.3.1

    I am getting error while importing the data into oracle 11g r2. We are using arcsde 9.3.1 It seems to be having some problem with spatial index creation. kindly help IMP-00017: following statement failed with ORACLE error 29855: "CREATE INDEX "A3032_

  • About re-installing Snow Leopard...

    If I were to to a clean re-install of Snow Leopard (to solve an issue) and then using Time Machine to restore from a backup, would that defeat the point of me doing a clean install in the first place?

  • "version control" for Oracle database?

    Hi, My work involves loading data from csv files into database tables. The data structure is different in the csv files than that in the tables, so the loading is not straight forward and I often make mistakes along the way. I would like to know what

  • Translation of ORACLE hints to DB2 hints

    Hi, how can I translate the ORACLE hints to equivalent DB2 hints in the following SELECT statement: ====================================================================     SELECT qmihqmnum qmihwarpl qmihwapos afihaufnr       FROM qmih AS qmih      

  • Safari 7.1 does not open on macbook pro

    After updating Safari 7.1, I can not open the app.  Click on Safari icon and nothing happens. I have OS X 10.9.5 installed on Oct 3rd.