[jboss-user] [JBoss jBPM] - jbpm variables not saved

apdo do-not-reply at jboss.com
Thu Dec 13 01:04:00 EST 2007


As an exercise, from the todo example, I have create a form page where variable can be set. the description is save in the database by clicking on the update button. however, the process variable "summary" and task variable "variable1" are not saved. I have modify the todo process description to add the variable1 in the default controler.

Do you have an idea why the variables are not saved?

I have try to have an idea how it is working by downloading and tracing into the seam code. Saving only using the commandButton button is real magic. Is there design document available?

This is basic stuff but I am really unable to make it work. I am using jboss 4.2.2 GA and jboss 2.0.0 GA.

Phong

Here is my form page todoform.xhtml that follow:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">

Todo List


<f:view>
   <h:form id="list">
      id: <h:outputText value="#{taskInstance.id}"></h:outputText>
		
      name: <h:outputText value="#{taskInstance.name}"></h:outputText>
		
      description:<h:inputText value="#{taskInstance.description}" style="width: 400"/>
      
      summary:<h:inputText value="#{processInstance.contextInstance.variables['summary']}" style="width: 400"/>
      
      
		
      comments:<h:inputText value="#{taskInstance.variables['variable1']}" style="width: 400"/>
		
<h:commandButton value="Update Items" action="update"/>
        <s:button action="#{todoList.done}" taskInstance="#{taskInstance}" value="Done"/>		
	</h:form>
</f:view>



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

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



More information about the jboss-user mailing list