There are several ways you can locate the workflowId, here are three different methods:
Method 1:After creating/editing a workflow, the vCO Java Client creates .vmware directory with some files locally in your home directory. (e.g. in Windows it would be under %userprofile%)
Method 2:In the vCO Configuration page, you can enable "DEBUG" logging which will also capture all workflow execution as part of the verbose output including both the name of the workflow that was executed and it's ID within the logs. Once you have captured the workflowId, you can easily revert "DEBUG" mode to "INFO" mode and does not require a restart of the vCO service.
Method 3:Lastly, you can actually create a workflow in vCO to find the workflowId for a given workflow. Just create a new workflow and give it a name and configure it to take an input string for the name of the workflow and output string for the workflowId.
Here is the vCO script that queries for all workflow's and queries for the specific workflow in question:
Here is what you will see as the output when running the getWorkflowId workflow:
Method 4 (Thanks to Jorg Lew) :
You can actually retrieve the workflow ID by just selecting the workflow in the vCO Java Client and pressing CTRL+C (keyboard copy shortcut) and then pasting that into text editor. This will actually display the XML-representation of the workflow.
There are multiple ways to retrieve the workflowId in vCO, but method #4 is definitely what I would recommend as it is the easiest method within the vCO Java Client.