[Anthill-pro] Setting a Property to the name of the Executing
Workflow
Chris Stoy
chris.stoy at redstorm.com
Thu Oct 11 17:17:42 CDT 2007
Hello,
I'm trying to set up my Workflow so that when I create a new Clientspec
for Perforce it will name it according to the name of the Workflow.
So, in my Source Config section I selected "Create new clientspec" and
set the name to be:
builds-anthill-${property:workflowname}-${env/COMPUTERNAME}
Then, in the first Job of my Workflow I added as the first step an
Evaluate Script step with the following Beanshell code:
workflowname = WorkflowLookup.getCurrent()
PropertyLookup.setValue("workflowname", workflowname)
When I run the Workflow, I get the following error:
BeanShell script error: Parse error at line 5, column 1. Encountered:
PropertyLookup BSF info: noFile at line: 0
Obviously, I'm not doing something right, but I don't know Beanshell, so
I'm sure there is something wrong with my script.
Any ideas, or is this just a crazy thing to try and do in the first
place?
Thanks.
Chris.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20071011/9841c804/attachment.htm
More information about the Anthill-pro
mailing list