As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<task-node name="myNode"> <event type="node-leave"> <action name="myAction" class="myActionHandler"></action> </event> <transition name="tr2" to="myOtherTask"></transition> </task-node>
// save user credentials Authentication currentAuthentication = authenticationComponent.getCurrentAuthentication(); // authenticate as system user authenticationComponent.setSystemUserAsCurrentUser(); UserTransaction transaction = transactionService.getUserTransaction(); try { transaction.begin(); // your code transaction.commit(); } catch (Exception e) { try { transaction.rollback(); } catch (IllegalStateException e1) { // handle exception } catch (SecurityException e1) { // handle exception } catch (SystemException e1) { // handle exception } } finally { // restore user security context authenticationComponent.setCurrentAuthentication(currentAuthentication); }