Hi,
Could you please provide specific details of the objective and the use case for it? It's possible to use conditional logic and MVEL expressions to enable\disable commands based on input criteria and variable existence. It's possible to invoke a child workflow using the REST API within command code. You can query a workflows execution status using the REST API and also use:
- Add-WfaWorkflowParameter
- Get-WfaWorkflowParameter
To pass information between commands in a workflow but it depends on your use case. It might be more appropriate search for an object and use conditional logic in the preceeding command to enable or disable them depending if the object was found. It depends on the technical requirement
/Matt
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.