2013-11-26 05:25 AM
my customer wants automaticly add data to the "execution comments"
e.g. when creating a new databaselayout, that the ticketnumber and the database SID is placed in the exectuon comment. So its easier to find a already executed workflow.
see screenshot how it should automatically filled in.
2013-12-05 10:41 AM
This requirement sound a bit strange honestly, but if your customer really needs it, its achievable. You can have Command Parameter Values ( ticketnumber and DB SID in your case) as your workflow execution comments if you execute your workflows using REST APIs in a powershell script. Attaching the Posh script and the workflow it calls. It accepts a Parameter value as an argument, constructs an input file and calls a REST API to execute the workflow. When the workflow executes it will have comments with the value of the workflow parameter passed.
This script runs on PowerShell3.0 and above. You can modify it according to your WFA server, credentials, workflow UUID, and workflow parameters.
If you want use WFA GUI then there is still a way. You can create a command and use this script itself as the command code i.e. the WFA command itself will call the REST API to execute your workflow. When you create a Workflow for this command, your executing parent workflow will call the child workflow with the required parameters and set the Comment field accordingly and also execute your desired task.
2013-12-06 06:29 AM
Thanks for posting the script/workflow. I have a customer that is also requesting the ability to automatically populate the Execution Comment field. It would be nice if we could configure this field in user preferences with variables from the workflow.
2013-12-06 07:54 AM
We can take that as new feature request and see if it can be done in future.
2013-12-09 12:21 AM
Hi Geoff & Markus,
A Request for enhancement is filed for the same. Request both of you to open a case with netapp and add it to RFE # 782116.
Thanks to sinhaa for filing the same.