<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to get BpmEngine belong to a Process Model Version</title><link>https://answers.axonivy.com/questions/2329/how-to-get-bpmengine-belong-to-a-process-model-version</link><description>&lt;p&gt;Hi all,
in module A, I have a function that return a BpmEngine as:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IBpmEngine engine = DiCore.getGlobalInjector().getInstance(IBpmEngine.class);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With this line of code i get instance which belong to module A somehow.&lt;/p&gt;
&lt;p&gt;Now i also want to get IBpmEngine from other related modules (example: my module A depend on module B). 
I check the code then see each BpmEngine has a different id, combine between project model name and project model version: (class &lt;code&gt;ch.ivyteam.ivy.bpm.engine.internal.BpmEngine&lt;/code&gt;)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;this.id = "BPM engine " + this.getProcessModelVersion().getApplication().getName()
                + "/" + this.getProcessModelVersion().getVersionName();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is there anyway to get BpmEngine of other related modules?&lt;/p&gt;
&lt;p&gt;P/S: somehow this question is related to this &lt;a href="http://answers.axonivy.com/questions/2244/can-we-monitor-ivy-process-programmatically"&gt;post&lt;/a&gt; where i want to register listener for other module.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2329/how-to-get-bpmengine-belong-to-a-process-model-version" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 28 Dec 2016 03:17:27 -0500</lastBuildDate><item><title>Answer by trungdv</title><link>https://answers.axonivy.com/questions/2329/how-to-get-bpmengine-belong-to-a-process-model-version/2330</link><description>&lt;p&gt;i think i can solve this question by using this factory:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;   ServerFactory.getServer().getBpmEngineManager().getBpmEngine(pmv)
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Wed, 28 Dec 2016 03:17:27 -0500</pubDate><guid>https://answers.axonivy.com/questions/2329/how-to-get-bpmengine-belong-to-a-process-model-version/2330</guid></item></channel></rss>