Configuración tarea enviar correo

1
0
-1

Estoy haciendo pruebas con el ejemplo de ExampleVacationManagmente y estoy teniendo problemas con la tarea de enviar e-mail, ya que, me da un error al intentar recuperar el e-mail de la persona que envía una solicitud a través del script que lleva el ejemplo.

El error que da es el siguiente::

java.lang.reflect.InvocationTargetException
org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.connector.exception.SConnectorException:

org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Declared return type class java.lang.Long is not compatible with evaluated type class java.lang.Integer for expression processInstanceId

Y el script que estoy utilizando es este:

return BonitaUsers.getProcessInstanceInitiatorProfessionalContactInfo(
apiAccessor, processInstanceId).email

¿Cuál es error? ¿A que se debe la incompatibilidad de tipos?

Un saludo y gracias.

4 answers

1
0
-1

hello friends how are you ?, I am new to the topic and because of this I have a question about sending an email from my tasks, and I generate output connectors with their configurations, but emails never arrive, it does not work, I am Failing or what to do, I'm guiding myself through the video tutorials that are on the Youtube platform.

1
0
-1

hello friends how are you ?, I am new to the topic and because of this I have a question about sending an email from my tasks, and I generate output connectors with their configurations, but emails never arrive, it does not work, I am Failing or what to do, I'm guiding myself through the video tutorials that are on the Youtube platform.

1
0
-1

import org.bonitasoft.engine.api.IdentityAPI;
import org.bonitasoft.engine.api.ProcessAPI;
import org.bonitasoft.engine.bpm.process.ProcessInstance;
import org.bonitasoft.engine.identity.ContactData;
// Get APIs
ProcessAPI processAPI = apiAccessor.getProcessAPI();
IdentityAPI identityAPI = apiAccessor.getIdentityAPI();
// Get process initiator
ProcessInstance processInstance = processAPI.getProcessInstance(processInstanceId);
long initiatorUserId = processInstance.getStartedBy();
// Get email from process initiator
ContactData contactData = identityAPI.getUserContactData(initiatorUserId, false);
return contactData.getEmail();

He probado con este código y me da el mismo error. Este codigo los he extraido de un presentación de BonitaSoft.

Cuando hago la prueba de ejecución no envía el e-mail pero si hago una prueba de envío me da el error de tipo.

Comments

Submitted by minatomontielmi... on Thu, 04/19/2018 - 16:01

hola amigos como estan?,soy nuevo en el tema y a raiz de esto tengo una duda respecto al enviar un email desde mis tareas, y genero los conectores de salidas con sus configuraciones, pero nunca me llegan los email, no funciona, en que estoy fallando o que toca hacer, me estoy guiando por los video tutoriales que se encuentran en la plataforma de youtube.

1
0
-1

I don't know this example but the simple answer is somewhere you have a LONG and you are trying to store an INTEGER in it, or the other way round.

In the connectors you have to be careful to use the correct type to ensure this does not happen. Check the code and I'm sure you will find it.

regards
Seán

PS: If this reply answers your question, please mark a resolved.

Comments

Submitted by minatomontielmi... on Fri, 04/20/2018 - 00:56

thank you.

Notifications