# About using Script tasks

**URL:** <https://forum.flowable.org/t/about-using-script-tasks/7134>\
**Category:** Flowable Engine\
**Created:** [November 26, 2020, 4:44pm UTC](https://forum.flowable.org/t/about-using-script-tasks/7134 "2020-11-26T16:44:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpeillat](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jpeillat](https://forum.flowable.org/u/jpeillat)\
**Post date:** [November 26, 2020, 4:44pm UTC](https://forum.flowable.org/t/about-using-script-tasks/7134/1 "2020-11-26T16:44:57Z")

</div>

Hi,  
I have been playing around Flowable for some time now and start investigating HTTP tasks and scripts tasks.  
I implemented [https://documentation.flowable.com/design-user-guide/3.5.0/231AC-task-script.html](https://documentation.flowable.com/design-user-guide/3.5.0/231AC-task-script.html) to use the script task with the example associated.  
So first I created a user task with a form to ask for “firstName” and “lastName”. Variables are created.

Then if using the example I have an error message on the toLowerCase():  
org.flowable.common.engine.api.FlowableException: problem evaluating script: TypeError: null has no such function “toLowerCase” in at line number 1

and then when displaying the email variable I have the following result: [null.null@yourCompany.com](mailto:null.null@yourCompany.com)

So I am wondering what needs to be configured as I lost the variable content when using the script task and JavaScript functions are not visible.

If anyone has a working example, it would be appreciated!  
Thanks  
Jerome

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [November 30, 2020, 9:06pm UTC](https://forum.flowable.org/t/about-using-script-tasks/7134/2 "2020-11-30T21:06:56Z")

</div>

Hi Jerome,

could you share your example (e.g. in the jUnit test)?

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [December 4, 2020, 11:01pm UTC](https://forum.flowable.org/t/about-using-script-tasks/7134/3 "2020-12-04T23:01:06Z")

</div>

Can you share the BPMN you created? On what are you running this (e.g. which JDK - some JDK’s have different javascripting engines)
