Re: OGOJOGI->Person.insertJob()

Christoph Guse <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
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
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.