Loading TOC...

MarkLogic 10 Product Documentation
p:action

p:action(
   $module as xs:string,
   $description as xs:string?,
   $options as element()?
) as element(p:action)

Summary

Construct an action element.

Parameters
module The path to the module to evaluate.
description A description of the action.
options The options element to pass to the module as the external variable $cpf:options. The options element will be in the namespace of the module.

Example

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

  p:action("/app/process-workitem.xqy", (), () )
         ===> returns 
            <p:action xmlns:p="http:marklogic.com/cpf/pipelines">
               <p:module>/app/process-workitem.xqy</p:module>
            </p:action>
  

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