I am using v2.1.The following syntax throws an exception. It expects an other tag inside <script>.<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
// some alfresco javascript
</script>
</action>
But the following syntax works.<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<expression>
// some alfresco javascript
</expression>
<variable name="passedInValue" access="read"/>
<variable name="passedOutValue" access="write"/>
</script>
</action>
But I can have only one writeable variable. Otherwise it throws an exception.In lot of examples I saw the first syntax and the second one (with multiple writeable variable) were used. But why can't I use that syntax.adhoc_processdefinition.xml which uses the first syntax works without any problem But my custom process definitions does not work
.Thanks & Regards,Eranga