Package org.openbp.server.context

Examples of org.openbp.server.context.TokenContextValue


  /*
   * @seem TokenContext.getParamValue
   */
  public Object getParamValue(final String qualParamName)
  {
    TokenContextValue tcv = (TokenContextValue) getParamValues().get(qualParamName);
    if (tcv != null)
      return tcv.getValue();
    return null;
  }
View Full Code Here


  /*
   * @seem TokenContext.setParamValue
   */
  public void setParamValue(final String qualParamName, final Object value)
  {
    TokenContextValue tcv = obtainParamValue(qualParamName, true);
     tcv.setValue(value);
    markAsModified();
  }
View Full Code Here

    return paramValues;
  }

  protected TokenContextValue obtainParamValue(final String variableName, final boolean isPersistent)
  {
    TokenContextValue tcv = (TokenContextValue) getParamValues().get(variableName);
    if (tcv == null)
    {
      tcv = new TokenContextValue();
      tcv.setPersistentVariable(isPersistent);
      getParamValues().put(variableName, tcv);
      markAsModified();
    }
    return tcv;
  }
View Full Code Here

  /*
   * @seem TokenContext.getProcessVariableValue
   */
  public Object getProcessVariableValue(final String variableName)
  {
    TokenContextValue tcv = getProcessVariable(variableName, false);
    if (tcv != null)
    {
      return tcv.getValue();
    }
    return null;
  }
View Full Code Here

  /*
   * @seem TokenContext.setProcessVariableValue
   */
  public void setProcessVariableValue(final String variableName, final Object value)
  {
    TokenContextValue tcv = getProcessVariable(variableName, true);
    if (tcv != null)
    {
      tcv.setValue(value);
      markAsModified();
    }
  }
View Full Code Here

  protected TokenContextValue getProcessVariable(final String variableName, boolean mustExist)
  {
    for (TokenContext context = this; context != null; context = context.getParentContext())
    {
      TokenContextValue tcv = (TokenContextValue) context.getParamValues().get(CoreConstants.PROCESS_VARIABLE_INDICATOR + variableName);
      if (tcv != null)
        return tcv;
    }

    // Check if accessing an undefined process variable should cause an exception
View Full Code Here

      {
        // Not a process variable
        continue;
      }
      varName = varName.substring(1);
      TokenContextValue tcv = (TokenContextValue) entry.getValue();
      Object value = tcv.getValue();

      if (value != null)
      {
        if (PersistenceContextObjectSerializer.isSerializableObject(value, pcp))
        {
View Full Code Here

      {
        // Not a process variable
        continue;
      }
      varName = varName.substring(1);
      TokenContextValue tcv = (TokenContextValue) entry.getValue();
      Object value = tcv.getValue();

      if (value != null)
      {
        if (PersistenceContextObjectSerializer.isSerializableObject(value, pcp))
        {
View Full Code Here

TOP

Related Classes of org.openbp.server.context.TokenContextValue

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.