[MarkLogic Dev General] Handling multiple pipelines at same state

Mary Holstege mary.holstege at marklogic.com
Fri Mar 19 08:05:48 PST 2010


On Fri, 19 Mar 2010 08:23:22 -0700, mano m <mano07good at yahoo.co.in> wrote:

> Hi,
>
> 	*  I am having 2 pipeline.xml files.Both the pipelines should be called  
> when document is loaded to a particular collection.How to call Pipeline2  
> within Pipeline1? Or Is there anyother way to configure this?
>         I have tried with setting the <priority> to higher values.But  
> only one pipeline(with high priority) got executed.
>
> 	*  <state>http://marklogic.com/states/initial</state>
>  <on-success>http://marklogic.com/states/final</on-success>
>   <on-failure>http://marklogic.com/states/error</on-failure>
>     Once the pipeline got executed the status doesnt get changed to  
> "final"
>
>   <cpf:processing-statusxmlns:cpf="http://marklogic.com/cpf">active</cpf:processing-status>
>   <cpf:last-updatedxmlns:cpf="http://marklogic.com/cpf">2010-03-19T17:31:32.623+05:30</cpf:last-updated>
>   <cpf:statexmlns:cpf="http://marklogic.com/cpf">http://marklogic.com/states/initial</cpf:state>
>
> Please suggest your thoughts.
>
> Regards,
> Mano
>

The thing to keep in mind is that a pipeline is not a unit of execution,  
it is a unit
of configuration.   CPF runs in an asynchronous event-based fashion, and so
what really matters is the set of rules for a particular state.  Only one  
action will
be executed for any given state, so if you want to do one thing and then  
another
thing, have state1 execute thing1 and set the state to state2, and have  
state2
execute thing2.

Cheers

//Mary

Mary.Holstege at marklogic.com
Principal Engineer
Mark Logic Corporation


More information about the General mailing list