Class VariablesState


  • public class VariablesState
    extends Object
    • Method Detail

      • setVariablesLocalFromDocument

        public void setVariablesLocalFromDocument​(long scopeKey,
                                                  long workflowKey,
                                                  org.agrona.DirectBuffer document)
      • setVariableLocal

        public void setVariableLocal​(long scopeKey,
                                     long workflowKey,
                                     org.agrona.DirectBuffer name,
                                     org.agrona.DirectBuffer value)
      • setVariableLocal

        public void setVariableLocal​(long scopeKey,
                                     long workflowKey,
                                     org.agrona.DirectBuffer name,
                                     org.agrona.DirectBuffer value,
                                     int valueOffset,
                                     int valueLength)
      • setVariableLocal

        public void setVariableLocal​(long scopeKey,
                                     long workflowKey,
                                     org.agrona.DirectBuffer name,
                                     int nameOffset,
                                     int nameLength,
                                     org.agrona.DirectBuffer value,
                                     int valueOffset,
                                     int valueLength)
      • getVariableLocal

        public org.agrona.DirectBuffer getVariableLocal​(long scopeKey,
                                                        org.agrona.DirectBuffer name)
      • getVariable

        public org.agrona.DirectBuffer getVariable​(long scopeKey,
                                                   org.agrona.DirectBuffer name)
        Find the variable with the given name. If the variable is not present in the given scope then it looks in the parent scope and continues until it is found.
        Parameters:
        scopeKey - the key of the variable scope to start from
        name - the name of the variable
        Returns:
        the value of the variable, or null if it is not present in the variable scope
      • getVariable

        public org.agrona.DirectBuffer getVariable​(long scopeKey,
                                                   org.agrona.DirectBuffer name,
                                                   int nameOffset,
                                                   int nameLength)
        Find the variable with the given name. If the variable is not present in the given scope then it looks in the parent scope and continues until it is found.
        Parameters:
        scopeKey - the key of the variable scope to start from
        name - the buffer that contains the name of the variable
        nameOffset - the offset of name in the buffer
        nameLength - the length of the name in the buffer
        Returns:
        the value of the variable, or null if it is not present in the variable scope
      • setVariablesFromDocument

        public void setVariablesFromDocument​(long scopeKey,
                                             long workflowKey,
                                             org.agrona.DirectBuffer document)
      • getVariablesAsDocument

        public org.agrona.DirectBuffer getVariablesAsDocument​(long scopeKey)
      • getVariablesAsDocument

        public org.agrona.DirectBuffer getVariablesAsDocument​(long scopeKey,
                                                              Collection<org.agrona.DirectBuffer> names)
      • getVariablesLocalAsDocument

        public org.agrona.DirectBuffer getVariablesLocalAsDocument​(long scopeKey)
      • createScope

        public void createScope​(long childKey,
                                long parentKey)
      • removeScope

        public void removeScope​(long scopeKey)
      • removeAllVariables

        public void removeAllVariables​(long scopeKey)
      • setTemporaryVariables

        public void setTemporaryVariables​(long scopeKey,
                                          org.agrona.DirectBuffer variables)
      • getTemporaryVariables

        public org.agrona.DirectBuffer getTemporaryVariables​(long scopeKey)
      • removeTemporaryVariables

        public void removeTemporaryVariables​(long scopeKey)
      • isEmpty

        public boolean isEmpty()