I have an Intermediate Event Bean which is

  • used in several processes in the same project and
  • the project is deployed to multiple PMVs

Is an Intermediate Event Bean started once per Application, project (PMV) or element on the engine?

asked 25.06.2015 at 11:46

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦
1.8k5723
accept rate: 75%


A Intermediate Event Bean is started for each element and for each PMV, when the PMV is active. Note, also an archived PMV is an active one.

In a cluster environment (Enterprise Edition) an Intermediate Event Bean is only started on the master node. Visit the User Guide for more info.

When an Intermediate Event Bean should only to the job in the released PMV, the following condition could be integrated into the poll-Method to cancel the execution:

@Override
public void poll() {

    ReleaseState pmvReleaseState = getEventBeanRuntime().getIntermediateEventElement().getProcessModelVersion().getReleaseState();
    boolean isReleasedPmv = ReleaseState.RELEASED.equals(pmvReleaseState);
    if (!isReleasedPmv) {
        return;
    }

    // ...
}
link

answered 25.06.2015 at 11:58

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦
1.8k5723
accept rate: 75%

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:

×9

Asked: 25.06.2015 at 11:46

Seen: 920 times

Last updated: 25.06.2015 at 11:58