[jboss-user] [jBPM] - Re: jBPM 5.2 issue Jboss7.1Beta

rigazilla do-not-reply at jboss.com
Wed Jan 18 05:24:22 EST 2012


rigazilla [https://community.jboss.org/people/rigazilla] created the discussion

"Re: jBPM 5.2 issue Jboss7.1Beta"

To view the discussion, visit: https://community.jboss.org/message/647323#647323

--------------------------------------------------------------
Hi 
we have the same problem, with this code snip.

|  | try { |
|    | InitialContext ctx= new InitialContext(); |
|    | kbi=(KnowledgeBaseInterface)ctx.lookup("java:global/examplejbpm5/KnowledgeBaseEJB!it.comp.example.jbpm5.KnowledgeBaseInterface"); |
|  | } catch (NamingException e) { |
|    | // TODO Auto-generated catch block |
|    | e.printStackTrace(); |
|  | } |

|  | KnowledgeBase kbase= kbi.getKB(); |

|  | EntityManagerFactory emf = Persistence.createEntityManagerFactory("it.comp.example.jbpm5.jpa"); |
|  | Environment env = KnowledgeBaseFactory.newEnvironment(); |
|  | env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf); |
|  |  |
|  | StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env); |
|  | ProcessInstance pi = ksession.getProcessInstance(1); |
|  | if (pi == null) { |
|    | Map<String, Object> params = new HashMap<String, Object>(); |
|    | params.put("employee", "krisv"); |
|    | params.put("reason", "Yearly performance evaluation"); |
|    | pi = ksession.startProcess("sayhello", params);   // <--- exception |
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/647323#647323]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120118/549dad17/attachment.html 


More information about the jboss-user mailing list