I see the use case, and it would make sense to have autocompletion for it, but AFAIK that's not possible right now. (I think it's comparable to the VcPlugin object. Nice helpful methods in there...
See more...
I see the use case, and it would make sense to have autocompletion for it, but AFAIK that's not possible right now. (I think it's comparable to the VcPlugin object. Nice helpful methods in there, but no autocompletion)
Well, that's exactly the need for intentory objects, because now you have stateful objects that you want to pass between workflow elements (an store the in workflow attributes). However, if yo...
See more...
Well, that's exactly the need for intentory objects, because now you have stateful objects that you want to pass between workflow elements (an store the in workflow attributes). However, if you don't want to implement a fully blown inventory: Try to use the generic types "ANY" or "Properties" (if you want to create your own "struct") as return type for the action and type for the workflow attributes. Only drawback: There is no presentation available for these types, so if you use them for workflow input parameters a human user cannot start them (another workflow still can!). (To close the circle for understanding: The finder windows opened in the input presentation of a workflow use the PluginFactory and the find() methods, so if you want to provide them, you have to implement the finders and therefor a fully blown inventory) Cheers, Joerg
Hi! AFAIK there is no built-in functionality to print out workflow outputs directly in the webviews. As a workaround: You can print out returns of an Action directly to a webview (there is an e...
See more...
Hi! AFAIK there is no built-in functionality to print out workflow outputs directly in the webviews. As a workaround: You can print out returns of an Action directly to a webview (there is an example in the Webview Developer guide, if I remember right; you have to call the action via a Tapestry element)... Example: <div id="requestTableDiv"> <vmo jwcid="@Insert" value="ognl:page.executeAction('getExecutionsForCategory',{getAttribute('allWfls')})" raw="true"/> </div> ...in this case with "getExecutionsForCategory" as Webview-Attribute of Type Action, and "allWfls" as Webview-Attribute of type WorkflowCategory. The action itself wants a parameter of type WorkflowCategory... In your case you would create an Action that now could get the workflow output from a WorkflowToken and present it to an HTML-String... Regards, Joerg
Hi! You can loop through the config.hardware.device-Array of the VM: IN: vm (Vc:VirtualMachine) OUT: macAddresses (Array/String) //initialize macAddresses array (to make a push() possible l...
See more...
Hi! You can loop through the config.hardware.device-Array of the VM: IN: vm (Vc:VirtualMachine) OUT: macAddresses (Array/String) //initialize macAddresses array (to make a push() possible later) macAddresses = new Array(); var deviceArray = vm.config.hardware.device; if (!deviceArray) throw "Error getting hardware config array of VM"; System.debug("deviceArray: " + deviceArray); //loop through array, find NICs and retrieve there MACs for (var i in deviceArray) { var currentDevice = deviceArray.pop(); if (currentDevice) { System.debug("currentDevice: " + currentDevice); if (currentDevice instanceof VcVirtualE1000 || currentDevice instanceof VcVirtualPCNet32 || currentDevice instanceof VcVirtualVmxnet || currentDevice instanceof VcVirtualVmxnet2 || currentDevice instanceof VcVirtualVmxnet) { System.debug("found network card on " + currentDevice); macAddresses.push(currentDevice.macAddress) ; } } } Please let me know if it works for your, or if you need some more information Regards, Joerg
Hi! If I see right, you bound the wrong VcVirtualMachine to the Copy Files....-Workflow: You don't need the workflow-input-parameter "vm", but the result of the cloning task: tempNewVM When yo...
See more...
Hi! If I see right, you bound the wrong VcVirtualMachine to the Copy Files....-Workflow: You don't need the workflow-input-parameter "vm", but the result of the cloning task: tempNewVM When you bind this workflow-attribute to the copy-files workflow element it should work. Regards, Joerg
Hi! seems to be an issue within the Tapestry-Parser. It should work if you use an external file for the javascript-stuff: <html> <head> </head> <body> <script type="text/javascript" src="v...
See more...
Hi! seems to be an issue within the Tapestry-Parser. It should work if you use an external file for the javascript-stuff: <html> <head> </head> <body> <script type="text/javascript" src="vodoo.js"> </script> </body> </html> And all the javascript-code in voodo.js in the same directory. Regards, Joerg