0 Replies Latest reply on Jul 13, 2006 6:56 AM by ashiiid

    hosting jbpm in console application

    ashiiid

      Hi,

      I 'm trying to host jbpm in console application . I've chosen a "jbpm process " project and i added a java file with a main method . i can get the JbpmContext through :
      jbpmContext=JbpmContext.getCurrentJbpmContext();
      But when i try to set the actor id or get the TaskMgmtSession i face a java.lang.NullPointerException .
      JbpmContext.getCurrentJbpmContext().setActorId("test");
      TaskMgmtSession = jbpmContext.getTaskMgmtSession();

      Can any one help me .

      Regards ,

      Samid .