Package io.camunda.migrator.impl.model
Record Class ActivityVariables
java.lang.Object
java.lang.Record
io.camunda.migrator.impl.model.ActivityVariables
Represents variables grouped by activity instance ID.
This provides a more readable alternative to Mapinvalid input: '<'String, Mapinvalid input: '<'String, Object>>.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getGlobalVariables(String processInstanceId) Gets the global variables (variables at the process instance level).getVariablesForActivity(String activityInstanceId) Gets variables for a specific activity instance.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thevariablesByActivityrecord component.
-
Constructor Details
-
ActivityVariables
Creates an instance of aActivityVariablesrecord class.- Parameters:
variablesByActivity- the value for thevariablesByActivityrecord component
-
-
Method Details
-
getVariablesForActivity
Gets variables for a specific activity instance.- Parameters:
activityInstanceId- the activity instance ID- Returns:
- map of variable names to values for the activity, or empty map if not found
-
getGlobalVariables
Gets the global variables (variables at the process instance level).- Parameters:
processInstanceId- the process instance ID- Returns:
- map of global variable names to values, or empty map if not found
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
variablesByActivity
Returns the value of thevariablesByActivityrecord component.- Returns:
- the value of the
variablesByActivityrecord component
-