Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Workflow to create business group/machine prefix

$
0
0

I'm working with vRA 6.2.1 and vRO 6.0.1 (as external appliance) creating a single workflow that I can use to reproduce my test environment in terms of the tenant creation and configuration. So far I have an overall workflow consisting of multiple workflows from the vRA plugin that will create the tenant, add identity stores and administrators and then create the fabric group and machine prefixes, this all works fine but I'm stuck at the next stage which is to create my business group. I want the workflow to take the machine prefix created in the previous step as an input into the business group creation stage, the idea being there is no administrator input apart from to start the overall workflow, but out of the box the two workflows have different formats for the machineprefix id attribute (vCACEntity and vCACCAFE:MachinePrefix), and I can't find a way to convert it which correctly passes the value of the id to the create business group workflow.

 

Searching the web and this forum provided two different leads around using a scriptable task between the create machine prefix and create business group workflows, I've tried both and neither seems to work for me. The first one I tried was a simple one line saying createdMachinePrefix (vCAC:Entity) = convertedmachinePrefix(vCACCAFE:MachinePrefix), and the other was a script based on the vCACCAFEEntitiesFinder (https://communities.vmware.com/message/2453675) but these both result in the error TypeError Cannot call method getId of null (Dynamic Script Module name : createBusinessGroup#3).

 

The problem is obviously that the machineprefix id is not being correctly converted/passed to the create business group workflow, because if I set that to use an input for the prefix id and manually type it in when I run the overall workflow it works fine, so the scriptable task isn't generating any errors but it's not giving me the end result I need either. Also when I look at the variables tab as the overall workflow executes I can see the MachinePrefix variable in vCAC:Entity format as a guid, but the vCACCAFE:MAchinePrefix shows as Not set which I think shows I've found the correct cause of the problem.

 

Can anyone help me find the solution, I'm sure it's just me missing something obvious but I'm new to Orchestrator and am learning as I go along.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>