Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exeception Handeling problem in JBPM

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In my JBPM approval process, I have a requirement that, if a JBPM exception happens during the process work flow., the control should delegate.
 
Prajatna Mahunta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In my JBPM approval process, I have a requirement that, if at any point of time JBPM exception happens during the process work flow., the control should delegate to a separate TaskNode called Admin node, and the normal process flow should stop. Inside Admin node the admin user decides , from which task node now the process should continue, and accordingly the flow continues

Taking into consideration this requirement I designed a admin node and a exception handler as follows..



The Exception action handler is ass follows , which transfer the flow to Admin node and creates the Taskinstance at Admin node..


This above code part is working find with creating the taskinstance at admin task node.
Now after the task is assigned to a admin user, the admin take decision from which task node the process should start, again.

The code i am using to delegate the flow from admin node to any desired task node is--



Unfortunately, I am not able to achieve my requirement. The problem I am facing is even the control is delegating to admin node, still the process continues to move forward with the selected transition from the node where exception occurs..

So basically , I am not able to stop and resume the work flow from a desired Tasknode, as a admin.

Please suggest how to achieve this ..

As per the JBPM document 10.7. Exception handling


Note that the exception handling mechanism of jBPM is not completely similar to the java exception handling. In
java, a caught exception can have an influence on the control flow. In the case of jBPM, control flow cannot be
changed by the jBPM exception handling mechanism.



So then , how to achieve my requirement ..Any work around is there?


Please suggest..

Thanks in advance for your valuable reply..

Prajatna Mahunta
prajatna.mahunta@daimler.com
 
reply
    Bookmark Topic Watch Topic
  • New Topic