Package com.arjuna.ats.arjuna.coordinator

Examples of com.arjuna.ats.arjuna.coordinator.ActionHierarchy


      {
        /*
         * 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() ;
                _expiresValues[0] = hier.activity(hier.size()-1).getTimeout() ;

        /*
         * Now let's do the optional stuff.
         */
                for(int count = 1, index = 0 ; count < depth ; count++, index++)
                {
                    _identifierValues[count] = txHier.getActionUid(index).stringForm() ;
                    _expiresValues[count] = hier.activity(index).getTimeout() ;
                }
      }
    }
    catch (ClassCastException ex)
View Full Code Here


            {
                /*
                 * 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() ;
                _expiresValues[0] = hier.activity(hier.size()-1).getTimeout() ;
               
                /*
                 * Now let's do the optional stuff.
                 */

                for(int count = 1, index = 0 ; count < depth ; count++, index++)
                {
                    _identifierValues[count] = txHier.getActionUid(index).stringForm() ;
                    _expiresValues[count] = hier.activity(index).getTimeout() ;
                }
            }
        }
        catch (ClassCastException ex)
View Full Code Here

      {
        /*
         * 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() ;
                _expiresValues[0] = hier.activity(hier.size()-1).getTimeout() ;
               
        /*
         * Now let's do the optional stuff.
         */
                for(int count = 1, index = 0 ; count < depth ; count++, index++)
                {
                    _identifierValues[count] = txHier.getActionUid(index).stringForm() ;
                    _expiresValues[count] = hier.activity(index).getTimeout() ;
                }
      }
    }
    catch (ClassCastException ex)
View Full Code Here

          {
            /*
             * 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() ;
                _expiresValues[0] = hier.activity(hier.size()-1).getTimeout() ;

            /*
             * Now let's do the optional stuff.
             */
                for(int count = 1, index = 0 ; count < depth ; count++, index++)
                {
                    _identifierValues[count] = txHier.getActionUid(index).stringForm() ;
                    _expiresValues[count] = hier.activity(index).getTimeout() ;
                }
            }
      }
      catch (ClassCastException ex)
View Full Code Here

          {
            /*
             * 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() ;
                _expiresValues[0] = hier.activity(hier.size()-1).getTimeout() ;
             
            /*
             * Now let's do the optional stuff.
             */
                for(int count = 1, index = 0 ; count < depth ; count++, index++)
                {
                    _identifierValues[count] = txHier.getActionUid(index).stringForm() ;
                    _expiresValues[count] = hier.activity(index).getTimeout() ;
                }
            }
      }
      catch (ClassCastException ex)
View Full Code Here

      _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);
   
        elem.appendChild(doc.createTextNode("http://arjuna.com?"+hier.getActionUid(i).stringForm()));
   
        _context.appendChild(elem);
    }
      }
  }
View Full Code Here

  _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);
   
    elem.appendChild(doc.createTextNode("http://arjuna.com?"+hier.getActionUid(i).stringForm()));
   
    _context.appendChild(elem);
      }
  }
    }
View Full Code Here

  _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);
   
    elem.appendChild(doc.createTextNode("http://arjuna.com?"+hier.getActionUid(i).stringForm()));
   
    _context.appendChild(elem);
      }
  }
    }
View Full Code Here

/*      */
/*  358 */     currAct = BasicAction.Current();
/*      */
/*  360 */     if (currAct != null)
/*      */     {
/*  362 */       ActionHierarchy ah = currAct.getHierarchy();
/*      */
/*  364 */       if (ah != null) {
/*  365 */         toSet.changeHierarchy(ah);
/*      */       }
/*      */       else {
View Full Code Here

/*  69 */     super(2);
/*     */
/*  71 */     this.currentStatus = 0;
/*  72 */     this.nextLock = null;
/*  73 */     this.lMode = 1;
/*  74 */     this.owners = new ActionHierarchy(0);
/*     */   }
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.coordinator.ActionHierarchy

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.