[jboss-user] [JBoss jBPM] - Re: advice needed, simultaneously active tasks where there i
rossputin
do-not-reply at jboss.com
Mon Nov 3 07:46:10 EST 2008
Hi,
I will go through the process and ensure the tasks are 'blocking'.
What I am keen to do, is gain the ability to recreate this multi-state behavior.
We are using a modified version of the demo JSF webapp to allow users to work through several different processes. So transitioning is similar to in the demo webapp.
At the bottom of 'task.xhtml' we have...
| <gd:repeat value="#{transitions}" var="transition" idVar="rid">
|
| ......
|
| <a href="#" onclick="transitionTaskForm('transition#{rid}', '#{transition.name}');">
| <h:outputText value="#{transition.name}"/>
| </a>
|
| <h:commandLink id="transition#{rid}" style="display:none; visibility: hidden;">
| <h:outputText value="#{transition.name}" rendered="#{! empty transition.name}"/>
| <gs:i rendered="#{empty transition.name}">
| <h:outputText value="End : (unnamed)"/>
| </gs:i>
| <ga:attribute name="rendered" value="#{! task.suspended}"/>
| <f:param name="id" value="#{id}"/>
| <ga:parameter name="id" target="#{id}">
| <f:convertNumber integerOnly="true"/>
| </ga:parameter>
| <j4j:loadTask id="#{id}" target="#{task}"/>
| <j4j:completeTask task="#{task}" transition="#{transition.name}"/>
| <n:nav outcome="success" url="myportal.jsf" storeMessages="true"/>
| <n:nav outcome="error" redirect="true" storeMessages="true"/>
| </h:commandLink>
|
| ......
|
| </gd:repeat>
|
So we hide the commandLink and point to a javascript function which does some client side validation, and then calls either...
transLink.dispatchEvent(evObj);
or
transLink.fireEvent('onclick');
which is a click on the required 'transition' command link...
What I am keen to know, is clicking on these transition links, while the tasks are not 'blocking' possibly causing this multi-state behavior ?
Thanks for your help,
regards,
Ross
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186372#4186372
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186372
More information about the jboss-user
mailing list