On Wed, 16 Apr 2014 08:28:05 -0700, John Zhong <[email protected]>  
wrote:

> If you really wanted to do that, I think, you can create your own
> "Pipeline: Status Change Handling" to change the on success from "
> http://marklogic.com/states/initial"; to your own state. And detach the
> default pipeline and attach your own pipeline to your domain.
> John

Correct.  There is nothing magical about  
"http://marklogic.com/states/initial";
It is just a label.

But you don't actually need to do that. You can create a document with its
cpf:state property already set as you wish (just do that in the same  
transaction
you created the document).  The default status change  handling pipeline
rules for "created" include a check for this case and will execute
  "touch-state-action.xqy" which just pokes the document so it will start
processing in that state.

//Mary


>
> On Wed, Apr 16, 2014 at 9:36 AM, Geert Josten  
> <[email protected]>wrote:
>
>> Hi Liubov,
>>
>>
>>
>> I assume you are talking about CPF state. That may be possible with some
>> trickery, but to my knowledge it was not designed for that. It will be
>> easier to setup a second domain, listening to a different directory, and
>> have anything coming in through there pushed to the main directory with  
>> a
>> certain state. That ought to work..
>>
>>
>>
>> Kind regards,
>>
>> Geert
>>
>>
>>
>> *Van:* [email protected] [mailto:
>> [email protected]] *Namens *Liubov Efremova
>> *Verzonden:* woensdag 16 april 2014 15:05
>> *Aan:* [email protected]
>> *Onderwerp:* [MarkLogic Dev General] (no subject)
>>
>>
>>
>> Hello!
>>
>>
>>
>> I have the following question:
>> Is it possible to insert document into MarkLogic with some other state
>> (not initial)?
>>
>>
>>
>> Thank you!
>>
>>
>>
>> Kind regards,
>>
>> Liubov E.
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to