cancel
Showing results for 
Search instead for 
Did you mean: 

workflow JavaScript broken

mflaute
Champ in-the-making
Champ in-the-making
I am running into some trouble with my JavaScript within my workflow. I am writing a simple one for now just to get used to the setup.
The actual problem I am running into is that I make a simple workflow which includes a start event, end event, and user task. I am
setting my script to run whenever the workflow is started. I wrote the script just to perform a simple calculation and then display that answer
to the logger. When I go to make changes to this script, it won't take the new changes. I'll show you here:


   var myInt = 12334;
   var myOut = myInt * 2;
   logger.log(String(myOut));


When I run the workflow the first time it functions the way I expect. It prints out 24668 to the logger.
But if I change something about the script, let's just say I change the number to be multiplied to 12.
It still outputs 24668. Does anyone know what I'm doing wrong?
1 REPLY 1

scouil
Star Contributor
Star Contributor
Have you tried redeploying your workflow?