AnsweredAssumed Answered

Can't find scripting engine for 'javascript'

Question asked by rasmi on Jul 18, 2013
Latest reply on Jul 23, 2013 by rasmi
hi,

I get an exception in the script task:

  <scriptTask id="scripttask1" name="Number of Times Reminded" scriptFormat="javascript" activiti:autoStoreVariables="true">
      <script>var loopCount=0;
           if(${loopVar}){
                loopCount=${loopVar};
            }
           loopVar=loopCount++;
     </script>
</scriptTask>

SEVERE: exception during timer execution
org.activiti.engine.ActivitiException: Can't find scripting engine for 'javascript'
   at org.activiti.engine.impl.scripting.ScriptingEngines.evaluate(ScriptingEngines.java:65)
   at org.activiti.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior.execute(ScriptTaskActivityBehavior.java:51)
   at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44)
   at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:546)
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:541)

The script task is after a timer task:

    <sequenceFlow id="flow17" sourceRef="boundarytimer1" targetRef="scripttask1"></sequenceFlow>

Please help.

Thanks.

Outcomes