changf03

updated

14 years ago

C

changf03

22 Posts

0

139030

September 24th, 2012 17:00

call functions within a function in groovy

I have created a groovy function GetDiskCost under "My Definitions".  I am in the process of creating another groovy based function GetVMCost, and I would like to call GetDIskCost inside the GetVMCost function.  How would I do that?  If I do def diskCost = GetDiskCost(vm), it will return error when trying to test the function

  • hdoubleu

    19 Posts

    480

    1

    Posted September 25th, 2012 13:00

    HI Frank,

    this will be done with the functionHelper call, for example:

    diskCost = functionHelper.invokeFunction(" ", anyparam...);

    Bets regards,