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

    process not being created

    kelly goedert Apprentice


      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:commandButton value="Nova Requisição" action="#{requestSystem.newRequest}"/>


      The requestSystem bean is this

      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">


      <task-node name="Admin">

      <assignment pooled-actors="admin" />

      <task-node name="Manager">

      <assignment pooled-actors="manager" />

      <end-state name="end"></end-state>

      Thanks for any help