Hi all,
my question is about the completion of a custom workitem; my scenario:
- process reaches and executes a custom work item
- work item throws an exception (under the hood it calls an ejb that throws an exception)
- the exception is catched inside the work item
- inside the catch block the method manager.abortWorkItem is called
In case of abortion of a work item I'm wondering why the nest step inside a process is
anyway called?
In case of abortion of a work item IMHO the process should not go on but "roll
back" to the previous safe state
This is the scenario my customer need.
Actually I'm facing this situation not calling the method manager.abortWorkItem but
throwing inside the work item a
throw new IllegalStateException("****EJBControlWorkItemHandler:ILLEGAL STATE
EXCEPTION!!!****")
Maybe a solution could be an evaluation of the work item status after the completion of
the work item. Anyway how can I handle an automatically rollback to a previous safe
state?
Thanks,
Giovanni
--
Giovanni Marigi
Red Hat - JBoss Consultant -
email: gmarigi(a)redhat.com
Mobile: +39 3423175986
Office: +39 0687502315
Red Hat Italy
Via Andrea Doria 41m
00192 Roma - Italy
www.redhat.com
Prima di stampare, pensa all'ambiente ** Think about the environment before printing
--
Giovanni Marigi
Red Hat - JBoss Consultant -
email: gmarigi(a)redhat.com
Mobile: +39 3423175986
Office: +39 0687502315
Red Hat Italy
Via Andrea Doria 41m
00192 Roma - Italy
www.redhat.com
Prima di stampare, pensa all'ambiente ** Think about the environment before printing