JBoss Community

JSF set task variables

created by Rafael Oliveira in jBPM - View the full discussion

Hello everyone,

 

I'm getting when setting task variable from jsf, I tried use this #{task.variables['approve']}, but it doesn't work:

This is my code.

In this case, i want send to mey process the information that type in inputText txapprove, but when I get the variable value, it return null.

 

 

     <h:dataTable id="items" value="#" var="task" rendered="#{not empty taskInstancePriorityList}">

          <h:column>

               <f:facet name="header">

                    <h:outputText value="Description" />

               </f:facet>

               <h:inputText id="description" value="#{task.description}" style="width: 400" />

          </h:column>

          <h:column>

               <f:facet name="header">

                    <h:outputText value="Approve" />

               </f:facet>

               <h:inputText id="txapprove" value="#{task.variables['approve']}" style="width: 100" />

          </h:column>

          <h:column>

               <s:button id="doApprove" action="#{productBean.approve}" taskInstance="#error.notfound.task" value="Send" />

          </h:column>

     </h:dataTable>

</form>

 

 

 

 

Thank you for any help.

 

Rafael

Reply to this message by going to Community

Start a new discussion in jBPM at Community