Re: OGOJOGI->Person.insertJob()
"murphee (Werner Schuster)" <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
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,
--
Werner Schuster (murphee)
Student of SoftwareEngineering and KnowledgeManagement
Maintainer of the OGO-JOGI Project @ http://ogo-jogi.sourceforge.net/
Blog @ http://jroller.com/page/murphee
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc