Workflow to provide ids to another workflow

Build 1501 on 14/Nov/2017  This topic last edited on: 1/Sep/2014, at 12:10

If you need a solution for providing ids (by means of search condition) to another workflow, you may want to use a code workflow wf_ExecuteSearchWorkflow.xml (see more below) that executes a search before calling another workflow.

wf_ExecuteSearchWorkflow.xml requires two case-sensitive parameters:

wfName: (mandatory) the name of the main workflow (without 'wf_' prefix) to execute.

XQuery: (optional) the query to perform before running the main workflow.

The ids returned by this query are passed to the main workflow.

Example for srv4

srv4 wf ExecuteSearchWorkflow -pars "wfName:myWorkflowName;XQuery:gn4:story[gn4:title='my story title'];" -in "c:\temp\myImage.png"

Click to toggle expandCode