Send Custom Mail Notifications to Author/Creator when workflow ends

Hello All,
I am working on workflows and I want to send a mail notification to the "Author/Creator" when the workflow finishes.
Currently, UCM workflows do not provide this functionality Out-Of-The-Box.
For this I implemented a filter and hooked it to the event +"advanceDocumentStateMarkWorkflowFinished"+ event.
Now I am able to send mail using the following code:
InternetFunctions.sendMailTo(email, "DynamicPrefixTemplate","Workflow Notifications", cxt);
However, I am not able to retrieve the author name to whom I have to send the notification. I found that "databinder" object (passed as param) in method signature below doesn't contain the author name attribute.
public int doFilter(Workspace ws, DataBinder binder, ExecutionContext cxt)
I can see other attributes such as dId, dName etc. but not the "dAuthor". Can someone please suggest how can I retrieve the author name for the document for which workflow has just finished and notify the author..
I know there are services like getDocumentByName, but I do not know can I call these services from my filter code in Java. Please guide me.
Thanks in Advance,
Aakash

Hi,
If what you need is to send a notification to the original author, you do not need to write custom code, you can follow these steps:
1) on the first step, assign the dDocAuthor to a workflow variable. As an example, on the Entry event if the first step add this code:
<$wfSet("originalAuthor",dDocAuthor)$>
Note that you need the previous step only if you allow revisions during your workflow. If you don't, then dDocAuthor would not change and you can skip that step
2) on the last step, send a notification using the variable we saved on the first step as the addresee. As an example, on the on Exit event add this code:
<$wfNotify(originalAuthor,"user")$>
(if you do not allow revisions, substitute originalAuthor by dDocAuthor)
Another thing, a lot of people run into the need to override the standard email templates when they start sending custom notifications. The workflow administration guide has a very nice and detailed section that explains how to do this. Also, the idocscript reference guide is always a good point to check the correct syntax for idocscript functions. There is a section of workflow related functions/variables in that guide that always comes in handy.
Hope this helps.
Regards,
Jorge

Similar Messages

  • How to send e-mail notification automatically when a record is inserted?

    Dear All,
    Could anyone kindly tell me how to send e-mail notification automatically when a record is inserted through a form in Oracle Portal Release 2?
    Regards,
    Ridwan.

    Hi,
    If you are writing a form on a table then you can call the mail API from a database trigger on the table. If it is a form on a procedure, you can make the email call from the procedure. To know more about sending mails from plsql go to
    http://www.quest-pipelines.com/newsletter-v2/smtp.htm
    Thanks,
    Sharmila

  • Sending e-mail notifications.

    Hi Experts,
    When I perform any operation in ContentDB(like file upload or delete)...is there any provision in ContentDB that provides sending e-mail notifications to the users of that document/folder.
    we have followed the below link..for creating the custom workflow that does some what similar job.
    http://www.oracle.com/technology/products/contentdb/dev/viewlet/index.html
    I wanted to know if there is any built-in feature available in content DB for doing this prorramatically...
    Thanks
    peter.

    Hi Parker,
    There is no in-built email notification - however, you could leverage a custom event handler in conjunction with the java mailer to achieve such a requirement (by monitoring and responding to certain events occurring in the repository).
    See the CDB devkit for details on custom event handlers.
    cheers
    Matt.

  • Send e-mail notification if "Assigned to" field is empty

    SCSM 2012 SP1.
    I need to send e-mail notification to a distribution list if somebody creates an incident with empty "Assigned to" field. It could happen when an user sends new service request using self-service portal, incoming e-mail is processed,
    or a support team member forget or cannot fill that field.
    E-mail subscriptions do not work. I can create a rule with "User name is empty" condition, but it is never triggered.
    I can use template with "Primary owner" and "Source" fields filled in advance to create SSP incidents. After that I can create workflow which sends notification to that person when an incident is created with "Portal"
    specified as source. It works, but I can send notification to a single person only, not to a distribution list. What if that person is absent?.. In addition, I cannot use a workflow if "Assigned to" field is not filled during manual creation of the
    incident.
    Is it possible to send such notifications at all?

    Check if this helps you
    http://blogs.technet.com/b/babulalghule/archive/2013/05/05/how-to-configure-notification-to-notify-if-assigned-to-user-is-empty-or-incident-is-not-assigned.aspx
    Thanks,
    Babulal Ghule
    http://blogs.technet.com/b/babulalghule

  • How to send E-Mail Notification executing through workflow?

    hi All
    I want to send E-Mail Notification executing through workflow in MDM Data Manager?
    I have tried it, But still i am unable to send E-Mail Notification?
    i will explain, how i have tried?
    1) I have created the simple workflow with the following components
        they are in sequence
          start--> process-> notify--->stop
    2)  owner of the workflow is Admin and launcher of the workflow is Admin and i have given email id to the Default Admin user in the console.
    3) i have created another user (i.e. User2) with default roles as like as Admin and i have assigned User2 to the process component in workflow and I have created e-mail address for the User2 in the console.
    4) i have created another user(i.e.User1) with default roles as like as Admin. and give e-mail address,under the notify component User1 is selected in To Field.
    5) stop component as usual
    coming to configuration part about the SMPT server in MDS.ini file
    1) in mds.ini file for the MailServer=, I have given SMTP Server name once and restarted the server and executed the workflow, but not worked
    2)in mds.ini file for the MailServer=, i have given SMTP Server IP Address and checked the port,and we have configured the host file also and restarted the server and executed the worflow , but not worked
    In all the ways i have executed and tried to send E-Mail Notifications through workflow, But I didn't
    can any one help where i have went wrong, so i can rectify  it
    what actually we have to give in mds.ini file? is any other cofiguration required for it?
    if any one have any solution for it , can you please explain me in step by step
    Thanks in Advance
    bharat.chinthapatla

    Hi Bharat,
    your steps seems to be correct. Just try to ping your mail server, to verify if your mail server is running up, besides note that mdm go throw port 25 for sending emails, so please check if you are able to send emails using port 25 in your network.
    Regards,
    Vito

  • Need to send a mail to group of users when sales order saved

    Hi
    user requirement is send a mail to group of users when sales order is saved

    hi Sanjay,
    Have a look on Michal's blog, it's for JMS, but it works for others: [PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean|PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean]
    Mickael

  • Better way of Sending E-Mail Notifications -- Workflow or Function Module ?

    Hi All,
    I have an implicit enhancement written in a t-code and based on some conditions I am creating event which inturn will trigger the workflow which inturn send e-mail notification via send mail step.
    My question is:
    Which one of the ways is better in terms of performance or overhead to send an e-mail notification. (There are no Approval processes in the workflow.. Just One Step E-mail Notification).
    1) In the Implicit Enhancement, Trigger an event which inturn will trigger the workflow and e-mail is sent via send mail step.
    2) In the Implicit Enhancement, Send the e-mail notification via standard function modules available... such as
       "SO_OBJECT_SEND", "SO_DOCUMENT_SEND_API1".........
    Would be grateful if someone can post the Advantages and Disadvantages in the above 2 ways of sending e-mail notifications..
    Regards,
    PR.

    Just to throw in some additional factors, consider exception handling:
    An event-based send mail step is decoupled and thus independent of your application. This means your exception handling is separate. It means you do not need to hold up the transaction if there is a failure. All this depends on how important the mail is. You could of course add validation code to ensure the mail address is valid and send it elsewhere if not.
    Regarding performance, consider how often this happens. If it's an infrequent occurrence then I wouldn't worry about performance. Hundreds or thousands a day is a different story.
    So the answer is:
    Workflow for low-volume scenarios (low performance impact) that are important (better error handling in WF),
    Direct mail for high volume and noncritical
    In between these, use whatever you like
    One more thing to perhaps consider the future. What are the chances of the mail being replaced by a work item in furture? Sometimes it's only by observing a process after go live that you can identify the best solution. e.g. you may decide to replace the mail with a "Please go fix this" work item because you need deadline monitoring

  • Unable to send E-mail notification. [10054]

    Opening a report in the Backup History and scrolling to the bottom, has anyone ever seen this message: - Test - Unable to send E-mail notification. [10054]? I am wondering what caused this problem as other backup sets on the same Source PC had completed and sent the email with the comment "E-mail notification sent."

    I just had this happen again.  I tried the following: Hold CTRL + Shift and click Preferences (to the left, under Settings)Click the button "Stop all LMIB processes"Wait.  Then open console and try the backup set again.Now it is sending the emails.

  • HT4865 How do I stop the system from sending e-mail notification every time i update icloud?

    How do I stop the system from sending e-mail notification every time i update icloud?

    Pages.  Every time I add new information to the program I get an e-mail asking me if I was the one logging on.  It is an annoyance.

  • Error while sending E-Mail Notification

    hi,
    when i tried to send mail from BPEL i faced error, where i configured the outlook with gmail server its working fine,here i paste the ns-emails.xml and the error code is server.
    ns_emails.xml
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    EmailMimeCharset=""
    NotificationMode="ALL">
    <EmailAccount>
    <Name>Default</Name>
    <GeneralSettings>
    <FromName>my name</FromName>
    <FromAddress>my email address</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>smtp.gmail.com</SMTPHost>
    <SMTPPort>587</SMTPPort>
         <AuthenticationRequired>true</AuthenticationRequired>
    <UseTLS>true</UseTLS>
    </OutgoingServerSettings>
    <IncomingServerSettings>
    <Server>pop.gmail.com</Server>
    <Port>995</Port>
    <Protocol>pop3</Protocol>
    <UserName>my email address</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">my password</Password>
    <UseSSL>true</UseSSL>
    <Folder>Inbox</Folder>
    <PollingFrequency>1</PollingFrequency>
    <PostReadOperation>
    <MarkAsRead/>
    </PostReadOperation>
    </IncomingServerSettings>
    </EmailAccount>
    </EmailAccounts>
    Error in server:
    javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS
    command first. a4sm326251tib.11
    at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTran
    sport.java:1020)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTranspor
    t.java:716)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTrans
    port.java:388)
    at oracle.tip.pc.services.notification.email.EmailDriver
    .sendMessage(EmailDriver.java:215)
    at oracle.tip.pc.services.notification.email.EmailDriver
    .send(EmailDriver.java:185)
    at oracle.tip.pc.services.notification.DefaultNotificati
    onServiceImpl.sendEmailNotification(DefaultNotificationServiceImpl.java:251)
    at oracle.tip.pc.services.notification.NotificationServi
    ceImpl.sendEmailNotification(NotificationServiceImpl.java:271)
    at oracle.bpel.services.notification.queue.sender.MDBCon
    sumer.deliverNotification(MDBConsumer.java:256)
    at oracle.bpel.services.notification.queue.sender.MDBCon
    sumer.onMessage(MDBConsumer.java:137)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
    hodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
    atingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoin
    PointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterce
    ptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContext
    ActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContext
    Impl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(
    InvocationContextPool.java:55)
    at com.evermind.server.ejb.MessageDrivenConsumer.onMessa
    ge(MessageDrivenConsumer.java:347)
    at com.evermind.server.ejb.MessageDrivenConsumer.process
    Messages(MessageDrivenConsumer.java:233)
    at com.evermind.server.ejb.MessageDrivenConsumer.run(Mes
    sageDrivenConsumer.java:169)
    at com.evermind.util.ReleasableResourcePooledExecutor$My
    Worker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:595)
    please help me out to resolve the issue.
    thanks in Advance
    Aswath Thaniga

    hello Anirudh Pucha,
    thanks for your message,
    i'm downloading all the files you advised and one more doubt regarding SOA installation,
    i'm using BPEL Process manager 10.1.3.1.0 installed on my machine and not installed SOA Suite (problem in installing AS Middle tier), i send voice,sms through BPEL PM which works fine, and faced problem in e-mail notification only, according to me with out installing SOA suite we can use BPEL PM or please let me know the procedure to install the downloading files.
    if possible please send me a details in word documents to my mail "[email protected]".
    Thanks again

  • Change sender e-mail notification

    HI.
    I implement Service Desk E-Mail Functionality.
    How can I change Sender this e-mail notification to constant address (support @ myconpany.com for example)?
    At present Sender is the Person who make change in support notification.
    Thank you.

    Hey,
    In order to do that you ll have to do a specific processing method - default method is if i remember well CRM_SRVORDER_EXEC_SMART_FORM of class CL_DOC_PROCESSING_CRM_ORDER
    So you ll have to copy class (takes time and energy from solman) and create your specific method that you ll replace in sppfcadm transaction.
    In this method instead of using received parameter IS_MAIL_SENDER; create your own one for example
    // data ls_mail_sender type SWOTOBJID.
    assign the sender that you want to it, for example: support @ myconpany.com
    don t forget to replace is_mail_sender by ls_mail_sernder when calling module function
    //* call function to process smart form (new forms)
    //    CALL FUNCTION function_name
    that should be fine
    Good luck
    Khalil

  • Problem encountered while sending a mail notification from BPEL process

    Hi All,
    I am fresher in BPEL world, I am trying to send a notification mail to user using BPEL process. I had done all the configuration needed for mail notification process given in the developer guide.
    I am able send a notification mail to intended recipent and also able to receive response activity from the BPEL process.
    but, I am getting the following error in the server console.
    <2006-10-10 16:58:00,642> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Check the error stack and fix the cause of theerror. Contact oracle support if error is not fixable.
    <2006-10-10 17:02:03,144> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Email account does not exist.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Email Account atikam@localhost does not exist.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Actionable links could not be added to task notification.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Actionable links could not be added to task notification for task 4506.
    The email account that will receive this actionable message is atikam@localhost.
    This task is associated with the business process c0c81fee36462bc5:c2b2f6:10e31
    a208d3:-7fdc, identified by SimpleVacReqEscBPELProcess
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Actionable links could not be added to task notification.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Actionable links could not be added to task notification for task 4506. The email account that will receive this actionable message is atikam@localhost. This task is associated with the business process c0c81fee36462bc5:c2b2f6:10e31a208d3:-7fdc, identified by SimpleVacReqEscBPELProcess
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Check the error stack and fix the cause of theerror. Contact oracle support if error is not fixable.
    - If anyone encountered the same situation, please let me know why above error message is coming.
    Thanks in advance.
    Sagar.

    Hi All,
    I am fresher in BPEL world, I am trying to send a notification mail to user using BPEL process. I had done all the configuration needed for mail notification process given in the developer guide.
    I am able send a notification mail to intended recipent and also able to receive response activity from the BPEL process.
    but, I am getting the following error in the server console.
    <2006-10-10 16:58:00,642> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Check the error stack and fix the cause of theerror. Contact oracle support if error is not fixable.
    <2006-10-10 17:02:03,144> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Email account does not exist.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Email Account atikam@localhost does not exist.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Actionable links could not be added to task notification.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Actionable links could not be added to task notification for task 4506.
    The email account that will receive this actionable message is atikam@localhost.
    This task is associated with the business process c0c81fee36462bc5:c2b2f6:10e31
    a208d3:-7fdc, identified by SimpleVacReqEscBPELProcess
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <PCException::<init>> Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Actionable links could not be added to task notification.
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Actionable links could not be added to task notification for task 4506. The email account that will receive this actionable message is atikam@localhost. This task is associated with the business process c0c81fee36462bc5:c2b2f6:10e31a208d3:-7fdc, identified by SimpleVacReqEscBPELProcess
    <2006-10-10 17:02:03,160> <ERROR> <default.collaxa.cube.services> <TaskNotificationsForXPath::getActionableLink> Check the error stack and fix the cause of theerror. Contact oracle support if error is not fixable.
    - If anyone encountered the same situation, please let me know why above error message is coming.
    Thanks in advance.
    Sagar.

  • Sending a mail/notification after INITIAL LOAD

    Hi All,
      I have requirement to send mail/notification after the initial load of equipment from ECC to CRM.
    Every time monitoring and refreshing is taking over nights efforts. Rather than checking that mail makes us simple.
    Please provide me relavant methods and setting to implement and configure for the same.
    Thank,
    Shyam K Gangisetti

    My reply was supposed to be for some other post. Sorry that it got posted for this question.
    Anyhow, for your query - you can create a Ztable with respective fields relevant for email sending
    Then lets assume that load is for business partners..so you can create a implicit enhancement in FM CRM_BUPA_MAIN_VAL and control mail sending from there using entries of above Ztable.

  • Still Receive Multiple E-Mail Notifications of New Posts When Subscribed

    In days past, a user would only receive one e-mail notification of new posts to a thread to which he/she was subscribed. You would have to visit said thread before you would receive new e-mails. Sometime during the last big change in the structure of the forums, this way of e-mailing notifications changed. Now I am bombarded with a new notification each time a new post is made to a subscribed thread. I may have ten or more new e-mails just notifying me of new posts to a single thread before I even get a chance to make a return visit. The old way was much, much neater. Any chance of a return to that?
    Regards,
    Steve M.

    I experience it even worse.
    I receive Notifications and Digests for threads that weren't changed.
    I mean to say that
    -I post an answer to some topic.
    -Automattically I am subscribed to that Thread (that's OK, I asked for that in my settings)
    -I receive lot's of Notifications and Digest ALTHOUGH NOBODY ADDED A NEW POST TO THE THREAD. It seems as if the Notification also reacts any time anybody is READING the thread.
    It seems obvious to me that I only want to receive Notifications (and Digests) of Threads that are altered in some way since the last time I read the thread OR received a Notification or Digest.
    That is:
    - new post added to the thread
    - a post has been altered by one of the posters
    - a Solved or Helpfull mark is given.
    Hope Apple can fix this.
    thanks
    Rienk

  • Send custom email notification with taskID to task owners

    Hi there,
    For a BPM process we're switching the UI partly from WDJ to SAPUI5.
    I've got a question about that:
    Right now, task owners are notified by the standard e-mail:
    Dear Potential Owners,
    You have new task(s) in your work item inbox. To view this task, click any of the following links.
    Direct access to this task:
    <http://sap.example.com:50000/example.com~approverequest/index.html?taskId=655fba65239311e48ef70000254e17a2>,
    Your complete work item list:
    <http://sap.example.com:50000/NavigationTarget=ROLES:portal_content/every_user/...>
    This mail is generated automatically. Do not reply.
    In case of technical issues, contact your IT department directly
    As we want to make the new UI also available from the internet (e.g. mobile phones), we want to use a reverse proxy for that.
    So in fact the address will no more be http://sap.example.com:50000, but http://approval.example.com.
    Can I send out custom notifications including the task ID?
    Thanks in advance!
    Best regards,
    Thorsten.

    Hi Thorsten,
    I'm not 100% sure if this will work for you or not, but you can change the URL's via Java system properties, see the below screenshot. If you set custom calculated values here they will appear in the default messages that are sent out.
    Being Java system properties these apply across the entire system though so if you only want a subset of tasks to have the external facing URL this wont work, this also assumes the external facing url will work internally too.
    Chris

Maybe you are looking for

  • Compare quality and features between aperture3 and iPhoto 11 photo books

    Are photo books created in either aperture3 or iPhoto 11 the same or does one software program produce a better end result?

  • Smart objects and convert color profile behaviour

    I get different results when converting to the same color profile before and after converting to smart object. Why? Do the following: 1. create a cmyk document with color profile 'Euroscale Uncoated v2' and fill the document with the color 86, 32, 14

  • How to resolve "The specified Server could not be found" issue

    I reinstalled my Mac OS X. (Format and and install) Installation was successful but i can't connect to the world(Internet.) Whenever i start Internet explorer it will prompt me "The specified Server could not be found" MY current Settings: Configure:

  • Autotrace with JDBC?

    Hi I would like to get information about the processed SQL statement in JDBC similar to the autotrace functionality in SQL*Plus. - Is there a way to activate something similar to the autotrace functionality in JDBC? - Or can similar functionality eas

  • Printer profile for non canon paper

    Is there a list of profiles for Epson, Kodak, OfficeMax, etc photo papers?