Choisir un acteur

1
0
-1

Slt, chui débutante et je sollicite votre aide précieux. En effet, après avoir implémenté un petit processus qui concerne un groupe bien défini d'acteurs, je veux savoir s'il y'a possibilité de diffuser un document à des personnes (qui ne sont pas acteurs dans mon processus) et que leurs noms est supposés être remplie par l'un de mes acteurs (liste de diffusion) via mail et comment puis je le faire en me basant sur la liste saisie de ces personnes désignés par l'acteur. Je voous remercie fortement!

Comments

Submitted by ttoine on Fri, 04/17/2015 - 17:41

Bonjour Meryeme, j'ai édité le titre de deux de vos questions, pour que l'on comprenne le sujet de votre question. Merci de ne plus mettre juste "Help" ou "Aide" dans le titre ;-)

Submitted by meryeme.el.houari on Wed, 06/10/2015 - 00:27

Bonjour,

SVP, je trouve pas comment garder la liste cochée par un premier acteur et qu'on veut récupérer cette liste même liste cochée par un deuxième acteur.

4 answers

1
0
-1
This one is the BEST answer!

Bonjour.

Si j'ai bien compris, tu as déjà crée une liste d'utilisateur qui ont tous une adresse mail. Tu veux donc créer une liste de noms d'utilisateurs, puis leur envoyé à tous un document.

Tache 1 : Lister les utilisateurs et choisir les destinataires Pour ça il te faudra utiliser l'api Identity (http://documentation.bonitasoft.com/javadoc/api/6.3/com/bonitasoft/engin...) Tu pourras aussi profiter de cette tâche pour uploader le fichier à envoyer (à l'aide d'un widget File dans le formulaire).

Tache 2 : Lister les adresses mails Ensuite dans un formulaire, tu peux par exemple ajouter une liste de chekbox pour cocher les destinataires. A partir de cette liste, il faudra créer une liste d'adresse mail. Pour ça tu peux encore utiliser l'api Identity.

Tache 3 : Envoyer le mail Il existe déjà un connecteur qui permet de faire cela. Il faudra juste que tu le configure avec le SMTP et les adresses mails de ta liste. Attention, le SMTP pose souvent problème parce qu'il faut en utiliser un qui ne soit pas bloqué par l'entreprise pour laquelle tu travails.

Comments

Submitted by yannick.lombardi on Mon, 04/20/2015 - 14:07

Pour récupérer l'adresse mail d'un utilisateur :

import org.bonitasoft.engine.identity.User;
import org.bonitasoft.engine.identity.UserWithContactData;
User u = apiAccessor.getIdentityAPI().getUserByUserName(userName);
UserWithContactData pro = apiAccessor.getIdentityAPI().getUserWithProfessionalDetails(u.getId());
return pro.getContactData().getEmail();

Pour l'envoi de mail multiple, tu peux multi-instancier ta tâche qui contient le connecteur comme ça : http://img11.hostingpics.net/pics/821890mailconnectoriterate.png

J'ai tester cet exemple avec ce processus : http://img11.hostingpics.net/pics/983388processMaillist.png

Submitted by meryeme.el.houari on Tue, 04/21/2015 - 16:02

Bonjour Yannick. Si vs pouviez m'envoyer le fichier .bos ce serai vraiment gentil :)

Submitted by yannick.lombardi on Wed, 04/22/2015 - 16:45

Bonjour. Voilà un lien vers le fichier : https://www.dropbox.com/s/baxzpo6o5wskazo/testMailListUsers-1.0.bos?dl=0

Pour le tester il faudra configurer le connecteur et les acteurs.

Submitted by meryeme.el.houari on Wed, 04/22/2015 - 17:08

Bonjour, Je te remercie chef, pour le connecteur 'sendmail' est ce qu'il prédéfini dans le BPM ou bien c vs qui l'avez implementé (un zip...), si oui est ce que je px l'avoir. Je m'excuse je suis très débutante et là je suis entrain d’implémenter un prouve of concept pr mn organisme afin qu'il puisse adopter le BPM Bonita, je compte bcp sur l'appui de cette communauté 0:)

Submitted by yannick.lombardi on Wed, 04/22/2015 - 17:17

Il est prédéfini dans Bonita.

Submitted by meryeme.el.houari on Thu, 04/23/2015 - 00:39

Merci yannick. J'ai configurer l'acteur et j'ai créer un utilisateur miss.lorin dans le portail de bonita (organisation-> utilisateur) mais j'ai pas trouvé comment lui attribuer une adresse mail de façon à ce que quand je coche cette personne mn mail s'envoie. Pourriez vous m'aider? PS : Au niveau du connecteur, j'ai rentré mon propre gmail dans la zone de l'emetteur et j'ai rédigé mon message de test.

Submitted by yannick.lombardi on Thu, 04/23/2015 - 08:57

Pour attribuer une adresse mail à un utilisateur il faut soit passer par le studio, dans le menu Organization, selectionner l'organisation, puis l'utilisateur et aller dans l'onglet "Personal". Soit passer par le portail en mode Administrateur, puis aller dans Organization, selectionner l'utilisateur et éditer ses informations.

Pour le connecteur mail, je rappel qu'il faut utiliser un smtp qui n'est pas bloqué par l'entreprise pour laquelle tu travails. Gmail est souvent bloqué par les entreprises et ça cause des erreurs dans le processus.

Submitted by meryeme.el.houari on Thu, 04/23/2015 - 11:29

J'ai fais ainsi. J'ai ajouté dans les données personnelles et professionnelles le gmail de mon utilisateur. Qd je le coche au niveau de mn portail et je soumet, je trouve rien au niveau de sa boite mail, est ce que je dois changer qlq chose au niveau de la configuration du connecteur (getEmail)?

Submitted by yannick.lombardi on Thu, 04/23/2015 - 11:34

Que dises les logs ? Est ce qu'il y a une erreur ? S'il y a une erreur de Timeout, c'est parce que le SMTP de GMail est bloqué. Il faut donc utiliser le smtp de ton entreprise.

Submitted by meryeme.el.houari on Thu, 04/23/2015 - 11:41

Je travaille mnt ds mn propre poste pour voir cmt ça fonctionne, j'utilse mon propre gmail et une 2eme adresse pour le test. J'ai verifié dans les fichiers logs ils sont vides

Submitted by yannick.lombardi on Thu, 04/23/2015 - 11:49

Si c'est vide c'est pas normal. Il devrait au moins y avoir quelque chose comme :

2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: charset UTF-8
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: message test
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: html true
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: subject test
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: bcc null
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: cc null
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: to ylombardi@machin.com
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: from test@truc.fr
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: userName YLombardi
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: starttlsSupport true
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: sslSupport false
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: smtpPort 25
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: smtpHost mail.monEntreprise.com
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: replyTo null
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: password ******
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: Headers null
2015-04-23 11:45:53 org.bonitasoft.connectors.email.EmailConnector
INFOS: headers []
Submitted by meryeme.el.houari on Thu, 04/23/2015 - 12:02

non il est vide

Submitted by yannick.lombardi on Thu, 04/23/2015 - 13:50

S'il est vide c'est que le processus n'a pas été lancé.

Il s'agit bien du fichier de logs BonitaBPMCommunity-X.Y.Z\workspace\tomcat\logs\bonita.2015-04-23.log ?

1
0
-1

Bonjour,

SVP, j'essais d'introduire le circuit de choix de l'acteur càd la tâche de script-tache de choose user dans mon process mais ça se termine sans pvr acceder à l'interface de chois. En effet, je lie une tâche humaine (au lieu de "début") directement à la tâche script suivi par la tâche de choose user. Est ce que j'ai raté quelque chose?

Je vous remercie d'avane!

1
0
-1

J'ai besoin vraiment d'un appui d'urgence. En fait mon acteur A1 remplie une liste de diffusion contenant les noms des personnes concernées via le portail, l'acteur A2 reçoit cette liste et se charge d'envoyer une copie à chaque personne figurant dans cette liste , c'est une petite partie de mon processus que j'aimerai bien l'automatiser, malgré les recommandations généreuses de Yannick, j'arrive pas à les concrétiser dans mon processus, chui très débutante et je sollicite votre soutien d'urgence .

1
0
-1

Je te remercie fortement Yannick pr ta réactivité greneuse, je me demande si tu px m'aider en concrétisant la démarche expliquée sur un petit processus (une liste de diffusion comprenant 2 personnes par exemple) pr mieux assimiler les étapes si c possible, je te remercie encore une fois chef!!

Comments

Submitted by meryeme.el.houari on Thu, 04/23/2015 - 13:40

S'il vs plait yannick, la donnée 'username' que vs avez défini au niveau du connecteur ça sert à quoi au juste?

Submitted by yannick.lombardi on Thu, 04/23/2015 - 13:51

Le username sert à s'authentifier sur le smtp. Sur gmail il s'agit de l'adresse mail du compte.

Submitted by meryeme.el.houari on Thu, 04/23/2015 - 21:53

Bonjour, Pourriez vs yannick m'expliquer étape par étape comment configurer mes acteurs et mon connecteur dans l'exemple du BPM que vs m'avez proposé. Je vs remercie infiniment pr votre générosité!

Submitted by meryeme.el.houari on Thu, 04/23/2015 - 22:05

En fait g désinstallé Bonita et je l'ai installé et dans le fichier log voilà ce qu'on me donne, qd j’exécute le .bos propsé sachant que j'envoie lun msg depuis l'adresse mail (meryeme.ell.houari@gmail.com) à une l'utilisateur coché dans la tache 'choose user' à qui je lui attribué l'adresse 'hind10000000000@gmail.com) : 2015-04-23 13:59:02 org.bonitasoft.tomcat.H2Listener Infos: Starting H2 server : [-tcp, -tcpPort, 9091, -baseDir, C:\BonitaBPMCommunity-6.5.0\workspace\tomcat/bonita/server/platform/work] 2015-04-23 13:59:25 org.bonitasoft.engine.EngineInitializer Infos: Initializing Bonita Engine... 2015-04-23 13:59:25 org.bonitasoft.engine.EngineInitializer Infos: Initializing Spring context... 2015-04-23 13:59:25 org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext Infos: Refreshing org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@2a7e9db9: startup date [Thu Apr 23 13:59:25 GMT 2015]; root of context hierarchy 2015-04-23 13:59:26 org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext Infos: Refreshing org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@17bc9da5: startup date [Thu Apr 23 13:59:26 GMT 2015]; parent: org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@2a7e9db9 2015-04-23 13:59:51 org.bonitasoft.engine.EngineInitializer Infos: Initializing platform... 2015-04-23 13:59:51 org.bonitasoft.engine.EngineInitializer Infos: Creating platform... 2015-04-23 13:59:53 org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext Infos: Refreshing org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@555c8425: startup date [Thu Apr 23 13:59:53 GMT 2015]; parent: org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@17bc9da5 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaSchedulerFactory Infos: Using default implementation for ThreadExecutor 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Using db table-based data access locking (synchronization). 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: JobStoreCMT initialized. 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaSchedulerFactory Infos: Quartz scheduler 'QuartzScheduler' initialized from an externally provided properties instance. 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaSchedulerFactory Infos: Quartz scheduler version: 2.2.1 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.SchedulerServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | Start scheduler 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Freed 0 triggers from 'acquired' / 'blocked' state. 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Recovering 0 jobs that were in-progress at the time of the last shut-down. 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Recovery complete. 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Removed 0 'complete' triggers. 2015-04-23 14:00:00 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Removed 0 stale fired job entries. 2015-04-23 14:00:00 org.bonitasoft.engine.api.impl.transaction.platform.ActivateTenant Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | Starting event handling job with frequency : 0/5 * * * * ? 2015-04-23 14:00:00 org.bonitasoft.engine.api.impl.transaction.platform.ActivateTenant Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | Starting clean invalid sessions job with frequency : 0 0 */2 * * ? 2015-04-23 14:00:01 org.bonitasoft.engine.EngineInitializer Infos: Platform initialized successfully. 2015-04-23 14:00:01 org.bonitasoft.engine.EngineInitializer Infos: Starting platform... 2015-04-23 14:00:01 org.bonitasoft.engine.api.impl.PlatformAPIImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | Start service of platform : org.bonitasoft.engine.classloader.ClassLoaderServiceImpl 2015-04-23 14:00:01 org.bonitasoft.engine.api.impl.PlatformAPIImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | Start service of platform : org.bonitasoft.engine.cache.ehcache.PlatformEhCacheCacheService 2015-04-23 14:00:01 org.bonitasoft.engine.execution.work.RestartFlowNodesHandler Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Restarting flow nodes... 2015-04-23 14:00:01 org.bonitasoft.engine.execution.work.RestartFlowNodesHandler Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Found 0 flow nodes to restart on tenant 1 2015-04-23 14:00:01 org.bonitasoft.engine.execution.work.RestartProcessHandler Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Found 0 process to restart on tenant 1 2015-04-23 14:00:01 org.bonitasoft.engine.execution.work.BPMEventWorksHandler Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Reinitializing message instances in non-stable state to make them reworked by BPMEventHandlingJob 2015-04-23 14:00:01 org.bonitasoft.engine.execution.work.BPMEventWorksHandler Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | 0 message instances found and reset. 2015-04-23 14:00:01 org.bonitasoft.engine.execution.work.BPMEventWorksHandler Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Reinitializing waiting message events in non-stable state to make them reworked by BPMEventHandlingJob 2015-04-23 14:00:01 org.bonitasoft.engine.execution.work.BPMEventWorksHandler Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | 0 waiting message events found and reset. 2015-04-23 14:00:01 org.bonitasoft.engine.api.impl.transaction.SetServiceState Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.cache.ehcache.EhCacheCacheService on tenant with ID 1 2015-04-23 14:00:01 org.bonitasoft.engine.api.impl.transaction.SetServiceState Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.command.api.impl.CommandServiceImpl on tenant with ID 1 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='isAllowedToStartProcess', description='Check if one of many actors can be allowed to start process.(who's the process Initiator)', implementation='org.bonitasoft.engine.external.permission.IsAllowedToStartProcess'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='isAllowedToSeeInstanciationForm', description='Check if one of many actors can be allowed to read Instanciation form.', implementation='org.bonitasoft.engine.external.permission.IsAllowedToSeeInstanciationForm'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='multipleStartPointsProcessCommand', description='Advanced start process using multiple start points.', implementation='org.bonitasoft.engine.command.MultipleStartPointsProcessCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='searchArchivedTasksSupervisedBy', description='Returns the list of archived user tasks of process definition supervised by a user. Use parameter keys SUPERVISOR_ID_KEY: id of the supervisor, SEARCH_OPTIONS_KEY: the object containing all the search parameters', implementation='org.bonitasoft.engine.external.task.supervisor.SearchArchivedTasksSupervisedBy'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='createSupervisor', description='Create process supervisor.', implementation='org.bonitasoft.engine.external.process.CreateSupervisor'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='importProfilesCommand', description='Import profiles, profileEntries and profile mappings', implementation='org.bonitasoft.engine.external.web.profile.command.ImportProfilesCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='isUserProcessSupervisor', description='Get if the user a supervisor of processDefinition. Use parameter keys USER_ID_KEY, PROCESS_DEFINITION_ID_KEY', implementation='org.bonitasoft.engine.external.process.IsUserProcessSupervisor'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='executeActionsAndTerminate', description='execute actions and terminate a user task instance', implementation='org.bonitasoft.engine.external.web.forms.ExecuteActionsAndTerminateTask'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='deleteEntityMembersCommand', description='Delete all Entity member mappings associated with provided externalId, for specific Discriminator. Parameter keys: EXTERNAL_ID_KEY: external id provided as is by the external system, DISCRIMINATOR_ID_KEY: the discriminator to isolate the different functional notions.', implementation='org.bonitasoft.engine.external.identitymapping.DeleteEntityMembersCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='addEntityMemberCommand', description='Adds a Entity member to the provided identity notions. Parameter keys: EXTERNAL_ID_KEY: Entity member id provided as is by the external system, userId: -1 is not needed, roleId: -1 is not needed, groupId: -1 is not needed', implementation='org.bonitasoft.engine.external.identitymapping.AddEntityMemberCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='deleteSupervisor', description='Delete process supervisor. Use parameter key SUPERVISOR_ID_KEY', implementation='org.bonitasoft.engine.external.process.DeleteSupervisor'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='advancedStartProcessCommand', description='Advanced start process.', implementation='org.bonitasoft.engine.command.AdvancedStartProcessCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='isAllowedToSeeOverviewForm', description='Check if one of many actors can be allowed to read overview form.', implementation='org.bonitasoft.engine.external.permission.IsAllowedToSeeOverviewForm'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='searchEntityMembersCommand', description='Searches Entity member mappings: Parameter keys: DISCRIMINATOR_ID_KEY: the discriminator to isolate the different functional notions, SEARCH_OPTIONS_KEY: the Search options to filter and sort the results, MEMBER_TYPE_KEY: Member Type to search for (USER, GROUP, ROLE, or MEMBERSHIP). ', implementation='org.bonitasoft.engine.external.identitymapping.SearchEntityMembersCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='getSupervisor', description='Get process supervisor. Use parameter key SUPERVISOR_ID_KEY', implementation='org.bonitasoft.engine.external.process.GetSupervisor'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='isInvolvedInHumanTask', description='Return true if a user is involved in a specific human task, false otherwise. Use parameter key USER_ID_KEY and HUMAN_TASK_INSTANCE_ID_KEY', implementation='org.bonitasoft.engine.external.permission.IsInvolvedInHumanTask'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='searchEntityMembersForUserCommand', description='Searches Entity member mappings: Parameter keys: USER_ID_KEY: the ID of the user to search Entity members for (directly associated, or through role or group), DISCRIMINATOR_ID_KEY: the discriminator to isolate the different functional notions, SEARCH_OPTIONS_KEY: the Search options to filter and sort the results.', implementation='org.bonitasoft.engine.external.identitymapping.SearchEntityMembersForUserCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='searchWaitingEventsCommand', description='Search waiting events. Parameter keys: searchOptions.', implementation='org.bonitasoft.engine.command.system.SearchWaitingEventsCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='searchSCommentSupervisedBy', description='Returns the list of comments for processes supervised by a user. One mandatory parameter: supervisorId: ID of the user supervisor of the processes on which comments are.', implementation='org.bonitasoft.engine.external.comment.SearchCommentsSupervisedBy'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='canStartProcessDefinition', description='Return true if the user can start the process, false otherwise. Use parameter key USER_ID_KEY and PROCESS_DEFINITION_ID_KEY', implementation='org.bonitasoft.engine.external.permission.CanStartProcessDefinition'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='isAllowedToStartProcesses', description='Check if the user can be allowed to start all of processes.', implementation='org.bonitasoft.engine.external.permission.IsAllowedToStartProcesses'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='searchProcessDefinitionsSupervisedBy', description='Searching processeDefinitions whose supervisor is the specified user.', implementation='org.bonitasoft.engine.external.supervisor.SearchProcessDefinitionsSupervisedBy'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='searchProcessSupervisors', description='Search process supervisor for process definition.', implementation='org.bonitasoft.engine.external.process.SearchProcessSupervisors'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='searchAssignedTasksSupervisedBy', description='Returns the list of assigned user tasks of process definition supervised by a user.', implementation='org.bonitasoft.engine.external.task.supervisor.SearchAssignedTasksSupervisedBy'} 2015-04-23 14:00:02 org.bonitasoft.engine.command.api.impl.CommandServiceImpl Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Creating missing system command: CommandDeployment{name='removeEntityMemberCommand', description='Removes a Entity member mapping: ENTITY_MEMBER_ID_KEY: Entity member id to remove', implementation='org.bonitasoft.engine.external.identitymapping.RemoveEntityMemberCommand'} 2015-04-23 14:00:02 org.bonitasoft.engine.api.impl.transaction.SetServiceState Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl on tenant with ID 1 2015-04-23 14:00:02 org.bonitasoft.engine.api.impl.transaction.SetServiceState Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.service.impl.PermissionServiceImpl on tenant with ID 1 2015-04-23 14:00:02 org.bonitasoft.engine.api.impl.transaction.SetServiceState Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.profile.impl.ProfileServiceImpl on tenant with ID 1 2015-04-23 14:00:02 org.bonitasoft.engine.api.impl.transaction.SetServiceState Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.tracking.TimeTracker on tenant with ID 1 2015-04-23 14:00:02 org.bonitasoft.engine.tracking.TimeTracker Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Starting TimeTracker... 2015-04-23 14:00:02 org.bonitasoft.engine.tracking.TimeTracker Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | TimeTracker started. 2015-04-23 14:00:02 org.bonitasoft.engine.api.impl.transaction.SetServiceState Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.work.ExecutorWorkService on tenant with ID 1 2015-04-23 14:00:02 org.bonitasoft.engine.handler.SchedulerServiceRestartHandler Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | Rescheduling all scheduler Triggers in ERROR state 2015-04-23 14:00:02 org.bonitasoft.engine.api.impl.StarterThread Infos: THREAD_ID=23 | HOSTNAME=H208-05-04-016 | Restarting elements in the Thread 41 2015-04-23 14:00:02 org.bonitasoft.engine.EngineInitializer Infos: Platform started successfully 2015-04-23 14:00:02 org.bonitasoft.engine.EngineInitializer Infos: Initialization of Bonita Engine done! ( took 36938ms) 2015-04-23 14:00:02 org.bonitasoft.engine.api.impl.StarterThread Infos: THREAD_ID=41 | HOSTNAME=H208-05-04-016 | Restarting elements for tenant 1 2015-04-23 14:00:02 org.bonitasoft.engine.execution.work.RestartFlowNodesHandler Infos: THREAD_ID=41 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Restarting 0 flow nodes for tenant 1 2015-04-23 14:00:02 org.bonitasoft.engine.execution.work.RestartProcessHandler Infos: THREAD_ID=41 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Restarting 0 processes for tenant 1 2015-04-23 14:00:02 org.bonitasoft.engine.profile.ProfilesUpdaterRestartHandler Infos: THREAD_ID=41 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | Default profiles are up to date 2015-04-23 14:00:05 org.bonitasoft.console.server.listener.StudioWatchdogListener Avertissement: Bonita Studio watchdog process has started on 6969 with a delay of 20000ms 2015-04-23 14:05:02 org.bonitasoft.engine.api.impl.ProcessAPIImpl Infos: THREAD_ID=47 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | The user <walter.bates> has installed process in version <1.0> with id <6167122559138199876> 2015-04-23 14:05:18 org.bonitasoft.engine.api.impl.ProcessManagementAPIImplDelegate Infos: THREAD_ID=56 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | The user <walter.bates> has deleted process with id = <6167122559138199876> 2015-04-23 14:05:21 org.bonitasoft.engine.api.impl.ProcessAPIImpl Infos: THREAD_ID=56 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | The user <walter.bates> has installed process in version <1.0> with id <7982732202097536932> 2015-04-23 14:05:21 org.bonitasoft.engine.api.impl.transaction.process.EnableProcess Infos: THREAD_ID=56 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | The user <walter.bates> has enabled process in version <1.0> with id <7982732202097536932> 2015-04-23 14:05:39 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bonita] Infos: RestletServlet: [Restlet] ServerServlet: component class is null 2015-04-23 14:05:42 org.bonitasoft.forms.server.provider.impl.FormServiceProviderImpl Infos: Username<walter.bates> Form<testMailListUsers--1.0$entry> Process An attempt was made by user walter.bates to access the instantiation form of process 7982732202097536932 2015-04-23 14:06:05 org.bonitasoft.forms.server.provider.impl.FormServiceProviderImpl Infos: Username<hind.sami> Form<testMailListUsers--1.0$entry> Process There are no steps waiting in inbox. 2015-04-23 14:06:06 org.bonitasoft.engine.api.impl.ProcessStarter Infos: THREAD_ID=51 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | The user <hind.sami> has started the process instance <1> of process in version <1.0> and id <7982732202097536932> 2015-04-23 14:06:20 org.bonitasoft.engine.external.web.forms.ExecuteActionsAndTerminateTask Infos: THREAD_ID=58 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | The user <hind.sami> has executed the task [name = , display name = , id = <3>, parent process instance = <1>, root process instance = <1>, process definition = <7982732202097536932>] 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: charset UTF-8 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: message iujs 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: html true 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: subject zszs 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: bcc null 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: cc null 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: to null 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: from hind10000000000@gmail.com 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: userName hind.sami 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: starttlsSupport false 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: sslSupport true 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: smtpPort 465 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: smtpHost smtp.gmail.com 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: replyTo null 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: password ****** 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: Headers null 2015-04-23 14:06:20 org.bonitasoft.connectors.email.EmailConnector Infos: headers [] 2015-04-23 14:06:20 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork Grave: THREAD_ID=98 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 5, connectorDefinitionName = sendMail] failed. The failure will be handled. 2015-04-23 14:06:20 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork Grave: THREAD_ID=98 | HOSTNAME=H208-05-04-016 | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=7982732202097536932 | PROCESS_NAME=testMailListUsers | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1 | ROOT_PROCESS_INSTANCE_ID=1 | FLOW_NODE_DEFINITION_ID=-4850762687303176833 | FLOW_NODE_INSTANCE_ID=5 | FLOW_NODE_NAME=Send mail | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=sendMail | CONNECTOR_INSTANCE_ID=2 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorValidationException: org.bonitasoft.engine.connector.ConnectorValidationException: Error validating connector org.bonitasoft.connectors.email.EmailConnector: No recipient address(es) is set (either in 'to', 'cc' or 'bcc' " org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=7982732202097536932 | PROCESS_NAME=testMailListUsers | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1 | ROOT_PROCESS_INSTANCE_ID=1 | FLOW_NODE_DEFINITION_ID=-4850762687303176833 | FLOW_NODE_INSTANCE_ID=5 | FLOW_NODE_NAME=Send mail | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=sendMail | CONNECTOR_INSTANCE_ID=2 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorValidationException: org.bonitasoft.engine.connector.ConnectorValidationException: Error validating connector org.bonitasoft.connectors.email.EmailConnector: No recipient address(es) is set (either in 'to', 'cc' or 'bcc'

at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:332)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:150)
at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:111)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:125)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)
at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47)
at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorValidationException: org.bonitasoft.engine.connector.ConnectorValidationException: Error validating connector org.bonitasoft.connectors.email.EmailConnector: No recipient address(es) is set (either in 'to', 'cc' or 'bcc'

at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:127)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:324)
... 14 more

Caused by: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorValidationException: org.bonitasoft.engine.connector.ConnectorValidationException: Error validating connector org.bonitasoft.connectors.email.EmailConnector: No recipient address(es) is set (either in 'to', 'cc' or 'bcc'

at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.getValue(ConnectorExecutorImpl.java:151)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:121)
... 15 more

Caused by: org.bonitasoft.engine.connector.exception.SConnectorValidationException: org.bonitasoft.engine.connector.ConnectorValidationException: Error validating connector org.bonitasoft.connectors.email.EmailConnector: No recipient address(es) is set (either in 'to', 'cc' or 'bcc'

at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.validate(SConnectorAdapter.java:63)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:201)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:178)
at java.util.concurrent.FutureTask.run(Unknown Source)
... 3 more

Caused by: org.bonitasoft.engine.connector.ConnectorValidationException: Error validating connector org.bonitasoft.connectors.email.EmailConnector: No recipient address(es) is set (either in 'to', 'cc' or 'bcc'

at org.bonitasoft.connectors.email.EmailConnector.validateInputParameters(EmailConnector.java:183)
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.validate(SConnectorAdapter.java:61)
... 6 more

2015-04-23 15:32:43 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Handling 1 trigger(s) that missed their scheduled fire-time. 2015-04-23 19:04:18 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Handling 1 trigger(s) that missed their scheduled fire-time. 2015-04-23 19:05:18 org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT Infos: Handling 1 trigger(s) that missed their scheduled fire-time.

Submitted by meryeme.el.houari on Thu, 04/23/2015 - 23:32

Bsr Yannick, ça a finalement marché ouuuuf, je te remercie uinfinement. En fait j'ai remplie les informations de l'authentification par mon mail et sn mot de passe en plus j'ai configuré des trucs de sécurités au niveau de cet email et ça a marché. Je te remercie infinement! 0:)

Submitted by meryeme.el.houari on Fri, 04/24/2015 - 14:52

Bonjour, S'il vous plait, est ce qu'il y'a possibilité d’afficher les informations qui circulent dans le processus dans un tableau. Par exemple dans mon cas afficher un tableau qui montre les utilisateurs a qui on a envoyé le document, le non du document joint et l'heur.

Submitted by yannick.lombardi on Fri, 04/24/2015 - 14:57

Il est possible d'ajouter ces informations dans les logs de bonita en utilisant le script :

import java.util.logging.Logger;
Logger logger= Logger.getLogger("org.bonitasoft");
logger.severe("Texte à afficher dans les logs");

Sinon il est aussi possible de créer soit même les tableaux dans une tâche du procesus. Il faudra aussi créer des scripts pour ça et ça dépendra totalement de ce que vous voulez faire.

Submitted by meryeme.el.houari on Fri, 04/24/2015 - 16:33

Si vous pouvez m'aider en me proposant un petit exemple concernant le processus proposé. c'est à dire afficher le noms des utilisateurs à qui on a envoyé le mail (ou choisi dans la liste) + nom du document joint+ Date d'envois.

Submitted by yannick.lombardi on Fri, 04/24/2015 - 16:41
    import java.util.logging.Logger;
    Logger logger= Logger.getLogger("org.bonitasoft");
    logger.severe("Liste destinataires : "+userList);
    logger.severe("Document joint : "+document.getName());
    Date today = new Date();
    logger.severe("Date envoi : "+today.toString());
Submitted by meryeme.el.houari on Fri, 04/24/2015 - 16:54

Le but est de permettre à mon utilisateur de visualiser ces informations sur le portail (comme un rapport en quelque sorte). SVP comment puis je intégrer ceci au niveau de la tâche comme vous avez dis. Si vs pouvez me proposer une petite manip suite de la démo .bos testMailListUsers pour afficher ces informations. Je vous remercie Yannick :)

Notifications