how could i publish a document in a specific folder

i´d like to publish a new document when it is in the state of approve in the life cycle.

i´m following this example, am i right?? i know i need to change things, but i don´t know which ones.

http://doc.nuxeo.com/pages/viewpage.action?pageId=2392665

0 votes

1 answers

2427 views

ANSWER



Hi

It looks like you're really asking the question :

http://answers.nuxeo.com/questions/5020/how-can-i-do-a-workflow-to-publish-a-document-in-some-folder-directly

http://forum.nuxeo.com/index.php?t=rview&goto=19320&th=6101#msg_19320

We are very happy that people ask questions but please ask them only once :)

Anyway, I guess you are using studio and automation chains. In that case, there is an operation call publish Document :

http://explorer.nuxeo.org/nuxeo/site/distribution/current/viewOperation/Document.Publish

This operation is used in the example you are following, so it's be a good entry point.

Basically, this operation will publish the document input to the parameter of the operation (might be a path or a doc id). You just need to determine what is the publishing target of your document and how to find it (several ways to do that, the operation fetch>query is one them).

Please also not that your use case in not trivial and probably requires to be familiar with Nuxeo Automation concepts:

http://doc.nuxeo.com/x/eQE7

Fred

0 votes



thanks a lot
02/21/2013