1- There's a true/false flag on the "Workflow Model Properties" in your WFM to turn this off. It's only accessible from the 'tree' box on the left.2- I'm half-guessing here, but I suspect that the "DCT" for the instantiation screen doesn't keep the pretty printing internally, and when everything is mushed onto the same line, the // comments are commenting-out the end of your functions, thereby causing the error.
2- I'm half-guessing here, but I suspect that the "DCT" for the instantiation screen doesn't keep the pretty printing internally, and when everything is mushed onto the same line, the // comments are commenting-out the end of your functions, thereby causing the error.
I'll confirm your guess - the script code is condensed such that all newlines are removed, and thus // style comments break things. Confusing - yes?Annoying - yes?Necessary - not really.Documented - not as far as I know.
If your code is large enough to warrant it, you could perhaps externalize your code into a JS file, and then reference it with a <script> tag... (not sure if that works in instantiation dcts)
I always abstract out DCT JS code into JS libraries. Probably will turn to that in WFM as well - if it works for custom_instantiation.
It does, I do this all the time.