The successor state, should the transition succeed. If no successor state
is defined, the document will remain in its current state.
on-failure
The successor state, should the transition fail. If no successor state
is defined, the document will remain in its current state.
priority
The priority for this transition. Higher priority transitions will be
examined before lower priority ones. If no priority is passed, then
the transition gets the highest priority.
default-action
The default action to execute on entry into this state, if none of the
rules apply.
rules
The execution rules to apply in this transition. The first rule whose
condition is true will have its action executed.
Example
xquery version "1.0-ml";
import module namespace p = "http://marklogic.com/cpf/pipelines"
at "/MarkLogic/cpf/pipelines.xqy";
p:state-transition( xs:anyURI("http://example.com/states/review"),
"Document review state",
(), xs:anyURI("http://example.com/states/error"), (),
p:action("/app/send-to-reviewer.xqy",(), ()),
() )
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.