Hi this is my simple code -
package example;

import java.io.FileInputStream;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.core.Jbpm;
import org.jboss.seam.core.Pageflow;

import org.jbpm.graph.def.ProcessDefinition;


//@Name("submit2")
//@Scope(ScopeType.PAGE)
public class UserTest {
        
        @Create
        @Begin(pageflow="submit2")

        public void test() throws Exception{
                
                //Jbpm jbpm = new Jbpm();
                boolean b;
                                System.out.println("--Before the instance---");
                ProcessDefinition pageflowDefinition 
=Jbpm.instance().getPageflowProcessDefinition("submit2");

                if(pageflowDefinition == null){
                        System.out.println("----------pageflowDefinition is 
null-----------");
                }else{
                        System.out.println("----------pageflowDefinition is not 
null entry-----------");
                }
        }
        public static void main(String[] args) throws Exception{
                UserTest test1 = new UserTest();
                test1.test();
                
        }

}

Here i am getting the IlligalStateException at the 
getpageflowProcessDefinition() method. Is there any sample code so that i can 
have a look and find out the procedure . Its urgent
**********
Exception in thread "main" java.lang.IllegalStateException: No application 
context active
        at org.jboss.seam.core.Jbpm.instance(Jbpm.java:248)
        at example.UserTest.test(UserTest.java:29)
        at example.UserTest.main(UserTest.java:39)
****************

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056770
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to