Interface Variable
- All Known Implementing Classes:
VariableImpl
public interface Variable
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the key of the root process instance.getValue()<T> TgetValueAsType(Class<T> type) Deserializes the variable's JSON value into the given type.
-
Method Details
-
getVariableKey
Long getVariableKey() -
getName
String getName() -
getValue
String getValue() -
getScopeKey
Long getScopeKey() -
getProcessInstanceKey
Long getProcessInstanceKey() -
getRootProcessInstanceKey
Long getRootProcessInstanceKey()Returns the key of the root process instance. The root process instance is the top-level ancestor in the process instance hierarchy.Note: This field is
nullfor process instance hierarchies created before version 8.9.- Returns:
- the root process instance key, or
nullfor data created before version 8.9
-
getTenantId
String getTenantId() -
isTruncated
Boolean isTruncated() -
getValueAsType
Deserializes the variable's JSON value into the given type.- Type Parameters:
T- the target type- Parameters:
type- the class to deserialize the value into- Returns:
- the deserialized value
- Throws:
IllegalStateException- if the variable value is truncated
-