[jboss-user] [jBPM] - Re: jBPM processes started from Java code dont show up in jBPM process console

prakash prabhu do-not-reply at jboss.com
Tue Nov 29 10:24:54 EST 2011


prakash prabhu [http://community.jboss.org/people/prakashp5562] created the discussion

"Re: jBPM processes started from Java code dont show up in jBPM process console"

To view the discussion, visit: http://community.jboss.org/message/638901#638901

--------------------------------------------------------------
Thanks Demian.
I added the JPAWorkingMemoryDBLogger along with the persistence.xml, but sill not showing up in the process console.
The process is started w/o exceptions as I can see the user tasks in the process console, but not the process instances.

Below is my code.

private void StartWorkflow( String messageToPublish, String Identifier, String tag )
          {
                    try 
                    {
                              KnowledgeBase kbase = readKnowledgeBase();
*                              StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();*
*                              JPAWorkingMemoryDbLogger dbLogger = new JPAWorkingMemoryDbLogger(ksession);*
*                              KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test");*
                              //start a new process instance


                              ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new WSHumanTaskHandler());
                              // start a new process instance
                              Map<String, Object> params = new HashMap<String, Object>();
                              params.put("reason", "Registration");
                              params.put("patientXml", messageToPublish);
                              params.put("identifier", Identifier);
                              params.put("tag", tag);



                              ksession.addEventListener(new com.ge.edadmit.rest.RegistrationEventListener());
                              ksession.startProcess("com.ge.edadmit.EdAdmitWorkflow", params);

*                              dbLogger.dispose();*
*                              //dblogger.*
                              logger.close();
                    } 
                    catch (Throwable t) 
                    {
                              System.out.println(t.getMessage());
                          t.printStackTrace();
                    } 
          }
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20111129/aa4f8246/attachment.html 


More information about the jboss-user mailing list