<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Easily generate BAM-Events wih jBPM</title>
	<atom:link href="http://www.bpm-guide.de/2008/12/06/easily-generate-bam-events-wih-jbpm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bpm-guide.de/2008/12/06/easily-generate-bam-events-wih-jbpm/</link>
	<description>It's Business Process Management</description>
	<lastBuildDate>Fri, 03 Feb 2012 13:51:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Bernd Rücker</title>
		<link>http://www.bpm-guide.de/2008/12/06/easily-generate-bam-events-wih-jbpm/comment-page-1/#comment-11</link>
		<dc:creator>Bernd Rücker</dc:creator>
		<pubDate>Thu, 09 Feb 2012 18:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.bpm-guide.de/?p=49#comment-11</guid>
		<description>Joram asked me two questions which I want to answer here:

1.) &quot;It is important to place the logger before the persistence service, since it may need the Hibernate session to load some information.&quot; --&gt; Can you elaborate a bit why this is necessary?

When generating the events we want to include process status information. So we query jbpm objects (e.g. token.getProcessDefinition().getVersion(). Maybe the processDefinition wasn&#039;t accessed earlier, so you need the HibernateSession to lazy load it. Okay, ProcessDefinition isn&#039;t a good example, but I don&#039;t remember which fields caused problems at the moment ;-) And it doesn&#039;t matter anyway, by having the services ordered correctly, we avoid any lazy load trouble at this point.

2.) Which CEP engine/visualisation did you use?

Currently none :-) The events are sent to a central process administration, which is self implemented (at the current stage it is basically an EJB3 SessionBean and some EJB3-Entities, accessed as I mentioned via ESB).</description>
		<content:encoded><![CDATA[<p>Joram asked me two questions which I want to answer here:</p>
<p>1.) &#8220;It is important to place the logger before the persistence service, since it may need the Hibernate session to load some information.&#8221; &#8211;> Can you elaborate a bit why this is necessary?</p>
<p>When generating the events we want to include process status information. So we query jbpm objects (e.g. token.getProcessDefinition().getVersion(). Maybe the processDefinition wasn&#8217;t accessed earlier, so you need the HibernateSession to lazy load it. Okay, ProcessDefinition isn&#8217;t a good example, but I don&#8217;t remember which fields caused problems at the moment <img src='http://www.bpm-guide.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  And it doesn&#8217;t matter anyway, by having the services ordered correctly, we avoid any lazy load trouble at this point.</p>
<p>2.) Which CEP engine/visualisation did you use?</p>
<p>Currently none <img src='http://www.bpm-guide.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  The events are sent to a central process administration, which is self implemented (at the current stage it is basically an EJB3 SessionBean and some EJB3-Entities, accessed as I mentioned via ESB).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

