Repository Framework - customize notification

Dear Experts,
does anybody know how to customize a notification. If an resource in the repository was changed, send a customized eMail or SMS to the registered users.
First i tried out to implement a new repository service to create a new subscription. But I think thats false. Can anybody help me???
Thx a lot!
regs,
timo

Hi,
You need to write your own notification class for customization of notification. Some thing like this:
public class SendingMail {
public void postMail(String recipient, String subject, String message){
String mailServer =
               ResourceBundles.getBundle(SendingMail.class.getName()).getString(
                    "sendmail.mail.server.sap");
props.put("mail.smtp.host", mailServer); // mail server
Session session = Session.getDefaultInstance(props, null);
          session.setDebug(debug);
          // create a message
          Message msg = new MimeMessage(session);
          //MimeMessage msg = new MimeMessage(session);
          // set the from and to address
          String sender =
               ResourceBundles.getBundle(SendingMail.class.getName()).getString(
                    "sendmail.sender");
          InternetAddress addressFrom = new InternetAddress(sender);
          msg.setFrom(addressFrom);
          Address addressTo = null;
          IUser user = this.getUser(recipient);
          if (user != null)
               addressTo = new InternetAddress(user.getEmail());
          else
               addressTo = new InternetAddress(sender);
          msg.setRecipient(Message.RecipientType.TO, addressTo);
          // Setting the Subject and Content Type
          msg.setSubject(subject);
          msg.setContent(message, "text/html");
private com.sap.security.api.IUser getUser(String userName) {
          IUser user = null;
          try {
               user = UMFactory.getUserFactory().getUserByLogonID(userName);
          } catch (UMException e) {
               e.getMessage();
          return user;
and you need to call this class to send notification. Hope this help you.
Satish

Similar Messages

  • How can we customize notification jsp according to connected user?

    We need to customize notification jsp according to connected user.
    we are trying get user method of (IWorkflowContext)httpSession.getAttribute("workflowContext")
    but (IWorkflowContext)httpSession.getAttribute("workflowContext") returrn null
    Jdev 10133 and soa suite 10131 on windows.
    our code fragment is
    HttpSession httpSession = request.getSession(false);
    if (httpSession != null) {
    IWorkflowContext ctx = (IWorkflowContext)httpSession.getAttribute("workflowContext");
    try
    if (ctx != null) {
    String bpmUser = ctx.getUser();
    out.println( bpmUser );
    else
    out.println("authFailed dididididi");
    Thanks for your help...

    Infact we need to Change Format/data of the pdf file wich comes with Workflow Notification PO "Response Required for PO Approval".
    I the pdf file attached is generated by "PO Output for Communication" Concurrent Program.
    Executable is "POXPOPDF" Execution File name is "PoGenerateDocumentCP" which is a java program.
    This prgram uses the following files to generate pdf output of draft PO output.
    DATA FILE:
    PO_STANDARD_PO.xml
    PO_STANDARD_PO.xsd
    TEMPLATE:
    PO_STANDARD_XSLFO.xsl
    I need to know any visual layout editor available to change contents/layout/data of this pdf.
    Regards,
    Usman
    Edited by: user10518960 on 01-Feb-2013 07:18

  • Knowldge management - Repository Framework- Repository manager- Repositor

    Dear all,
    We have a requirement to store different kinds of documents could you please explain Wha is Repository Framework->Repository manager-> Repository
    i have seen WebDV, Lotus notes, File system, Webrepository for above scenario which repsoitory  can use what is CM repository manager how can use Persistance modes DB, DBFS, FSDB modes
    can some one explain about how to integrate between a repository to repository manager and repository framework for above scenario.
    i  am bit confused about all these terms
    Experts please explain these terms with practical scenario
    Thanks in advance, helpfull answers will get maximum points
    Thanks in Advance,
    Ashok

    Hi
    Repository framework:
    Knowledge Management capabilities provides a central, role-specific point of entry to unstructured information from various data sources. This unstructured information can exist in different formats such as text documents, presentations, or HTML files. Workers in an organization can access information from different source such as file servers, their intranet, or the World Wide Web.
    The Repository framework(RF) integrates these data sources and provides access to the information contained in them through the portal.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/cacd8860-0a01-0010-a393-a7bdd1449487
    REpository managers:
    To integrate differnt type data source we need repository managers .
    e.g.
    we can configure internal repository like Content management repository managers:(CM)
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/284
    We can also configure external repository like file repository, lous notes repository etc.
    File repository maanger:
    By cofiguring file reposisitory we can access outside file systems through Knowledge management.
    We can use diffrent repository managers in the configuration like W2KSecurityManager
    https://www.sdn.sap.com/irj/sdn/thread?threadID=560624&tstart=525
    The configuration for all the repository managers are provided by the SAP library.
    chk this:
    KM>admin guide>sys admin>sys configuration>repository and repository managers
    http://help.sap.com/saphelp_nw70/helpdata/en/4c/9d953fc405330ee10000000a114084/frameset.htm
    This will be sufficient to clarify your doubt.If you want any help let me know.
    Reward points if helpful.
    Regards
    Manisha

  • Help using CollatorEntry for Repository Framework Web Services

    Hi All,
    Just wondering what are the pre-requisites needed for my KM repository before I can use the collator functionality in web services such as the findResrouces function from the Repository Framework web service?
    Should my repository be setup with an index or something? I've been reading the Javadocs and trying a few things out using the WSDL navigator but I have no idea what values I should be putting in for CollatorEntry object. What "name" values should I be putting which correspond to properties?
    Could anyone please provide example inputs to put into the WS Navigator say for the method findResources?
    When I test out the findResources method
    when I input rid: /documents/
    CollatorEntries - element1 - name = displayname
    ascending = false
    I keep getting the error:
    Unable to compare: /documents, /documents/.system
    hmmm searching SDN doesn't really seem to come up with much information except Collators aren't being used in client applications so they won't be discussed in detail
    Any help would be appreciated!

    So I have figured out that I need to be putting in the namespace+localname into this collator entry name field but I have been unable to apply an ascending sort based on the accessRid.
    I've found using the findResources operation I am getting back resource objects that are not in a file heiarchal order (ie. nodes further down the file directory are being returned before their parentRids.)
    Is there a way for me to ensure that findResources returns a sorted array that starts from the top of the document tree and each resource object returned is in the same order as what I see in KM content browser?
    Must be a setting or a property that I am missing, when I  do a getOrderMechanism operation I notice it is an unordered type. I can't set server order mechanism as its not supported yet....
    Does anyone have any suggestions?

  • Workflow 'PORCPT' OA Framework region Notification

    Hello Gurus,
    We have PO Confirm Receipt Workflow.
    For a notification, the wft file has 2 region names in a message body:
    'OA.jsp?page=/oracle/apps/icx/por/wf/webui/RcvPOItemsNotfnRN'
    'OA.jsp?page=/oracle/apps/icx/por/wf/webui/RcvPOInvoicesRN'
    Based on these two regions, the notification gets all the data and displays them on the OA Framework page.
    We want to customize the notification by adding another region.
    I cannot figure which is the master region that is making use of these 2 or 3 regions.
    How do I find out the master region for any workflow/notification.
    Thanks,
    Vinod

    Assuming that you are viewing this notification from "Workflow User" responsibility, Is the function "XXHR_BUS_TRIP_DET_REVIEW_SS" assigned to this responsibility?
    If not, try assigning the function to that responsibility and bounce Apache and Workflow mailer and retest.
    HTH

  • How to extend ReceiveItemsTxnVOHelper in 11i OA Framework customization

    Hello,
    I am new in Jdeveloper with OA Framework.
    I am trying to add a new field in iProcument ->POR->Receive Items Web page, when I extend VO ReceiveItemsTxnVO, seems should extend ReceiveItemsTxnVOHelper which used by ReceiveItemsTxnVOImpl.
    Now I get issue variable localObject3 not found in my extend class when rebuild my extend class, could you please advice.
    Regards,

    Detail Information:
    I am using Jdeveloper p6469392_11i_GENERIC.zip,
    OA Framework 11.5.10.6RUP.
    I am trying to customization /oracle/apps/icx/por/rcv/webui/IcxPorRcvRvwPG 115.20
    ReceiveItemsTxnVO is extend with 1 more item ( Bill of Lading ).
    Please help on this, thanks so much

  • What files go where for OA Framework customizations?

    I'm attempting to create a project to customize an iprocurement page. I've read the OA Framework documentation (Developers guide, tutorial) as well as going through the tutorials for extending the toolbox. I find no reference to setting up the jDeveloper environment for extending REAL applications.
    I have attempted to zip the $JAVA_TOP/oracle/apps/icx/* xml and class files and restore them onto <JDEV_HOME>\myclasses\oracle\apps\icx...
    I've also zipped and restored $ICX_TOP/mds/*.xml to <JDEV_HOME>\myprojects\oracle\apps\icx....
    This is an 11.5.10.2CU instance, upgraded from 11.5.9
    I've even tried putting all the files into \myprojects and \myclasses to see if that would help.
    In any case, I'm unable to open the server.xml files in various packages within the files - I get 'unable to load referenced file ' errors on various files that are actually there.
    Could somebody give me a little guidance in setting up my environment for doing customizations to iprocurement/ ssw applications? Thanks
    Steve
    I then tried to open the

    Thanks for the reply
    but I think I'm still confused.
    I'm running jDeveloper from Windows 2k
    Our run environment is 11.5.10.2 on Sun Solaris.
    So all the objects are on our middle tier.
    What I'm trying to do is simulate the environment by copying the files from there to my client machine.
    I found out the page xml and the VO xml (which is has no EO in this case, just a query).
    I'm going to extend the VO to add a default value to one of the fields.
    The tutorial had the environment all set up which allows me to do this with the toolbox application but the 'ICX' environment for iProcurement is completely on our server.
    I'm not sure how to point the classpath to that location. But from what I think I get from your reply (and other comments I've gotten from this forum), I want to put the files into ..\myprojects, which I've done. Also put them into ..\myclasses, though I think that is for runtime.
    Unfortunately, when I try to copy the oracle.apps.icx.icatalog.shopping.server.server.xml into my project and create business object package from it, I get errors that it can't find files that are in other packages (such as oracle.apps.icx.schema.server) so I figured I was doing it wrong (the files ARE present but I haven't added other packages yet, the VO is in the package I tried to copy). The process fails and no files are present in that package in my project when I restart jDeveloper.
    So I was assuming that I wasn't doing this correctly.
    Now that I've given you a little more accurate information:
    1. Am I doing my setup correctly?
    2. Any suggestions on how I troubleshoot the problem?
    Again, thanks for responding
    Steve

  • OA framework customization examples

    Hi,
    I want to customize iprocurement pages. R11i.
    How do I go ahead with this.
    Cheers

    User,
    There are lots of blogs available online with examples which talks about OAF Customizations.
    Refer:
    https://blogs.oracle.com/prajkumar/
    Anil's Oracle Application Framework Blog: Extensions in OAF
    https://blogs.oracle.com/manojmadhusoodanan/
    If you need more details, you need to let us know what exactly you want to do.
    Cheers
    AJ

  • How build a framework customizable by xml

    Hi,
    I made a project (kind of framework) that offers to cliente the possibility of customization by configuration.
    So I create the jar (framework.jar)
    Now I want to use this framework on my new project (web) but I was thinking in use the folder WEB-INF/config.xml to configure the framework.jar
    (my framework use configuration files that client will create)
    How to implement this on my project.
    Create a jar that will use a resorce on outher project?
    Anyway, how you build an framework that offers possibility of a client customize the use of it by configuration on xml?
    Edited by: dreampeppers99 on May 15, 2008 6:23 PM

    I don't want to use a "framework" I just want to know how deal with the possibility of use some xml to configurate...
    Reasons:
    I'm using an older jdk version (spring ~never :P )
    I don't want to put the spring on my project.
    I just want to know how do that things, GET A SIMPLE TEXT FOR A XML ON WEB-INF/file.xml
    Just try to think as a simulation of persistence.xml
    ps: I don't want use an framework (I know it is better...) I know IoC ... set property and these things... isn't my problem.
    ps: I also know read and handle xml....
    (it could be made by web.xml)
         <servlet>
              <servlet-name>sche</servlet-name>
              <servlet-class>
                              servlet.AgendadorServlet
              </servlet-class>
              <init-param>
                   <description>path</description>
                   <param-name>path</param-name>
                   <param-value>/WEB-INF/file.xml</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
         </servlet>
    public class AgendadorServlet extends HttpServlet {
        private static final long serialVersionUID = 1L;
        public void init() throws ServletException {
            String caminho = getInitParameter("path");
            ConfiguradorXML config = new ConfiguradorXML(caminho);
            config.configure();
    }understand?

  • Customize notifications (banners and alerts)

    Is there any way one could make any notification in Mavericks interactive?
    I started using Airmail instead of Mail.app and I noticed that you can customize the actions on the notification only if you use alerts. But they're annoying to me, since I have to manually dismiss them. So I thought maybe there's a way around.
    So: can I make a notification interactive (using scripts or Automator, something) ? Can I make an alert to disappear on its own, to resemble a banner (again, using scripts or some Automator trick)?
    Thanks.

    Hi There,
    Can you please explain more and detailed, because the way that you explained, is really confusing. I have an Ipod Touch 4th generation, and if you go to Notifications, and click on the App that you want to be notified, it will say "Nothing, Banners, Alerts". Banners are at the top, and Alerts are boxes in the middle of the screen. If you want, you could ask support.
    How to change Notifications:
    Settings > Notifictions > (Pick the app you want to be notified) > Tap on None,Banners, or Alerts.
    The support link is:
    http://www.apple.com/ca/support/contact/

  • Customize Notification Email

    Hello,
    The notification email is typically printed and used. Can the format of the email be modified? The email has a graphic on it -- can it be removed?
    Can a custom notification email be used?
    Thanks.
    --Rich Ota

    Hi;
    The only customization available is on the "Notifications" section of the Options tab allowing you to change the Subject and Message and define whether you want the data and blank fields included.  Any other graphics etc added to the Notification email cannot be changed.
    Thanks,
    Josh

  • OA Framework Customization

    Hi,
    I'm new to OAF Customization. Can anyone tell me how to register a customized JSP & is there any specific hierarchial folder structure to be followed... if so plese explain me...
    Appreciate immediate response...
    Thanks,
    Nithya

    Hi ,
    An OA page can be imported to any Directory , but the FND function should hold this specific path.
    Generally we port the page based on the responsibility it should appear in.
    Ex: for Appraisals(HR) related pages we use
    $JAVA_TOP/oracle/apps/per/selfservice/appraisals/webui

  • Cow-notify - customizable notification daemon

    cow-notify, fork from dwmstatus
    Notification daemon that runs on background and executes configured command (If there isn't any executes xsetroot -name)
    parses following tags:
    [summary] - Replace with summary
    [body] - Replace with body
    [expire] - Replace with expiritation time (milliseconds)
    By default there is no config file, if you want to execute custom command, then create this file :
    $XDG_CONFIG_HOME/cow-notify/config and type command eg. "xcowsay --image myimage.png '[summary]' '[body]'"
    I suggest making the config file read only for everyone expect you, so other users can't go and change it to something more dangerous.
    !IMPORTANT! Execution
    if(!(sh = getenv("SHELL"))) sh = "/bin/sh";
    execlp(sh, sh, "-c", parsed, (char*)NULL);
    Since it exectues shell, all shell rules also apply.
    So make sure your [body] and [summary] are enclosed with single quotes, otherwise notify events can execute commands.
    cow-notify escapes all single quote characters inside [body] and [summary], so you don't have to worry about those. However if you have shell that does not use single quotes for strong quoting then you might want to edit the source.
    Issues :
    * Fails to reply on some python programs (?)
    https://github.com/Cloudef/cow-notify # Github
    https://aur.archlinux.org/packages.php?ID=52751 # AUR, thanks synorgy
    Last edited by Cloudef (2011-11-29 19:00:31)

    ArchArael wrote:
    That's really cute. ^______^
    How do I proceed to enable the mascot?
    OT: I like your avatar.
    You can either grab the original macopix
    Or fork I've made here with few bugs fixed and animation signaling added.
    Then setup your macopix run at startup with --sockmsg option, and set cow-notify send messages to it like in my example.
    cow-notify might fail on system startup sometimes for some reason, and this can be fixed with delay (sleep 50 && cow-notify) &
    You can grab the dancing miku mascot from here
    Also I suggest setting slight startup delay for macopix too if you autostart it. (sleep 20 && macopix) & is fine.
    Some references which might help you further:
    My openbox autostart.sh # See the cow-notify and macopix lines.
    https://github.com/Cloudef/dotFiles/blo … tostart.sh
    Cow-notify config:
    https://github.com/Cloudef/dotFiles/blo … ify/config
    Deadbeef conky script that also makes the miku dance :
    https://github.com/Cloudef/dotFiles/blo … b-cover.sh

  • How to customize notifications response email body in iExpense

    Hi Techs,
    We have a requirement to include custom wordings when the iexpense approver click "Approve" or "Reject" button in email.
    Is there any way to do this. Currently if the approver clicks "Approve" or "Reject" button in email, it just displays Note: '' we want this to be customized to Note: 'Please enter your comments here'
    We are in R12.2.3 version.

    Hi ,
    I see your psot as a similar case of problem posted in the past and below is the link to refer
    Workflow Mail Template Configure  -  Workflow Mail Template Configure
    @N

  • Weblogic logging framework -- customization

    Hello Gurus,
    Currently I am using NonCatalogLogger to log my application logs into soa_server logs. Now that I want my application logs to be logged somewhere else (not in the soa_server logs), so that my app logs logged separately in the some other location.
    Is there any way to do so??
    Cheers,
    Vitz

    1) Bad question :-)
    2) I'd like to modify it directly in config.xml, what is the property ? I've already modified any log entry in this file including *.tlog files with "TransactionLogFilePrefix" property. But in my config.xml file, I don't have any entry concerning *startup.log.
    "Kumar Allamraju" <[email protected]> a écrit dans le message news: [email protected]..
    Laurent PAILLARD wrote:
    Weblogic 6.02 + C&P 3.5 on solaris 2.6 2 Questions : 1) Is there a way to change deployment directory in Weblogic 6.02. Every applications are deployed in hidden directories named '.wl_temp_do_not_delete_<server>' contained in 'config/<domain>/applications'.As all our applications are not placed in this directory, we'd like all temporary placed in the same directory.
    You can deploy your apps outsideo f config/domain/applications
    directory. Just go to console and select the "Install a new webapp
    or ejb" and it will ask you to specify the absolute path.
    2) Can we also move logs named like "<server>-startup.log" and "<server>.log" in other directories than they are by default.
    Yes. You can specify the absolute path again via console.
    [att1.html]

Maybe you are looking for

  • Hi problem with Oracle 10g On windows 2003 SR1

    Hi,    I am installing NW2004S on windows 2003 SR1 (Std.Edition). After the installation of Oracle 10g I am getting the error "I*SQLPlus service" can't be started. Any help on this regard is greatly appreciated. Regards, Rao.M

  • Gets the new id of auto-increment field by jdbc

    There is a auto-increment index field of a table. I would like to add a row in that table by jdbc. The process is success and the index will increase automatically. However i would like to get the newly added index number. How can i do this? Thanks a

  • Setup email in 6085

    Look, I do not know how to do set up the email system on my 6085. I really need help right from the beginning as it is really fustrating me. Thanks for the help out there!

  • How do I import and use the Keynote themes that I've downloaded?

    I'm sure this is a stupid question, but I searched this forum & didn't immediately find the answer I needed. I've downloaded some Keynote themes (they have a .kth extension). How do I import these into Keynote 08 so that Keynote will recognize and us

  • Hyperion System 9 documentation on Oracle web site?

    Where can I find the documentation for Hyperion System 9 on Oracle's web site? It seems to be buried. I'm specically looking for all documents realting to the Interactive Reporting Studio v9.3. Thanks