10-26-2007 01:32 AM
<transition name="send" to="fillData">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<expression>
wfclbMHMPRegimen_wfProjectName = bpm_package.children[0].properties["clbMHMPRegimen:ProjectName"];
logger.log("wfclbMHMPRegimen_wfProjectName = " + wfclbMHMPRegimen_wfProjectName);
</expression>
<variable name="wfclbMHMPRegimen_wfProjectName" access="read,write" />
</script>
</action>
</transition>
the variable bpm_package is not defined.
<transition name="send" to="fillData">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var wfclbMHMPRegimen_wfProjectName = bpm_package.children[0].properties["clbMHMPRegimen:ProjectName"];
logger.log("wfclbMHMPRegimen_wfProjectName = " + wfclbMHMPRegimen_wfProjectName); </script>
</action>
</transition>
There was the package property assigned but not displayed.<transition name="send" to="fillData">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
<expression>
wfclbMHMPRegimen_wfProjectName = "Project Name";
logger.log("wfclbMHMPRegimen_wfProjectName = " + wfclbMHMPRegimen_wfProjectName);
</expression>
<variable name="wfclbMHMPRegimen_wfProjectName" access="read,write" />
</script>
</action>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
wfclbMHMPRegimen_wfProjectName = bpm_package.children[0].properties["clbMHMPRegimen:ProjectName"];
logger.log("wfclbMHMPRegimen_wfProjectName = " + wfclbMHMPRegimen_wfProjectName);
</script>
</action>
</transition>
10-28-2007 04:11 PM
<variable name="bpm_package" access="read" />
as part of the script.Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.