[jboss-user] [JBoss jBPM] - Re: jbpm-console: conditions not working in jBPM 3.2
dario.oliveros
do-not-reply at jboss.com
Thu Apr 26 08:08:48 EDT 2007
"kukeltje" wrote :
| You tried his unit test but depoloyed your process to the AS. Did you try to turn his process in an xml and run it in the AS?
|
Not actually. The main reason to run his test case was to double check whether condition from his first test, def 1, would work appropriately. I thought that if I used the same syntax for condition, mine would work as well.
"kukeltje" wrote :
| Besides that. If you think it is a problem in the console, please provide the forms as well. It could even be that the GPD that is used generates a 'corrupt form'.
|
Below are the generated forms.
- task1.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
|
| <!-- the DOCTYPE means we are required to use html for a root element -->
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:tf="http://jbpm.org/jsf/tf"
| xmlns:jbpm="http://jbpm.org/jsf">
|
| <ui:component>
|
| <jbpm:dataform>
|
| <f:facet name="header">
| <h:outputText value="#{taskName}"/>
| </f:facet>
|
| <!-- TASKFORM ROWS -->
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="var1"/>
| </f:facet>
| <h:inputText value="#{var['var1']}" />
| </jbpm:datacell>
|
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Actions"/>
| </f:facet>
| <!-- TASKFORM BUTTONS -->
| <tf:saveButton value="Save"/>
| <tf:cancelButton value="Cancel"/>
| <tf:transitionButton transition="t1" value="t1"/>
| </jbpm:datacell>
|
| </jbpm:dataform>
|
| </ui:component>
|
| </html>
- task2.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
|
| <!-- the DOCTYPE means we are required to use html for a root element -->
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:tf="http://jbpm.org/jsf/tf"
| xmlns:jbpm="http://jbpm.org/jsf">
|
| <ui:component>
|
| <jbpm:dataform>
|
| <f:facet name="header">
| <h:outputText value="#{taskName}"/>
| </f:facet>
|
| <!-- TASKFORM ROWS -->
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="var1"/>
| </f:facet>
| <h:inputText value="#{var['var1']}" />
| </jbpm:datacell>
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="var2"/>
| </f:facet>
| <h:inputText value="#{var['var2']}" />
| </jbpm:datacell>
|
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Actions"/>
| </f:facet>
| <!-- TASKFORM BUTTONS -->
| <tf:saveButton value="Save"/>
| <tf:cancelButton value="Cancel"/>
| <tf:transitionButton value="Save and Close"/>
| </jbpm:datacell>
|
| </jbpm:dataform>
|
| </ui:component>
|
| </html>
|
"kukeltje" wrote :
| did you compare it with the forms for the example that comes with the starterkit?
|
Nope. If I am not mistaken the forms in the starters kit 3.1.3 are generated automatically. I do not remember generating them using the jPDL designer.
If you need any more info, please let me know.
In the mean time I will try to follow cristim1979 suggestions.
Thanks,
Dário
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040934#4040934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040934
More information about the jboss-user
mailing list