Hi all, in module A, I have a function that return a BpmEngine as:

IBpmEngine engine = DiCore.getGlobalInjector().getInstance(IBpmEngine.class);

With this line of code i get instance which belong to module A somehow.

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 ch.ivyteam.ivy.bpm.engine.internal.BpmEngine)

this.id = "BPM engine " + this.getProcessModelVersion().getApplication().getName()
                + "/" + this.getProcessModelVersion().getVersionName();

Is there anyway to get BpmEngine of other related modules?

P/S: somehow this question is related to this post where i want to register listener for other module.

asked 28.12.2016 at 02:52

trungdv's gravatar image

trungdv
49590101103
accept rate: 52%

edited 28.12.2016 at 02:53


i think i can solve this question by using this factory:

   ServerFactory.getServer().getBpmEngineManager().getBpmEngine(pmv)
link

answered 28.12.2016 at 03:17

trungdv's gravatar image

trungdv
49590101103
accept rate: 52%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×32

Asked: 28.12.2016 at 02:52

Seen: 581 times

Last updated: 28.12.2016 at 03:17