Package nexj.core.scripting

Examples of nexj.core.scripting.ConstPair


      Pair assoc = null;

      for (int i = 0, n = getAssociationCount(); i < n; ++i)
      {
         assoc = new ConstPair(getAssociation(i).getReverse().getSymbol(), assoc);
      }

      m_event.addFlowAssoc(assoc);

      ((Workflow)m_activity.getFlow()).addFunction(this, assoc,
View Full Code Here


               if (sCaption == null)
               {
                  sCaption = "ids.flow.done";
               }

               m_states = new ConstPair(new ConstPair(Primitive.createInteger(-1), sCaption), m_states);
              
               continue;
            }
           
            nOrdinal = decision.getNext().getOrdinal();
           
            if (sCaption == null)
            {
               sCaption = decision.getNext().getName();
            }
         }
         else
         {
            Step step = branch.getStep(0);
           
            if (step instanceof Decision && ((Decision)step).isManual())
            {
               collectStates((Decision)step, identitySet);

               continue;
            }
           
            nOrdinal = step.getOrdinal();
           
            if (sCaption == null)
            {
               sCaption = step.getName();
            }
         }
        
         if (sCaption == null)
         {
            sCaption = "Decision " + nOrdinal;
         }
        
         m_states = new ConstPair(new ConstPair(Primitive.createInteger(nOrdinal), sCaption), m_states);
      }
   }
View Full Code Here

            return;
         }
      }

      m_states = new ConstPair(new ConstPair(
         Primitive.createInteger((m_next == null) ? -1 : m_next.getOrdinal()), "ids.flow.done"));
   }
View Full Code Here

                  {
                     Pair key = null;

                     for (int i = nTop; i >= 0; --i)
                     {
                        key = new ConstPair(m_metaclass.getInstanceAttribute(ordinalArray[i]).getSymbol(), key);
                     }

                     uniqueKeys = new ConstPair(key, uniqueKeys);
                  }
                  else if (nTop < nIndexColumnCount - 1)
                  {
                     nColumnCount += mark(mapping, index, useArray, true);
                     ordinalArray[nTop + 1] = ordinalArray[nTop];
View Full Code Here

    */
   protected void init()
   {
      for (int i = m_variableList.size() - 1; i >= 0; --i)
      {
         m_variables = new ConstPair(getVariable(i).getSymbol(), m_variables);
      }

      // nReservedVarCount reserved variables are prepended
      m_variables = new ConstPair(Symbol._FLOW, new ConstPair(Symbol._STATE, m_variables));
   }
View Full Code Here

         obj = getArgument(i--).getSymbol();
      }

      while (i >= 0)
      {
         obj = new ConstPair(getArgument(i--).getSymbol(), obj);
      }

      if (bThis)
      {
         return new ConstPair(Symbol.THIS, obj);
      }
     
      return (Pair)obj;
   }
View Full Code Here

      if (m_varMap != null)
      {
         for (Lookup.Iterator itr = m_varMap.iterator(); itr.hasNext();)
         {
            itr.next();
            pair = new ConstPair(new ConstPair(itr.getKey(), new ConstPair(itr.getValue())), pair);
         }
      }

      return pair;
   }
View Full Code Here

TOP

Related Classes of nexj.core.scripting.ConstPair

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.