01-26-2011 12:21 PM
Failed to signal transition null from workflow task jbpm$xxxIf I remove this and keep something like var len = bpm_package.children.length;, it runs OK. Could anybody point me in the right direction? Anything to do with being in a "node?" Here's my code snippet:
<node name="CheckOut">
<transition to="End" name="Check out"></transition>
<event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
var path = userhome.properties.name
for (var i = 0; i < bpm_package.children.length; i++)
{
if (!bpm_package.children[i].hasAspect("wfl:status"))
{
bpm_package.children[i].addAspect("wfl:status");
}
}
</script>
</action>
</event>
</node>01-27-2011 05:01 AM
<node name="CheckOut">
<transition to="End" name="Check out"></transition>
<event type="node-enter">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
var path = userhome.properties.name
for (var i = 0; i < bpm_package.children.length; i++)
{
i = i;
}
</script>
</action>
</event>
</node>
01-27-2011 11:35 AM
log4j.logger.org.alfresco.repo.jscript.AlfrescoRhinoScriptDebugger=onwhich prevented the server from booting correctly (ie no Alfresco). I ammended this (and the next couple of lines) to:
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=infoStarted the server and the workflow now works. I'm at a loss as to explain this and have to put it down to magic. I'd already tried a server restart and had ruled that out yesterday. Next time I break the workflow I'll write down what I did.
log4j.logger.org.alfresco.repo.jscript=info
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=info
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.