9 Replies Latest reply on Feb 8, 2007 10:12 AM by O Y

    How to get the jbpm context ?

    gaofei ye Newbie

      Hi All,

      I am converting the jbpm websales to jportal portlet.

      I found that: the

       JbpmContext.getCurrentJbpmContext()
      

      method doesn't work, in other words, it returns NULL

      But
      JbpmConfiguration.getInstance().createJbpmContext();
      

      works fine. It also can get the default jbpm context.

      I wonder if the second code is correct. Could you please tell me the differences between them?

      Thanks!

      My portal is 2.4.0 jboss is 4.0.4.GA and jbpm is 3.1.2