I tried to create a function as you advised me but can not launch it
De : sinhaa
Envoyé : mercredi 9 juillet 2014 13:52
À : Redouane Liani
Objet : - Re: Create a nfs volume with an export rule by entering multiple ip adress
<https://communities.netapp.com/index.jspa>
Re: Create a nfs volume with an export rule by entering multiple ip adress
created by sinhaa<https://communities.netapp.com/people/sinhaa> in OnCommand Workflow Automation - View the full discussion<https://communities.netapp.com/message/132716#132716>
@
I used this command : : 'vol_' + $VolumeName + System.currentTimeMillis() but it doesn’t work
====
Strange. I tried similar thing on another simpler workflow but that perfectly worked.
Do the following, this will have to work
Create a new function with below function definition:
def getDateUTC(fake)
{
return System.currentTimeMillis();
}
Now the function name is getDateUTC.
Now in your workflow, for name parameter use this: 'vol_' + $VolumeName + getDateUTC("")
https://communities.netapp.com/servlet/JiveServlet/downloadImage/2-132716-26282/450-343/getDateUTC.png <https://communities.netapp.com/servlet/JiveServlet/showImage/2-132716-26282/getDateUTC.png>
Reply to this message by replying to this email -or- go to the message on NetApp Community<https://communities.netapp.com/message/132716#132716>
Start a new discussion in OnCommand Workflow Automation by email<mailto:discussions-community-productsandsolutions-datastoragesoftware-storagemanagementsoftware-oncommandworkflowautomation@communities.netapp.com> or at NetApp Community<https://communities.netapp.com/choose-container.jspa?contentType=1&containerType=14&container=4097>