I've a workflow that change VM memory, but I need to know if this workflow finish well to run another workflow.
//Auto generated script, cannot be modified ! actionResult = System.getModule("com.vmware.library.vc.vm").changeVMRAM(vm,memory) ;
The variable actionResult is a VcTask object.
By default, you cannot add CPU and memory resources to a virtual machine while the virtual machine is on. So if you want to change vCPU and memory, you need to shutdown the virtual machine beforehand. You have to run the powerOff action for this. You should then run the actionResult command. Thus, the transaction will be successful. You don't need to check.