no that didn't work, I now get an error saying "problem evaluating script":
my script task is:
<scriptTask id="phonePrice" name="Phone Price" scriptFormat="javascript" activiti:resultVariable="myVar">
<script>
def scriptVar = 123;
execution.setVariable("myVar", scriptVar);
</script>
</scriptTask>
also tried and got the same error:
<scriptTask id="phonePrice" name="Phone Price" scriptFormat="javascript" activiti:resultVariable="myVar">
<script>
def var scriptVar = 123;
execution.setVariable("myVar", scriptVar);
</script>
</scriptTask>
I want to set a variable/value in the script task that I can use in my workflow.
i.e. a variable myVar set to 123, and when I use an exclusive gateway I want to to say if > 350 end process, <= 350 move on do the next task, where it will display the myVar value in the documentation