[jboss-user] [JBoss Seam] - seam annotations in components called from a jbpm process

be082032 do-not-reply at jboss.com
Wed Jul 19 11:02:25 EDT 2006


I am using seam 1.0.1 GA and jboss 4.0.4 GA.

When I build a seam javaBean component that has methods with jbpm annotations (@StartTask @EndTask) and the component is called from a JSF page, all works well (the @EndTask gives a signal that the task is ended and the jbpm process goes on.


If I call such a component from a jbpm Process using the expression language (like in the JSF page) , I get errors. Are such seam components not to be called from a jbpm process?

jBPM snippet:

action expression="#{metadataIngesterJavaBean.executeTask}" 

			

Component code:

    @StartTask    @EndTask 
    public void executeTask() {
        log.info("executeTask, context = "+jbpmContext+ " jbpm="+ jbpm);

        try {

        businessProcessContext.set("aap","na de taak");
       
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        log.info("task ended!!");
    }



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

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



More information about the jboss-user mailing list