The "duplicate" operation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The "duplicate" operation

sodastream
Hi, the duplicate operation (announced here) does not appear in the API doco. Does this mean that Orbeon decomposes a Duplicate request into a series of atomic API operations?

Thanks,
Hakan
Reply | Threaded
Open this post in threaded view
|

Re: The "duplicate" operation

Alessandro  Vernet
Administrator
Hi Hakan,

It is implemented in FormRunnerSummary.scala (1st link below), and calls putWithAttachments(), which is also called by the `save` action (2nd link below), but they are not doing exactly the same thing. So if you're asking whether you can do the same in a process, the answer is "not quite", but if you're asking whether this just uses the regular HTTP/REST persistence API, the answer is "yes".

https://github.com/orbeon/orbeon-forms/blob/0f349140b7b6cdc0a7c68cb3f043dad61167fb71/src/main/scala/org/orbeon/oxf/fr/FormRunnerSummary.scala#L28
https://github.com/orbeon/orbeon-forms/blob/5e558ff46d71d10e75eeafa11f555804fa649854/src/main/scala/org/orbeon/oxf/fr/process/FormRunnerActions.scala#L86

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet