logo       

Re: OGOJOGI->Person.insertJob(): msg#00025

Subject: Re: OGOJOGI->Person.insertJob()
Hi Murphee,

I don't know exactly my OGo version, I used http://download.opengroupware.org/packages/rpm-old/rpm-all-200409141129.tar.bz2 because I wasn't able to install Shapeshifer8 on SuSE 9.1 (I tried for 3 days and gave up). I found a workaround. I extended XmlRpcJob.java with a ne creator which takes all arguments I need. Of course Job.java was extended too. If I udate a job, I first delete it and then write a new one. Not elegant, but it works. Thereby I found a bug in XmlRpcJobManager, the delete version was wrong, something with the parameters. If you wish, I can send you the modified files.

Greets
Christoph

murphee (Werner Schuster) wrote:

Christoph Guse wrote:

           Iterator iter = ogo.getJobManager().getJobs(args);
           if(iter != null){
               Job tempJob = (Job)iter.next();
                             // Ausführer des Jobs ermitteln
               Account pers_acc = tempJob.getExecutor();
               Person pers = pers_acc.getPerson();
Job insJob = jobMan.insert(pers,job.getStartDatum(), job.getEndDatum(), job.getName());


This works? Doesn't this just keep on inserting Jobs with the same Dates and Names?

               insJob.setPriority(5);



Hmm... weird thing is... I think that this kind of functionality is in JOGI and it should work (at least judging from our own ReleaseNotes), as it worked with our TestSuite; of course, we only tested against the old
original Knoppix OGO version, so I can't talk about new versions;

About testing: if you don't know Python, could you try implementing some test that updates a Job (through whatever function XmlRpc offers) using a Java XmlRpc library (JOGI comes with the Apache XmlRpc lib); you can look at the
JOGI source for hints about how to use this,


--
****************************************
Christoph Guse
Zimmer 33510
Hubertusstraße 149
41239 Mönchengladbach
Tel.  0 21 66 / 14 52 59
Mobil 01 72 / 160 74 84
****************************************

--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe