1 Reply Latest reply on Sep 19, 2015 2:42 AM by vata2999

    How to use jbpm comment with Seam

    vata2999

      I'm trying to add a comment to jbpm task instance via Seam injection as it's in Todo example one of the Seam examples.

       

      <task-node name="todo">
            <task name="todo" description="#{todoList.description}"> // this won't be injected as a comment
               <assignment actor-id="admin"/>
            </task>
            <transition to="done"/>
         </task-node>
      

       

      xhtml form

       

      <h:form id="customers" styleClass="edit">
      
              <div>
               <h:inputText id="description" value="#{todoList.description}" style="width: 400"/>
               <h:commandButton id="create" value="Create New Item" action="#{todoList.createTodo}"/>
            </div>
          </h:form>
      

       

      TodoList.java

       

      //description getter/ setter
      @CreateProcess(definition="todo")
         public void createTodo() {}
      

       

      is this a bug ?

       

      I don't want to outject a field into business process context, it's considered as a jbpm variable instance is there any way that I can use jbpm comment ?