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!!!