Activiti Explorer and email

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2013 01:10 PM
However, the activiti.cfg.xml is for only when I need to use the Activiti Engine. How do I deploy a process using Activiti Explorer that has email task? Where do I need to tell Activiti Explorer to look for my email configuration?
Thank you,
Tan
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2013 03:03 PM
In tomcat\web-apps\activiti-explorer\WEB-INF\activti-standalone-context.xml, look for
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="true" />
<property name="customFormTypes">
<list>
<bean class="org.activiti.explorer.form.UserFormType"/>
</list>
</property>
(====This is where you add the below block====)
</bean>
add this block:
<property name="mailServerHost" value="smtp.mail.yahoo.com" />
<property name="mailServerPort" value="465" />
<property name="mailServerDefaultFrom" value="xxx@yahoo.com" />
<property name="mailServerUsername" value="xxxx@yahoo.com" />
<property name="mailServerPassword" value="password" />
<property name="mailServerUseSSL" value="true" />
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2013 05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2013 10:47 AM
For those people using just the activiti explorer, THERE IS NO activiti.cfg.xml.
Furthermore, the user guide states: "Following properties can be set in the activiti.cfg.xml configuration file: " but .xml files are expected to be composed of XML tags… not properties. So how are we supposed to set those properties? shall we just pick a random element name and set the properties as xml attributes? shall we figure out to put <property> elements under some specific node element?
there is a lot of room for improvement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2013 04:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2013 03:01 PM
Just my 2c.
Other than this one I really like the way documentation is written.
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2014 05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2014 04:11 AM
Documentation fixes are a perfect way to start contributing to an open source project!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2015 07:05 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2015 01:31 PM
1. Created an activiti workflow process in eclipse juno
2. Uploaded the .bpm file, and 2 forms as a zip on activiti explorer.
3. Started the process on activiti explorer
4. While invoking an email task received following exception-
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : localhost:25
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)
at org.apache.commons.mail.Email.send(Email.java:1267)
at org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.execute(MailActivityBehavior.java:86)
… 104 more
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at javax.mail.Service.connect(Service.java:118)
at javax.mail.Transport.send0(Transport.java:188)
at javax.mail.Transport.send(Transport.java:118)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232)
… 106 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSock
My activiti.cfg.xml has following properties set in eclipse project folder-
<property name="databaseSchemaUpdate" value="true"/>
<property name="mailServerHost" value="localhost"></property>
<property name="mailServerPort" value="25"></property>
<property name="mailServerDefaultFrom" value=""></property>
<property name="mailServerUsername" value=""></property>
<property name="mailServerPassword" value=""></property>
<property name="mailServerUseSSL" value="false"></property>
I don't know if they are actually getting reflected in my deployed code on activity explorer. Please advise I'm stuck as to if I am deploying correctly or as expected.
