# Cannot run a JavaScript code in a Script Task

**URL:** <https://forum.flowable.org/t/cannot-run-a-javascript-code-in-a-script-task/8742>\
**Category:** Flowable Engine\
**Created:** [December 15, 2021, 12:42pm UTC](https://forum.flowable.org/t/cannot-run-a-javascript-code-in-a-script-task/8742 "2021-12-15T12:42:52Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![carbon\_60](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@carbon\_60](https://forum.flowable.org/u/carbon_60)\
**Post date:** [July 11, 2023, 6:26pm UTC](https://forum.flowable.org/t/cannot-run-a-javascript-code-in-a-script-task/8742/11 "2023-07-11T18:26:44Z")

</div>

It turns out there are two issues here.

One is that the String in the script has to be in single quote even though the JavaScript standard allows either single or double quotes.

The second issue is that the script task does not seem to execute if it is right after a boundary timeout event. I asked the second issue here [Script task does not execute after boundary timeout event](https://forum.flowable.org/t/script-task-does-not-execute-after-boundary-timeout-event/10676).

---

_[View the full topic](https://forum.flowable.org/t/cannot-run-a-javascript-code-in-a-script-task/8742)._
