2 Replies Latest reply on Jun 27, 2007 11:57 AM by kelly goedert

    process not being created

    kelly goedert Apprentice

      Hi,

      I´m trying to use seam with jbpm. The method I marked with @createProcess is never called. What can be wrong?

      The page where the method is called is this:

      <h:form>
      ....

      <h:commandButton value="Nova Requisição" action="#{requestSystem.newRequest}"/>

      ...
      </h:form>

      The requestSystem bean is this

      @Stateful
      @Name("requestSystem")
      public class RequestSystemAction implements RequestSystem, Serializable {
      private static final long serialVersionUID = 1L;

      @PersistenceContext(type = PersistenceContextType.EXTENDED)
      EntityManager em;

      @Out(scope = ScopeType.CONVERSATION, required = false)
      @In(required = false)
      Request request;

      @Out(scope = ScopeType.BUSINESS_PROCESS, required = false)
      long requestId;

      public Integer p;
      public List possibilities = new ArrayList();


      @CreateProcess(definition = "RequestProcess")
      public String newRequest() {
      System.out.println("Criando nova requisição");
      request = createRequest();
      requestId = request.getId();
      return "home";
      }
      ....

      And the process definition:

      <process-definition name="RequestProcess">
      <start-state name="start">

      </start-state>






      <task-node name="Admin">

      <assignment pooled-actors="admin" />


      </task-node>
      <task-node name="Manager">

      <assignment pooled-actors="manager" />


      </task-node>
      <end-state name="end"></end-state>
      </process-definition>

      Thanks for any help