AnsweredAssumed Answered

error:using JavaScript in .bpmn20.xml

Question asked by bearson on Jun 28, 2016
Latest reply on Jun 29, 2016 by bearson
Hi dear community, I tried to use JS like that:

<process id="test_model" isExecutable="true">
        <startEvent id="414-013"></startEvent>
        <scriptTask id="javascriptScript" name="jsTask" scriptFormat="JavaScript" activiti:autoStoreVariables="false">
                var my = "Bla bla bla";
        <endEvent id="0DC2EF"></endEvent>

This xml uploaded perfect, but when I try Start Process, I have error:

<javascript>Reference Error:"console" is not defined at line 3</javascript>

Also I tried create new Form in js:

var form = new FormData();

And again I have the same error.

What I`m doing wrong? In what this error?

Thank you for help