Class DateVariableTransformer
java.lang.Object
io.camunda.migrator.impl.interceptor.DateVariableTransformer
- All Implemented Interfaces:
VariableInterceptor
@Order(20)
@Component
public class DateVariableTransformer
extends Object
implements VariableInterceptor
Transformer for Date variables during migration from Camunda 7 to Camunda 8.
Converts Date variables to ISO 8601 formatted strings compatible with Camunda 8.
This interceptor runs after other transformers to handle date conversion.
Can be disabled via the configuration file using the enabled property.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(VariableInvocation invocation) Executes the interceptor logic for a variable invocation.getTypes()Returns the set of variable value types that this interceptor can handle.
-
Constructor Details
-
DateVariableTransformer
public DateVariableTransformer()
-
-
Method Details
-
getTypes
Description copied from interface:VariableInterceptorReturns the set of variable value types that this interceptor can handle.Use Camunda's existing type interfaces like: -
PrimitiveValue.classfor primitive variables -DateValue.classfor date variables -ObjectValue.classfor object variables (JSON, XML, Java serialized) -FileValue.classfor file variables -SpinValue.classfor Spin variablesIf the returned set is empty, this interceptor will be called for all variable types.
Default implementation returns an empty set (handle all types) for backward compatibility.
- Specified by:
getTypesin interfaceVariableInterceptor- Returns:
- set of supported variable value types, or empty set to handle all types
-
execute
Description copied from interface:VariableInterceptorExecutes the interceptor logic for a variable invocation. This method will only be called if the variable type matches one of the supported types.- Specified by:
executein interfaceVariableInterceptor- Parameters:
invocation- the variable invocation containing C7 variable data and methods to modify it
-