[jBPM] - Error sending email in jbpm-4.2
by carlos mauricio jaramillo henao
carlos mauricio jaramillo henao [http://community.jboss.org/people/cmjhingeniero] created the discussion
"Error sending email in jbpm-4.2"
To view the discussion, visit: http://community.jboss.org/message/544967#544967
--------------------------------------------------------------
Hi
Currently I have a problem, what happens is that I want to notify a user by e-mail that has a task. I searched lot on the web but I can not find the problem. I'm using jbpm-4.2 with apache-tomcat-6.0
Example process
<start g="13,13,48,48" name="inicio">
<transition to="enviar"/>
</start>
<mail g="274,755,86,40" name="enviar">
<to addresses=" mailto:carlosj@audifarma.com.co carlosj(a)audifarma.com.co"/>
<cc addresses=" mailto:cmjhingeniero@yahoo.es cmjhingeniero(a)yahoo.es"/>
<subject>Prueba</subject>
<text>Prueba</text>
<transition to="despacho caf"/>
</mail>
<task candidate-groups="caf" form="com/procesos/interfaces/nCaf.jsp" g="352,695,92,52" name="despacho caf">
<notification>
<to addresses=" mailto:carlosj@audifarma.com.co carlosj(a)audifarma.com.co"/>
<cc addresses=" mailto:cmjhingeniero@yahoo.es cmjhingeniero(a)yahoo.es"/>
<subject>Prueba 2</subject>
<text>Prueba 2</text>
</notification>
<transition to="fin"/>
</task>
<end g="1082,228,48,48" name="fin"/>
Archive jbpm.cfg.xml
<jbpm-configuration>
<import resource="jbpm.default.cfg.xml" />
<import resource="jbpm.businesscalendar.cfg.xml" />
<import resource="jbpm.tx.hibernate.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.jobexecutor.cfg.xml" />
<import resource="jbpm.mail.templates.examples.xml" />
<string name='resource.mail.properties' value='jbpm.mail.properties' />
</jbpm-configuration>
Archive jbpm.mail.properties
mail.smtp.host 10.1.1.20
mail.smtp.port 25
mail.from mailto:carlosj@audifarma.com.co carlosj(a)audifarma.com.co
Help me not to review. Annex the error in the tomcat log
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/544967#544967]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months
Re: [jboss-user] [jBPM Development] - SubProcess signaling issue
by HuiSheng Xu
HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"SubProcess signaling issue"
To view the discussion, visit: http://community.jboss.org/message/544966#544966
--------------------------------------------------------------
Hi Maceij,
It is a very common problem when we use sub-process, because there is no way to get a sub-process from it's super-process.
Consider about which of using is better:
1.
//
// Is there any risk for a session already closed exception?
//
ProcesssInstance subProcessInstance = execution.getSubProcessInstance();
if (subProcessInstance != null) {
executionService.signalExecutionById(subProcessInstance.getId());
}.
2.
String subProcessInstanceId = execution.getSubProcessInstanceId();
if (subProcessInstanceId != null) {
executionService.signalExecutionById(subProcessInstanceId);
}
3.
if (execution.hasSubProcessInstance()) {
executionService.signalExecutionById(execution.getSubProcessInstanceId());
}
4.
// Don't like this way, need to add too much methods in API.
executionService.signalSubProcessInstance(executionId);
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/544966#544966]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months
Re: [jboss-user] [jBPM] - Defining a list in a task form, but How?
by Gerardo Navarro Suarez
Gerardo Navarro Suarez [http://community.jboss.org/people/GerardoNS] replied to the discussion
"Defining a list in a task form, but How?"
To view the discussion, visit: http://community.jboss.org/message/544958#544958
--------------------------------------------------------------
Hola Alejandro,
thank you very much for your help. But I've difficulties to install/integrate the 2 jars (gravels and jbpm4jsf) into my jBPM deployment.
So as you noticed I'm also a newbie in this world. So where do I have to copy the 2 jars in order to use the tags in the code snippet? What do I have to do?
I already tried this snippet in my xhtml page, but an error occurred saying "<j4j:loadProcessInstance> Parent component is not an ActionSource". I assume that the problem is caused by the missing integrated jars.
So I did another try and left out the 2 first tags of the snippet and inserted only these tags into the xhtml. You have to know that the process has a process variable "list" which is a StringArray containing the names of the applicants.
<gd:repeat value="#{vars['list']}" var="applicant">
<h:outputText value="#{applicant}"/>
</gd:repeat>
So after all this implementation doesn't cause any problem at all and the page were rendered, but no applicant was listed. Is the usage of the tags and the process variable OK?
I would really appreciate if you or someone could help me again.
Greetings,
Gerardo
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/544958#544958]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months