New to Delegates

Hello, i am new to camunda, sorry in advance if this question has been asked before:

I am getting the following error:

Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-09010 Incompatible type set on field declaration ‘maximumTime’ for class ‘ar.com.smg.bpm.delegates.sla.SmgCalculateProcessSla’. Declared value has type ‘org.camunda.bpm.engine.impl.el.FixedValue’, while expecting ‘java.lang.String’

The modeler generated the following code:

    <bpmn:extensionElements>
      <camunda:executionListener class="ar.com.smg.bpm.delegates.sla.SmgCalculateProcessSla" event="start">
        <camunda:field name="maximumTime">
          <camunda:string>40 business hours</camunda:string>
        </camunda:field>
        <camunda:field name="minimumTime">
          <camunda:string>24 business hours</camunda:string>
        </camunda:field>
      </camunda:executionListener>
    </bpmn:extensionElements>

I also uploaded the full process file aporte-por-os.bpmn (10.5 KB)

and thie is the simple delegate code:

public class SmgCalculateProcessSla implements JavaDelegate {

private final Logger LOGGER = Logger.getLogger(SmgCalculateProcessSla.class.getName());

//Nombres de las variables estándar para SLAs de proceso y tareas
public static final String PROCESO_FECHA_VENCIMIENTO = "slaProcessDueDate";
public static final String PROCESO_FECHA_ADVERTENCIA = "slaProcessWarnDate";


private String maximumTime;
private String minimumTime;    
@Override
public void execute(DelegateExecution de) throws Exception {
    for ( String s : de.getVariableNames() ) {
        LOGGER.info( s  );
    }
}

}

… ¿Can you point me in the direction to make it work?

Thanks in advance!!!

Problem Solved, I was wrong while writting the java delegate code, It should be like this:

    public class SmgCalculateProcessSla implements JavaDelegate {

    private final Logger LOGGER = Logger.getLogger(SmgCalculateProcessSla.class.getName());
    
    //Nombres de las variables estándar para SLAs de proceso y tareas
    public static final String PROCESO_FECHA_VENCIMIENTO = "slaProcessDueDate";
    public static final String PROCESO_FECHA_ADVERTENCIA = "slaProcessWarnDate";
    
    
    private **Expression** maximumTime;
    private **Expression** minimumTime;
    
    @Override
    public void execute(DelegateExecution de) throws Exception {
        LOGGER.info(
                (String) maximumTime.getValue(de)
        );
        LOGGER.info(
                (String) minimumTime.getValue(de)
        );        
    }
}

thanks,it help me a lot

Do we need to use only expression ?
If I use String will I get the same error ?
I am using below code. getting same error. Can somone help on this ?

public class ServiceTaskExample implements JavaDelegate{
private String qaUrl;

@Override
public void execute(DelegateExecution execution) throws Exception {
	
	System.out.println("Service Task Example Invoked..");
	System.out.println("qaUrl=>"+qaUrl);
}

}