Il giorno 16/gen/2013, alle ore 11.57, Andrei Shakirin ha scritto: > Hi, > > I have two questions regarding tasks in context of SYNCOPE-268: > > > 1) Is there easy way to create Notification and Propagation tasks? > > Tests issueSyncope81() and deal() delete preconfigured Propagation task > (id=1) and Notification task (id=8). > > To make tests re-runnable I need to recreate them, but cannot find easy way > to do it.
Hi Andrei, the easiest way is by DAO. Actually I cannot see any alternative: no rest method are exposed to explicitly create Propagation/Notification tasks. I hope you wouldn't use DAOs into integration test; I don't like it so much. > 2) Is it possible to stop sync task without deleting it? No way as far as I know. Task management is handled by Quartz. Regards, F.
