When we create a script that runs within the Coach, even though the Process Designer entry shows multiple lines with content assist, when the script is saved and then subsequently executed, the code is "strung together" as a single line. So the code:
// Hide the dialog
${MyDialog}.setVisible(false);
// Execute the service
${MyService}.execute();
becomes:
// Hide the dialog ${MyDialog}.setVisible(false); // Execute the service ${MyService}.execute();
And as a result of this, the //
becomes the start of a line comment that basically comments out the remainder of the line. The solution is either to not use comments or use the /*
and */
comment brackets.