0 Replies Latest reply on May 1, 2007 10:01 AM by mike boldischar

    jBPM Tasks Question

    mike boldischar Newbie

      Hello,

      I am trying to figure out how the DVD Store example sets and retrieves variables from tasks.

      The file web/admin/admin.xhtml:

       <h:dataTable rendered="#{not empty pooledTaskInstanceList}"
       var="task"
       styleClass="dvdtable"
       headerClass="dvdtablehead"
       rowClasses="dvdtableodd,dvdtableeven"
       columnClasses="dvdtablecol">
       <h:column>
       <f:facet name="header">Order Id</f:facet>
       #{task.variables['orderId']}
       </h:column>
       <h:column>
       <f:facet name="header">Task</f:facet>
       <h:outputText value="#{task.description}" />
       </h:column>
       <h:column>
       <f:facet name="header">Order Amount</f:facet>
       <h:outputText value="#{task.variables['amount']}">
       <f:convertNumber type="currency" currencySymbol="$" />
       </h:outputText>
       </h:column>
       <h:column>
       <f:facet name="header">Customer</f:facet>
       <h:outputText value="#{task.variables['customer']}" />
       </h:column>
       <h:column>
       <s:button action="#{pooledTask.assignToCurrentActor}" taskInstance="#{task}"
       value="Assign"/>
       </h:column>
       </h:dataTable>
      


      How does task.variables['customer'] get set originally?