On Mon, 18 Oct 2010 11:29:12 -0700, Frank Rubino <[email protected]> wrote: > Thanks Mary. > This helped but I did find something confusing. Sometimes there is no > cpf:error property even though the state is > http://marklogic.com/states/error: > > <prop:properties xmlns:prop="http://marklogic.com/xdmp/property"> > > <cpf:processing-status > xmlns:cpf="http://marklogic.com/cpf">done</cpf:processing-status> > <cpf:last-updated > xmlns:cpf="http://marklogic.com/cpf">2010-10-18T09:23:45.377964-07:00</cpf:last-updated> > <cpf:state > xmlns:cpf="http://marklogic.com/cpf">http://marklogic.com/states/error</cpf:state> > <prop:last-modified>2010-10-18T09:53:10-07:00</prop:last-modified> > </prop:properties> > > > And then sometimes there is a cpf:error property. > > What is the explanation for the two different results?
The cpf:error property is filled in in the case where cpf:failure is called with an exception argument. It is cleared when there is an explicit transition for a state and it executes successfully. So if you call cpf:failure without an exception, or if you handle something in the error state, or if you just transition to the error state via on-success, then you won't have a cpf:error property. //Mary _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
