NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

Using Command Parameter in ROW condition

raj45__
2,922 Views

HI 

 

If i create parameter using Add-WfaWorkflowParameter in a command within a Workflow, is there a way to use that parameter as a ROW condition? For example, if that parameter is true or false in a row condition.

 

I am capturing a CLI output in a WFA command and setting the value of a Add-WfaWorkflowParameter based on the cli output. I would like to use that parameter value to decide whether or not to run other commands within the workflow. 

 

Any suggestions?

 

Thanks

Raj

1 REPLY 1

paragp
2,852 Views

A WFA workflow goes through a planning phase where all the command inputs are resolved . This is followed by an execution phase in which the all commands code is executed.

 

Add-WfaWorkflowParameter happens during the execution phase of the workflow . This is when your CLI is executed.  While row coditions are evaluated before during the planning phase. So what you are asking is not possible.

 

But this can be achieved by writing code like this in the beginning of your command.

 

$executeCommand = Get-WfaWorkflowParameter -Name executeCommand

if (!$executeCommand) {
    return;
}

 

 

Public