Gurbeer,

One simple way MarkLogic supports workflow is simply by being a transactional 
database. If you have an article that is represented by XML like 
<article><title>my title</title><body>my body</body></article> you can add a 
status such as <article status="submitted">... or status="reviewed". They 
populate the reviewer's inboxes with an element-attribute-value-query for the 
status attribute in the submitted status. When the reviewer approves it your 
XQuery will call xdmp:node-replace() on the status attribute (attributes are 
nodes too) to set it to reviewed, and it will disappear from the inbox.

If you don't want to alter tha actual XML, store workflow information and the 
actual article xml together:

<envelope>
  <workflow-info> ... <status>submitted</status> ... </workflow-info>
  <article> ... </article>
</envelope>

and query using cts:element-value-query() since in this format the status is an 
element rather than an attribute.

Hope this helps,
Damon

________________________________
From: [email protected] 
[[email protected]] On Behalf Of Singh, Gurbeer 
[[email protected]]
Sent: Tuesday, November 08, 2011 5:27 PM
To: [email protected]
Subject: [MarkLogic Dev General] Workflow in Marklogic

Hi,

I came to know, Marklogic supports workflow also. Need some idea on this 
context.

Requirement is
We will be using ASP.net application to submit documents

It’s a one step workflow
User will submit a document
Editor/Admin will review the document and publish it.

How ML work flow will help me to achieve this.


We need to define User role also somewhere.

~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.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to