This content has been marked as final.
Show 3 replies
-
1. Re: Calling a workflow directly from another webpage link.
falazar Nov 7, 2006 12:27 PM (in response to falazar)Here is the code again
<a href="#" onclick="clear_linkDummyForm();document.forms['linkDummyForm'].elements['linkDummyForm:_link_hidden_'].value='newExe1921';document.forms['linkDummyForm'].elements['processDefinitionId'].value='1921';if(document.forms['linkDummyForm'].onsubmit){if(document.forms['linkDummyForm'].onsubmit()) document.forms['linkDummyForm'].submit();}else{document.forms['linkDummyForm'].submit();}return false;" id="newExe1921"> Start Process!</a> <form id="linkDummyForm" name="linkDummyForm" style="display:inline" method="post" action="http://misdev:8181/jbpm-console/participant/startnew.jsf"><input type="hidden" name="linkDummyForm:_link_hidden_" /><input type="hidden" name="processDefinitionId" /><script type="text/javascript"><!-- function clear_linkDummyForm() { var f = document.forms['linkDummyForm']; f.elements['linkDummyForm:_link_hidden_'].value=''; f.elements['processDefinitionId'].value=''; f.target=''; } clear_linkDummyForm(); //--></script></form>
-
2. Re: Calling a workflow directly from another webpage link.
kukeltje Nov 8, 2006 5:01 AM (in response to falazar)I did this once under 3.1, but extended one of the beans with a specific method for this. The it works/it doesnt behaviour could be because of jsf and the state it is in.
-
3. Re: Calling a workflow directly from another webpage link.
falazar Nov 8, 2006 9:02 AM (in response to falazar)Yes, do we know what state that is, or what var its looking for.
I poked aroudn a bit, but nothing stood out there.
James