[jboss-user] [JBoss jBPM] - Re: Transitions not being followed correctly

jbaxter do-not-reply at jboss.com
Wed Sep 5 10:00:19 EDT 2007


Cheers got the validation working now. I better do some reading on JSF so I can make it look better!

  | j_id201:j_id209: Validation Error: Value is required.
  | 

JIRA reference for form generation:
http://jira.jboss.com/jira/browse/JBPM-1051

I have another problem with the tutorial I am following... There are two nodes with taskforms which write to a variable of the same name. The first node writes to the variable okay as the second node will display the variables' value and provide for its modification. You can then change a variable and 'save and close' the task. The token then moves along the default transition back to the first node as expected.  The problem is that the second task did not modify the variable as the original value of the variable is shown in the first node. Going back and forth between the nodes, I can always overwrite the value of the variable using the taskform on the first node, but never using the taskform on the second node. Any ideas on this one?

For reference, the two nodes are "All contracts agreed?" and "Contract new member" of the previously mentioned tutorial. The taskform code is:
All contracts agreed? (First node)

  |     <jbpm:datacell>
  |         <f:facet name="header">
  |             <h:outputText value="Band member 1 agreed?"/>
  |         </f:facet>
  |         <h:inputText value="#{var['bm1Agreed']}" />
  |     </jbpm:datacell>
  | 

Contract new member (Second node)

  |     <jbpm:datacell>
  |         <f:facet name="header">
  |             <h:outputText value="Band member 1 agreed?"/>
  |         </f:facet>
  |         <h:inputText value="#{var['bm1Agreed']}" />
  |     </jbpm:datacell>
  | 

This is turning into a pain in the arse!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081329#4081329

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081329



More information about the jboss-user mailing list