Modifying the directory of file events

Hi, This is my first post.  I apologize if my post is confusing.
I have been looking all over for a way to modify the file events after the import from BO 6.5 into XI 3.1 automatically.
I have about 1400 events to modify the directory they refer to.  Our current set up does not allow us to point to the current directory since we have to have the events trigger instead of having a watcher system. 
Has anyone used a java SDK to automate moving the events from
server1\events_name to
server2\events_name.
It would just go through all the events and replace server1 with server2.
Thank You in Advance for any help

This code will trigger all the events in the 'repository'.  Can someone help modify this to change the server directory?  I believe that all that needs to be altered is this section.
//Go through each event returned and add it to the table
               for (int lIdx = 0; lIdx < lInfoObjects.size(); lIdx++)
                    //Retrieve the current event object
                    IEvent oEvent = (IEvent)lInfoObjects.get(lIdx);
                    IUserEvent lUserEvent = (IUserEvent) oEvent.getEventInterface();
                    lUserEvent.trigger();
I think what needs to be replaced is lUserEvent.trigger(); with something that will modify the SI_FEATURES section of the event.  I am not sure how to get the current SI_FEATURES -> SI_FEATURES -> SI_FILE and replace with a different directory.
Like *
server_name1\sources_closed\event_name1* to *
server_name2\sources_closed\event_name1*
Below is code from this example:
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.framework.CrystalEnterprise;
import com.crystaldecisions.sdk.framework.IEnterpriseSession;
import com.crystaldecisions.sdk.framework.ISessionMgr;
import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
import com.crystaldecisions.sdk.plugin.desktop.event.IEvent;
import com.crystaldecisions.sdk.plugin.desktop.event.IUserEvent;
public class triggerEvent {
     public static void main(String[] args) {
          String lUser = "administrator";
          String lCMS = "servername";
          String lPWD = "";
          String lSecurity = "secEnterprise";
          IEnterpriseSession lEnterpriseSession = null;
          try {
               //Retrieve the ISessionMgr object to perform the logon
               ISessionMgr lSessionMgr = CrystalEnterprise.getSessionMgr();
               //Logon to Enterprise
               lEnterpriseSession = lSessionMgr.logon(lUser, lPWD, lCMS, lSecurity);
               //Retrieve the InfoStore object from the Enterprise Session
               IInfoStore lInfoStore = (IInfoStore)lEnterpriseSession.getService("", "InfoStore");
               //Create the query to retrieve the all the events
               String lQuery = "SELECT * " +
                               "FROM   CI_SYSTEMOBJECTS " +
                                 "WHERE  SI_KIND = 'Event' " +
                                 "ORDER BY SI_NAME";
               IInfoObjects lInfoObjects = lInfoStore.query(lQuery);
               //Display a message if no results were returned
               if (lInfoObjects.isEmpty())
                    return;
               //Go through each event returned and add it to the table
               for (int lIdx = 0; lIdx < lInfoObjects.size(); lIdx++)
                    //Retrieve the current event object
                    IEvent oEvent = (IEvent)lInfoObjects.get(lIdx);
                    IUserEvent lUserEvent = (IUserEvent) oEvent.getEventInterface();
                    lUserEvent.trigger();
               lInfoStore.commit(lInfoObjects);
          } catch (SDKException e) {
               e.printStackTrace();
          } finally {
               if (lEnterpriseSession!= null) {
                    lEnterpriseSession.logoff();

Similar Messages

  • How can I get the directory.xml file for WL6.0?

    I have installed the ALBPM Enterprise WL6.01 and started it in my server.But I get the error message when I login.
    directory configuration runtime fails to initilize with
    resource:/Aqualogic/j2eewl/tomcate/webapps/../../webapps/webconsole/WEB-INF/directory.xml
    How can I get the XML file?

    aaa, ok i misunderstood your first post, i thought you are talking about unable to use the directory.xml from your application.
    Ok, well the directory.xml file that ALBPM uses is allways in /albpm6.0/j2eewl/conf/directory.xml if we are not talking about Standalone. And when you start your albpm server it picks up the directory.xml file from there. But it picks him up only when you start it...so if you made any changes to it, you have to restart the server.
    You should check the instalation folder of your ALBPM.
    If you want to change the user/pass in the directory.xml change it in that folder and restart ALBPM.
    If you don't know how to enter new password you have to use this sintax:
    <encrypt>newPassword</encrypt>
    Because if you open the xml file you have only <encrypted> tags, and you can't change those.
    I don't know what the xml file is doing in that tomcat folder though...maybe it get's copied to that location when you start the albpm WL
    Hope this helps
    Edited by Lex_ at 12/13/2007 10:27 PM

  • Problems modifying the httpd.conf file

    We are running Flash Media Server 4.5 on Windows Server 2008. We want to move the vod folder which by default is in webroot. We create a new vod folder and then modify the httpd.conf file so that it points to the new vod location. We then stop and restart the Flash Media Server service. However, the server acts like the old paths are cached somewhere in the system. Videos in the new vod folder do not work. Videos in the old vod folder open even though the httpd.conf file was modified.
    We made sure that the client browsers on which we tested this had their cache cleared.
    Anyone have any ideas what might be going on here?

    Thanks for your reply! I tried restarting the FMSHttpd service separately. Still encountering this issue, however.
    Here's what we are doing:
    1. We create a new vod folder.
    2. We modify the httpd.conf file in Flash Media folder -> Apache2.2 -> conf so that it points to the new vod location. For example, we make a modification to HttpStreamingContentPath like the following:
    <IfModule jithttp_module>
    <Location /hds-vod>
        HttpStreamingJITPEnabled true
        HttpStreamingContentPath "..\..\[new vod folder]"
        HttpStreamingJITConfAllowed true
        JitFmsDirPath ".."
        Options -Indexes FollowSymLinks
    # Uncomment the following directives to enable encryption
    # for this location.
    #   EncryptionScope server
    #   ProtectionScheme phds
    </Location>
    </IfModule>
    3. We restart the FMSHttpd service.
    After doing this, we find that the path to the old vod folder is still working. Videos in the new vod folder don't open as expected.
    Are there any other steps that we should be taking? Many thanks for any help.

  • How can I change the directory a file is written to?

    Hi,
    I have an app running through JSP. At one point in the app, a file is written to the current directory. I have installed Tomcat at "C:\Program Files\Apache Tomcat 4.0" but the file is written to "C:\Documents and Settings\Administrator\Start Menu\Programs\Apache Tomcat 4.0" !!!
    What gives? Anyone know how I can change this?
    I also need to be able to read files from the current directory, so I can't really put them in that dir... I would like to be able to store the files in a dir relative to the webapps/myapp dir...
    I searched through the archives for this problem without finding a solution...
    Please don't suggest writing the files to an absolute pathname...
    Thanks.

    To store files in a dir relative to web application context (webapps/myApplication/...), I usually use the getRealPath() method of ServletContext object.
    For example, if my filepath is "webbapps/MyApplication/MyDir/MyFileName" i do something like this:
    String FilePath=getServletContext().getRealPath("MyDir/MyFileName");
    File file=new File(FilePath);
    This way allows your application to be indipendent from local mappings inwhich it's deployed.
    Sorry for my bad english, I hope you know what I mean!!!

  • Modify the initrd.gz file on Zenworks 4.01 ir7 bootcd

    We are having issues with the Dell Optiplex 755 model with our Zenworks 4.01 ir7 bootcd but we found the issue.
    By remming (using the # symbol) out certain lines in the install.s file we are able to successfully intall the Zen Partition To test this out we ran manual from the Zenworks 4.01 ir7 bootcd and copied the install.s from the Zenworks 4.01 ir7 bootcd onto the Zen Partition and we modified the few lines in the install.s file (using the # symbol as mentioned earlier) and the ran install.s from the hard drive and it worked great! Running install.s from the Zenworks 4.01 ir7 bootcd however generates errors.
    Here's the problem, we need to incorporate the changes to the install.s file into our Zenworks 4.01 ir7 bootcd.
    Now the install.s is located in the initrd.gz file, and the initrd.gz file is located at the root of our Zenworks 4.01 ir7 bootcd (bootcd.iso was copied from SYS:\Public\Zenworks\Imaging).
    We normally use the Slackware 10.2 Linux to compile drivers for our Zenworks 4.01 ir7 bootcd box as it uses the kernel 2.4.31 which is the kernel of our Zenworks 4.01 ir7 bootcd.
    How can we modify the install.s in the initrd.gz, and then include the new initrd.gz file which is located at the root of our Zenworks 4.01 ir7 bootcd?
    Also, does other files such as isolinux.cfg have to be factored in as well?
    We read some documentation on Novell's support but it keeps referring to initrd and not initrd.gz, also in the documentation I read it states that initrd is located in the /boot/loader on the bootcd, but we don't have these directories on our Zenworks 4.01 ir7 bootcd and we don't have initrd but we do have initrd.gz at the root of our Zenworks 4.01 ir7 bootcd as mentioned previously. We used our Slackware 10.2 Linux box to follow this documentation link below.
    Here's the link to the document we were doing for Netware 6.5 SP2 and earlier, we didn't use the Zenworks 7 approach:
    Cool Solutions: Compiling Scripts within the ZENworks Imaging Boot CD
    Thanks!

    pilonbrad,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How can I modify the "All My files" search criteria?

    Heres my issue: I LOVE the new "All My Files" feature in 10.7... however.. I would like to limit some of the search criteria (which I know goes against its purpose to some degree)... "All My Files" shows every file by kind on my computer, unfortunately it also shows erroneous files in the /Developer folder that I do not care about at all nor are they "mine". 
    So I have noticed that I can "edit" the "All My Files" property and that it simply seems to be a "saved search" that they put into the Finder side bar... but how do I then say dont include this folder?

    Finder > Preferences > Sidebar
    Put a checkmark in the box beside "All My Files".

  • Can't be modify the value of window.event.keyCode in IE 11(Windows 7 Premium) where as in IE 8 (Windows XP) its working fine

    The following is the sample code whcih I have used to check.<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Sample Form</title>
    <script type="text/javascript">
    function keyDownEvent() {
    alert("KD:"+window.event.keyCode);
    window.event.keyCode=0;
    alert("KD:"+window.event.keyCode);
    function keyPressEvent() {
    alert("KP:"+window.event.keyCode);
    window.event.keyCode=0;
    alert("KP:"+window.event.keyCode);
    </script>
    </head>
    <body>
    <form>
    <input type="text" onkeydown="keyDownEvent()" onkeypress="keyPressEvent()" />
    </form>
    </body>
    </html>
    Kindly post your answers, am waiting for answers...

    This is the TechNet Forum for questions regarding
    Internet Explorer 8, 9, 10, 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions.
    For better assistance please ask for help in the MSDN
    IE Development Forums.
    Thanks & Regards,
    Vincenzo Di Russo
    Microsoft® MVP Windows Internet Explorer, Windows & Security Expert - since 2003.
    Moderator in the Microsoft Community and TechNet Forums
    My MVP Profile

  • A way to modify the ResultProcessing.cfg file outside of TestStand?

    All,
    I'm looking for a way to change the style sheet path one time (not hard code it in NI_ReportGenerator.seq), would anyone know of a way how to do it with a vi or something to that affect?  The goal is to initially setup a tester (remotely, I will not be on site to set this), but not hard code them to this one stylesheet.
    I'm using TestStand 2012
    Thanks,
    Bill
    John 3:16

    The file is an xml text file. If your style sheet values are sufficiently distinct, it shouldn't be too hard to just find and replace the text.
    The file is also a TestStand ProperyObjectFile. ResultProcessing.c has code that modifies it using the TestStand API. However, that requires TestStand to be installed and is not nearly as simple as finding and replacing a text string.

  • How do I modify the default account for events in iCal?

    I have several email accounts (for biz&home) and I want to use them, depending on the event, as the account from where an invitation from iCal is sent. So if a have a football game with friends, I want to use my personal account when sending an iCal event. But when I want to make a biz meeting, I want to use my work account in that invitation. How or where can I make these selections/options appear? Is it possible?
    If not, how can I set the default account for invitations in iCal? (I already have a "default" account in Mail, but iCal is not using that account for invitations).
    Any help is appreciated

    Hi salazar2,
    Been dealing with a similar issue for about 3 years now, so I know your pain. I founded a company in 2009 called Zamain that is focused on making Mac calendaring more productive. Our first product, Zamain for Mac, solves your problem as well as Apple iCal to Microsoft Outlook/Exchange incompatibilities. The current version includes the following features:
    * Sends iCal invitations that Outlook users can actually open
    * Sends invitations from any email account
    * Lets you add comments to invitation replies
    * Makes timezones actually work
    * Prevents weird attachments from appearing in your invitation emails
    Although I know that this is a shameless plug for my product, I urge you to give it a try because it will really make your life easier. We have a happy user base, are actively developing new solutions, and are always open to suggestions.
    You can get Zamain for Mac at www.zamain.com.
    Thanks!
    -Jon
    As per the terms of agreement, I must disclose that I may receive some form of compensation, financial or otherwise, from my recommendation or link above.

  • Modifying the System Error file in portal

    hi experts,
    i have DMS to Km Connector BP Deployed.its working fine
    when there is no user mapping for the dms system it throws System Error: with screen
    System Error :
    An exception occurred during the program execution. Below you will find technical information pertaining to this exception that you might want to forward to your system administrator.
    Exception Class:  <input field>
    Exception Message:  <input field>
    Details -->this is button
    My Requirement:
    i want to change this standard error screen text with custom message
    how can i achive this.
    if i need to change any par/.sca file
    where exactly i can find this file
    what is the screen needs to be changed
    Pls let me now the Location of System Error File Location
    regards,
    vani

    Hi,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/ee4f58ff1bce41b4dc6d2612fae211/frameset.htm
    and More here..
    Problem with system.log
    Regards,
    N.

  • I am not able to modify the text in pdf output file using pdf editor

    Hi,
    We have upgrade the xml 5.6.1 in server level. After upgrading this, we are not able to modify the pdf output file. Previously we used to modify text and delete text in pdf file which is generated by oracle Application. As of now we cann't upgrade higher version. Can you suggest what to do?.

    Check the xdo configuration file option in the user guides. There should be options that allow / disallow modifying text specifically. If you are in EBS, you should be able to change the configuration file options from the XML Publisher Administrator UI.
    Klaus

  • Modify the file.

    the actual problem is there is a text file in following kind of entries in each line
    <string>, starting point, ending point.
    eg. "this is a file" , 10, 20.
    now i want to calculate the length of the string and add to starting point and check with ending point if it is false then update the ending point with actual value.
    I know the way to change the value(using the string tokenizer).
    my question is this lines are in txt1.txt. How can i modify the values within the same file? Should i go for two files ... reading the values from one file and writing to the other values including the changing values or is there any way to modify the same text file.

    Either read the entire file in and rewrite it (depends on how large the file is)
    OR
    Write a temp file then copy that file over the target file. (of course after you've closed the original file.

  • Modifying destination Directory of Application server for Open Hub

    Hi All,
    i want to load a csv file on application server using Open Hub.
    when i have created the open hub i have specified the server name, the file name and the directory.
    but the Basis guys told me that i should use another directory, they have created me a Unix Directory but the problem that i can't modify the directory path in my open hub.
    can you tell me please what is the problem?
    another question why i can't modify directly in Production System this parameter of server name, directory for open hub,
    in production i can create the open hub but when i have transported some one from dev to prod i can't modify in prod, i have controlled from transport tool the possibility of modication object and i see that for opne hub is "original modificable"
    Thanks for your help
    Bilal

    i have read in some forum that to " to change the server name or logical file name we can do so in the following table:
    RSBFILE"
    i tried to see the data of this table and i found 2 records for my open hub, 1 for Active version and 1 for Modified version
    i tried here to change the path name of the directory and after saving the system give me the message that the active version and the modified version of my open hub are not equal, when i try to activate again my open hub the system take the old
    directory path.
    is this is the right table to change the directory path on application server of my open hub? or there is another table?
    i don't work with logical filename, i work with file name and directory path name.
    thanks for your help
    Bilal

  • Cannot run the bcp_extract.bat  file OMWB created

    Hello Everyone,
    I am working on transferring data offline using the OMWB.
    In OMWB ORACLE Model pane, i selected a user schema object, a table, and i chose Object<Generate SQL*Loader script.
    Now that i was able to find my bcp_extract.bat file, i copied the contents of the directory where OMWB generated the data unload scripts onto the computer that my source database, SQL SERVER 7, is installed.
    Per OMWB documentation, I modified the bcp_extract.bat file to include the source database Server Name. And I did remove the angle brackets as well. I double clicked the bcp_extract.bat file and a command window poped up and went down immediately. No data file was generated nor anything was added to the sql_load_script.bat file in the Oracle directory that was creatd by the Generate SQL*Loader Scripts.
    Is there any other information that i need to modify/add in order to be able to run the bcp_extract.bat file. In fact, i thought about adding the password after -P switch and see if i can run the file, but after adding the password i still could not get the bcp_extract.bat file running.
    I appreciate if someone can help me out to get the bcp_extract.bat file running.
    Thank you so much!
    Mitra

    Hello Everyone,
    I am working on transferring data offline using the OMWB.
    In OMWB ORACLE Model pane, i selected a user schema object, a table, and i chose Object<Generate SQL*Loader script.
    Now that i was able to find my bcp_extract.bat file, i copied the contents of the directory where OMWB generated the data unload scripts onto the computer that my source database, SQL SERVER 7, is installed.
    Per OMWB documentation, I modified the bcp_extract.bat file to include the source database Server Name. And I did remove the angle brackets as well. I double clicked the bcp_extract.bat file and a command window poped up and went down immediately. No data file was generated nor anything was added to the sql_load_script.bat file in the Oracle directory that was creatd by the Generate SQL*Loader Scripts.
    Is there any other information that i need to modify/add in order to be able to run the bcp_extract.bat file. In fact, i thought about adding the password after -P switch and see if i can run the file, but after adding the password i still could not get the bcp_extract.bat file running.
    I appreciate if someone can help me out to get the bcp_extract.bat file running.
    Thank you so much!
    Mitra

  • How do I create admin console users with full access to configuration and the directory in every instance?

    I want to be able to create directory user ID for the iPlanet administrators. They should be able to access the admin console and all the instances created. They should be able to configure each instance and directory. I was able tocreate Admin Server Administrators but they were only able to modify the directory(tab) and not the configurations(tab). Any help would be greatly appreciated!
    Thanks.
    Keith

    Hi Keith,
    In o=netscaperoot, edit the static group called cn=Configuration Administrators, ou=Groups, ou=TopologyManagement, o=NetscapeRoot - this group contains the admins peer to your config admin. Since the console is quirky and doesn't let you add in users not in netscaperoot, just click advanced and put in the full dn of whoever you want in by hand, e.g., uid=scarter, ou=people, dc=mydomain,dc=com as a static member. then rebind to the console with the full dn and passwd, and away you go :)
    james

Maybe you are looking for

  • Mini DVI to VGA cable doesn't send signal to the projector

    I just received a mini DVI to VGA adapter cable today. I connect mini DVI side of cable into my Macbook v. 4.1 and connect the other side into DGA cable, which connected to LCD projector. When I connect the cable to my Macbook, the opened application

  • Saving a email to a folder list before i send

    I have always use Entourage and now moving all to mail. When i sent email in the past I was able to select where to save a copy of it so I not have to go to the sent folder and drag it to one of my personal folders. I can't seem to find this feature

  • [SOLVED]My udev rules don't automount usb device

    Hi, I'm using this .rules file for automounting usb devices: # start at sdc to ignore the system hard drive KERNEL!="sd[c-z]*", GOTO="my_media_automount_end" #sda and sdb are internal hard drives ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_med

  • Data Guard - Keeping same SID/Instance Name across both sites

    Hello, We are working on a project to move the databases from legacy to new servers. The migration plan is to use Data Guard option for our migration strategy. We would like to know followings. 1) Is it possible to build stand by databases with same

  • Checking "Remember Me" Doesn't Work

    Whenever me or one of the clients signs in to edit a page we check "Remember Me" and yet it NEVER does, not even once. Have to sign in EVERY time, it doesn't even remember the last user name entered. Not sure if this is related to the issue I had wit