/** * Two statuses are equal if their targets are the same. */ public boolean equals (Object param) { return this.equals(param); }
public CoordinationOutcome (int sagas) { this(Success.instance(), sagas); }
/** * Check whether the specified completion status is compatible with the one * currently assigned to the activity. * * @param CompletionStatus * cs The completion status to check. * * @exception WrongStateException * Thrown if the specified status is incompatible with that * currently possessed by this activity. * */ public final void completionValid (CompletionStatus cs) throws WrongStateException { if (!_completionStatus.equals(cs)) { if (_completionStatus.equals(FailureOnly.instance())) throw new WrongStateException( wsasLogger.i18NLogger.get_activity_ActivityImple_5() + " " + _completionStatus + " " + cs); } }
/** * Check whether the specified completion status is compatible with the one * currently assigned to the activity. * * @param CompletionStatus * cs The completion status to check. * * @exception WrongStateException * Thrown if the specified status is incompatible with that * currently possessed by this activity. * */ public final void completionValid (CompletionStatus cs) throws WrongStateException { if (!_completionStatus.equals(cs)) { if (_completionStatus.equals(FailureOnly.instance())) throw new WrongStateException( wsasLogger.i18NLogger.get_activity_ActivityImple_5() + " " + _completionStatus + " " + cs); } }
public ActivityImple (ActivityImple parent, String serviceType) { _parent = parent; _children = new Hashtable(); _status = Created.instance(); _completionStatus = Failure.instance(); _activityId = new GlobalIdImple(); _timeout = 0; _result = null; _serviceType = serviceType; }
/** * Check whether the specified completion status is compatible with the one * currently assigned to the activity. * * @param CompletionStatus * cs The completion status to check. * * @exception WrongStateException * Thrown if the specified status is incompatible with that * currently possessed by this activity. * */ public final void completionValid (CompletionStatus cs) throws WrongStateException { if (!_completionStatus.equals(cs)) { if (_completionStatus.equals(FailureOnly.instance())) throw new WrongStateException( wsasLogger.i18NLogger.get_activity_ActivityImple_5() + " " + _completionStatus + " " + cs); } }
/** * Check whether the specified completion status is compatible with the one * currently assigned to the activity. * * @param CompletionStatus * cs The completion status to check. * * @exception WrongStateException * Thrown if the specified status is incompatible with that * currently possessed by this activity. * */ public final void completionValid (CompletionStatus cs) throws WrongStateException { if (!_completionStatus.equals(cs)) { if (_completionStatus.equals(FailureOnly.instance())) throw new WrongStateException( wsasLogger.i18NLogger.get_activity_ActivityImple_5() + " " + _completionStatus + " " + cs); } }
public ActivityImple (ActivityImple parent, String serviceType) { _parent = parent; _children = new Hashtable(); _status = Created.instance(); _completionStatus = Failure.instance(); _activityId = new GlobalIdImple(); _timeout = 0; _result = null; _serviceType = serviceType; }
/** * Two statuses are equal if their targets are the same. */ public boolean equals (Object param) { return this.equals(param); }
public CoordinationOutcome (int twophase) { this(Success.instance(), twophase); }
/** * 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(); } }
public ActivityImple (ActivityImple parent, String serviceType) { _parent = parent; _children = new Hashtable(); _status = Created.instance(); _completionStatus = Failure.instance(); _activityId = new GlobalIdImple(); _timeout = 0; _result = null; _serviceType = serviceType; }
/** * Two statuses are equal if their targets are the same. */ public boolean equals (Object param) { return this.equals(param); }
public CoordinationOutcome (int sagas) { this(Success.instance(), sagas); }
/** * 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(); } }
public ActivityImple (ActivityImple parent, String serviceType) { _parent = parent; _children = new Hashtable(); _status = Created.instance(); _completionStatus = Failure.instance(); _activityId = new GlobalIdImple(); _timeout = 0; _result = null; _serviceType = serviceType; }
public CoordinationOutcome (int twophase) { this(Success.instance(), twophase); }
/** * 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(); } }