for (Field field : ctx.getMethod().getDeclaringClass().getDeclaredFields()) {
if (!field.isAnnotationPresent(ProcessVariable.class)) {
continue;
}
field.setAccessible(true);
ProcessVariable processStartVariable = field.getAnnotation(ProcessVariable.class);
String fieldName = processStartVariable.value();
if (fieldName == null || fieldName.length() == 0) {
fieldName = field.getName();
}
Object value = field.get(ctx.getTarget());
variables.put(fieldName, value);