Package com.arjuna.mwlabs.wsas.activity

Examples of com.arjuna.mwlabs.wsas.activity.ActivityImple


  {
      if (timeout == 0)
    timeout = getTimeout();
  }

  ActivityImple currentActivity = new ActivityImple(current());

  currentActivity.start(timeout);

  push(currentActivity);

  HLS[] hls = HLSManager.allHighLevelServices();
View Full Code Here


     * @message com.arjuna.mwlabs.wsas.UserActivityImple_3 [com.arjuna.mwlabs.wsas.UserActivityImple_3] - Activity.completed caught:
     */

    public Outcome end () throws InvalidActivityException, WrongStateException, ProtocolViolationException, SystemException, NoActivityException, SystemException, NoPermissionException, ActiveChildException
    {
  ActivityImple currentActivity = current();

  if (currentActivity == null)
      throw new NoActivityException();

  /*
  if (currentActivity.parent() != null)
      throw new ActiveChildException();
  */

  Outcome res = null;
 
  try
  {
      res = currentActivity.end();
  }
  catch (Exception ex)
  {
      wsasLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wsas.UserActivityImple_1",
            new Object[]{ex});
View Full Code Here

     * @see com.arjuna.mw.wsas.Outcome
     */

    public Outcome end (com.arjuna.mw.wsas.completionstatus.CompletionStatus cs) throws InvalidActivityException, WrongStateException, ProtocolViolationException, SystemException, NoActivityException, NoPermissionException, ActiveChildException
    {
  ActivityImple currentActivity = current();

  if (currentActivity == null)
      throw new NoActivityException();

  /*
  if (currentActivity.parent() != null)
      throw new ActiveChildException();
  */

  Outcome res = null;
 
  try
  {
      res = currentActivity.end(cs);
  }
  catch (Exception ex)
  {
      wsasLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wsas.UserActivityImple_2",
            new Object[]{ex});
View Full Code Here

     * @exception SystemException Thrown if any other error occurs.
     */

    public void setCompletionStatus (CompletionStatus endStatus) throws NoActivityException, WrongStateException, SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      throw new NoActivityException();
 
  curr.setCompletionStatus(endStatus);
    }
View Full Code Here

     * @return the termination status for the current activity, if any.
     */

    public CompletionStatus getCompletionStatus () throws NoActivityException, SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      throw new NoActivityException();
  else
      return curr.getCompletionStatus();
    }
View Full Code Here

     * @see com.arjuna.mw.wsas.status.Status
     */

    public com.arjuna.mw.wsas.status.Status status () throws SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      return NoActivity.instance();
  else
      return curr.status();
    }
View Full Code Here

     * @return the name of the activity.
     */

    public String activityName () throws NoActivityException, SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      throw new NoActivityException()// or return null?
  else
      return curr.activityName();
    }
View Full Code Here

      return curr.activityName();
    }

    public GlobalId activityId () throws NoActivityException, SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      throw new NoActivityException()// or return null?
  else
      return curr.getGlobalId();
    }
View Full Code Here

              new Object[]{ex});
    }
      }
  }

  ActivityImple currentActivity = purge();
 
  if (currentActivity != null)
      return new ActivityHierarchyImple(currentActivity);
  else
      return null;
View Full Code Here

  }
    }

    public ActivityHierarchy currentActivity () throws SystemException
    {
  ActivityImple curr = current();
 
  if (curr != null)
      return new ActivityHierarchyImple(curr);
  else
      return null;
View Full Code Here

TOP

Related Classes of com.arjuna.mwlabs.wsas.activity.ActivityImple

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.