Duplicate workitem created when throwing exception in On Entry / Exit Script

Solution Verified - Updated -

Issue

The 'Catching Intermediate Events - Error' is applied to the User task which is simulated to throw an error upon exit
e.g. On Exit Action = throw new RuntimeException("Test");

However there is an unexpected behaviour where the failed work item (e.g. User1) is still proceed to next task (e.g. User2). At the same time a new work item created due to simulated exception thrown. As a result, there are 2 user tasks created (at User2).

Expected behaviour: There should be only one task at User2 stage (due to exception thrown upon User1's exit).

Environment

  • Red Hat JBoss BPM Suite 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.