/** * Set the termination status for the current activity to cancel only. * * @exception WrongStateException Thrown if the completion status is * incompatible with the current state of the activity. * @exception SystemException Thrown if any other error occurs. */ public void setCancelOnly () throws NoCoordinatorException, WrongStateException, SystemException { try { UserActivityFactory.userActivity().setCompletionStatus(FailureOnly.instance()); } catch (NoActivityException ex) { throw new NoCoordinatorException(); } }
/** * Set the termination status for the current activity to cancel only. * * @exception WrongStateException Thrown if the completion status is * incompatible with the current state of the activity. * @exception SystemException Thrown if any other error occurs. */ public void setCancelOnly () throws NoCoordinatorException, WrongStateException, SystemException { try { UserActivityFactory.userActivity().setCompletionStatus(FailureOnly.instance()); } catch (NoActivityException ex) { throw new NoCoordinatorException(); } }
/** * Set the termination status for the current activity to cancel only. * * @exception WrongStateException * Thrown if the completion status is incompatible with the * current state of the activity. * @exception SystemException * Thrown if any other error occurs. */ public void setCancelOnly () throws NoCoordinatorException, WrongStateException, SystemException { try { UserActivityFactory.userActivity().setCompletionStatus(FailureOnly.instance()); } catch (NoActivityException ex) { throw new NoCoordinatorException(); } }
/** * Set the termination status for the current activity to cancel only. * * @exception WrongStateException * Thrown if the completion status is incompatible with the * current state of the activity. * @exception SystemException * Thrown if any other error occurs. */ public void setCancelOnly () throws NoCoordinatorException, WrongStateException, SystemException { try { UserActivityFactory.userActivity().setCompletionStatus(FailureOnly.instance()); } catch (NoActivityException ex) { throw new NoCoordinatorException(); } }