Thanks for the link, looks like if we use Library service, we can't use CPF. Let me explain my requirement. We are managing firm policies, basically they are document [pdf,docx]. Each document contains some metadata [title, location, division....], so we have a form where user upload his document and add its metadata. We call ML rest API where we pass this [metadata +document]. A XQY is written which will insert this request into a folder. ML pipeline is attached to this folder, which will covert this document into XHTML and appends metadata. Problem is every time it overwrites the document, if policy already exists. Mainly we need to maintain version of these metadata for audit purpose. Could you suggest us something? One way I am planning to implement in this way We will create two folders, one [Version] and one [Policy]. [Version] will contain metadata and [Policy] will contain metadata with document XML. So we will have one XQY which will get the request form app and will create a XML file in [Version] folder and every time appends metadata in this XML, next step will insert latest metadata in [Policy] folder. A ML pipeline will be attached in [Policy] folder which will create XHTML
[cid:[email protected]] Sample XML we will save in Version folder <root SlnID=123> <v_4> <title></title> .... ... ... <filepath>//msad/NA/UID/filename</filepath> </updatedby></updatedby> </v_4> .. .. <v_1> <title></title> .... ... ... <filepath>//msad/NA/UID/filename</filepath> </updatedby></updatedby> </v_1> <v_0> <title></title> .... ... ... <filepath>//msad/NA/UID/filename</filepath> </updatedby></updatedby> </v_0> </root> From: [email protected] [mailto:[email protected]] On Behalf Of Danny Sokolsky Sent: Wednesday, July 24, 2013 5:16 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Versioning of data Hi Gurbeer, You can look at the Document Library Services (DLS) API: http://docs.marklogic.com/guide/app-dev/dls http://docs.marklogic.com/dls DLS allows you to build check-in, check-out kinds of applications. -Danny From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Singh, Gurbeer Sent: Wednesday, July 24, 2013 2:00 PM To: [email protected]<mailto:[email protected]> Subject: [MarkLogic Dev General] Versioning of data I want to explore ML for Versioning of data, when we submit a document it get saved as XML, if we make any edit or update, we overwrite existing XML, we want to stop this and enable versioning, so that we can track history of changes. Is there way to enable this functionality? Also help me to understand how we can retrieve latest XML and history of changes. ~Gurbeer ________________________________ NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing. ________________________________ NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
<<inline: image003.png>>
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
