Bonjour,
J’utilise la version la version 2022.1 de Bonita
J’ai un connecteur qui retourne un object de type Map selon le code du connecteur suivant :
Map<String,String> result = new HashMap<String,String>(); //for test result.put("TEST","TEST"); setOutputParameter(OUTPUT_DATA, result);
Je map le retour du connecteur sur une variable de type process typé Map , et j’obtiens l’erreur suivante:
2022-09-15T16:46:54,485+0200 | ZRH30479n | WARN | [ConnectorExecutor-6|305] o.b.e.w.RetryingWorkExecutorService - THREAD_ID=305 | HOSTNAME=ZRH30479n | TENANT_ID=1 | Work ExecuteConnectorOfActivity: flowNodeInstanceId = 1280024, connectorDefinitionName = DataPreparationDemo failed. The element will be marked as failed. Exception is: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: FLOW_NODE_INSTANCE_ID=1280024 | Declared return type interface java.util.Map is not compatible with evaluated type class java.lang.String for expression outputData wrapped by org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: FLOW_NODE_INSTANCE_ID=1280024 | Declared return type interface java.util.Map is not compatible with evaluated type class java.lang.String for expression outputData wrapped by org.bonitasoft.engine.core.connector.exception.SConnectorException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: FLOW_NODE_INSTANCE_ID=1280024 | Declared return type interface java.util.Map is not compatible with evaluated type class java.lang.String for expression outputData wrapped by org.bonitasoft.engine.connector.exception.SConnectorException: Unable to evaluate output operations of connectors and continue
Cordialement
david