AnsweredAssumed Answered

Failed to start workflow activiti$publishWhitepaper

Question asked by va22079 on Feb 26, 2015
Latest reply on Oct 11, 2017 by vmiorga

I followed the workflow tutorial at
Everything looked great until I completed step 1 of WhitePaper Submission Example.

After the step 1, I start share and repository. And all starts fine.

I went to http://localhost:8081/share -> start workflow then selected publich Whitepaper to Web workflow.

When I clicked on "Start Workflow" button, I get "01260009 Failed to start workflow activiti$publishWhitepaper"

The log says:

16:31:49,149 WARN  [org.activiti.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior] Exception while executing scripttask1 : couldn't find a variable type that is able to serialize [object global]
16:31:49,149 DEBUG [org.alfresco.repo.jscript.ScriptLogger] org.alfresco.service.cmr.workflow.WorkflowException: 01260010 Failed to start workflow activiti$publishWhitepaper:1:404.
16:31:49,164 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Returning 500 status code

It complains about scripttask1 which is as below:

    <scriptTask id="scripttask1" name="Submit" scriptFormat="javascript" activiti:autoStoreVariables="true">
      <script><![CDATA[var scwf_approveCount = 0; var scwf_tpApproved = false;]]></script>     

Can someone let me know what I am missing, please?
I am using Tomcat 7.0.37 and JDK 1.7

Thanks in advance.