[jboss-user] [JBoss Seam] - process not being created

kgoedert do-not-reply at jboss.com
Wed Jun 27 10:49:18 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058229#4058229

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058229




More information about the jboss-user mailing list