Error Starting Taks With Jbpm
edier Apr 20, 2010 9:55 PMHello,
I'm working with a Seam project and recently I needed to add jbpm process definitios to it. so I refered to the example TodoList, the matter is that I have followed the steps to confiugred the project. The process is created correctly with a warn:
"Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks =="
When i want to start or end a task I get an error on the application, but on the console (or log) it shown nothing, so I don't know what happens. Here is my code:
I have three methods in the bean:
@Name("tareaEnrolamientoBB") @Scope(ScopeType.SESSION) public class TareaEnrolamientoBB extends GestionTekBackingBean { private static final long serialVersionUID = -922289055419074L; @Logger private Log log; @PostConstruct public void constructor() { System.out.println("===== ENTER CONSTRUCTOR ===="); } @CreateProcess(definition="enrolamiento") public void iniciarProceso(){ } @EndTask public String completarTarea() { return null; } @StartTask public String empezarTarea(){ return null; }
and in the view:
<h:dataTable value="#{taskInstanceList}" var="task" rendered="#{not empty taskInstanceList}"> <h:column> <f:facet name="header"> <h:outputText value="Description" /> </f:facet> <h:inputText value="#{task.description}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Created" /> </f:facet> <h:outputText value="#{task.taskMgmtInstance.processInstance.start}"> <f:convertDateTime type="date" /> </h:outputText> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Priority" /> </f:facet> <h:inputText value="#{task.priority}" style="width: 30" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Due Date" /> </f:facet> <h:inputText value="#{task.dueDate}" style="width: 100"> <f:convertDateTime type="date" dateStyle="short" /> </h:inputText> </h:column> <h:column> <s:link value="Start" action="#{tareaEnrolamientoBB.empezarTarea}" taskInstance="#{task}" linkStyle="button" /> </h:column> <h:column> <s:link value="Done" action="#{tareaEnrolamientoBB.completarTarea}" taskInstance="#{task}" linkStyle="button" /> </h:column> </h:dataTable>
the button for starting process:
<h:commandButton action="#{tareaEnrolamientoBB.iniciarProceso}" styleClass="btnNaranja" value="Registrar" />
ANY HELP WELCOMED!!!! THANKS!!