Loading TOC...

MarkLogic Server 11.0 Product Documentation
p:execute

p:execute(
   $condition as element(p:condition)?,
   $action as element(p:action)?,
   $description as xs:string?
) as element(p:execute)

Summary

Construct a execute element.

Parameters
condition The condition to execute to test whether this rule applies. If no condition is specified, the action always executes.
action The action to execute should this rule apply. If no action is specified, the default success action will execute instead.
description A description of the rule.

Example

  xquery version "1.0-ml";
  import module namespace p = "http://marklogic.com/cpf/pipelines" 
		  at "/MarkLogic/cpf/pipelines.xqy";

  let $options := 
     <options xmlns="/app/test-root.xqy">
        <root>workitem</root>
     </options> 
  return 
  p:execute( p:condition("/app/test-root.xqy", (), $options ), (),
             "Execute default action on workitems."
           )
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.