Package com.arjuna.mwlabs.wscf.model.sagas.arjunacore

Examples of com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator


    public void initialiseContext(Object param)
    {
      try
      {
          ACCoordinator currentCoordinator = (ACCoordinator) param;

          ActivityHierarchy hier = null;

          try
          {
              hier = UserActivityFactory.userActivity().currentActivity();
          }
          catch (SystemException ex)
          {
              ex.printStackTrace();
          }

          if ((currentCoordinator != null) && (hier != null))
          {
            /*
             * Do the manditory stuff first.
             */

            ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;

                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
View Full Code Here


   
    public void initialiseContext(Object param)
    {
      try
      {
          ACCoordinator currentCoordinator = (ACCoordinator) param;
   
          ActivityHierarchy hier = null;
     
          try
          {
              hier = UserActivityFactory.userActivity().currentActivity();
          }
          catch (SystemException ex)
          {
              ex.printStackTrace();
          }

          if ((currentCoordinator != null) && (hier != null))
          {
            /*
             * Do the manditory stuff first.
             */
       
            ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
View Full Code Here

    public void initialiseContext(Object param)
    {
  try
  {
      ACCoordinator currentCoordinator = (ACCoordinator) param;
      DocumentBuilder builder = DomUtil.getDocumentBuilder();
      org.w3c.dom.Document doc = builder.newDocument();
 
      _context = doc.createElement(_contextName);
      _context.appendChild(doc.createComment("WARNING: example Arjuna coordinator hierarchy only!"));
 
      if (currentCoordinator != null)
      {
    ActionHierarchy hier = currentCoordinator.getHierarchy();
 
    for (int i = 0; i < hier.depth(); i++)
    {
        org.w3c.dom.Element elem = doc.createElement(_coordName);
   
View Full Code Here

    public void initialiseContext(Object param)
    {
  try
  {
      ACCoordinator currentCoordinator = (ACCoordinator) param;
      DocumentBuilder builder = DomUtil.getDocumentBuilder();
      org.w3c.dom.Document doc = builder.newDocument();
 
      _context = doc.createElement(_contextName);
      _context.appendChild(doc.createComment("WARNING: example Arjuna coordinator hierarchy only!"));
 
      if (currentCoordinator != null)
      {
    ActionHierarchy hier = currentCoordinator.getHierarchy();
 
    for (int i = 0; i < hier.depth(); i++)
    {
        org.w3c.dom.Element elem = doc.createElement(_coordName);
   
View Full Code Here

   
    public void initialiseContext(Object param)
    {
      try
      {
          ACCoordinator currentCoordinator = (ACCoordinator) param;
   
          ActivityHierarchy hier = null;
     
          try
          {
              hier = UserActivityFactory.userActivity().currentActivity();
          }
          catch (SystemException ex)
          {
              ex.printStackTrace();
          }

          if ((currentCoordinator != null) && (hier != null))
          {
            /*
             * Do the manditory stuff first.
             */
       
            ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
View Full Code Here

TOP

Related Classes of com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator

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.