-
1. Re: CC field in Email service task
javalearner May 16, 2013 8:26 AM (in response to javalearner)Please help me on this.
-
2. Re: CC field in Email service task
nicols May 16, 2013 11:23 AM (in response to javalearner)Hi Rajesh,
As we can see in the project drools-core, you can find the definition of the Email WorkItem :
[
"name" : "Email",
"parameters" : [
"From" : new StringDataType(),
"To" : new StringDataType(),
"Subject" : new StringDataType(),
"Body" : new StringDataType()
],
"displayName" : "Email",
"icon" : "icons/import_statement.gif",
"customEditor" : "org.drools.eclipse.flow.common.editor.editpart.work.EmailCustomEditor"
],
There is no parameter for CC / BBC.
But you can easily create your own WorkItem with this documentation : http://docs.jboss.org/jbpm/v5.4/userguide/ch.domain-specific-processes.html
Regards,
Nicolas.
-
3. Re: CC field in Email service task
javalearner May 17, 2013 4:30 AM (in response to nicols)Thanks Nicolas Louis.
Ok i will implement new Service Handler according to my requirement.
I have few more queries,
If i am implementing my own service hanlder means i have to write my own custom workitem handler, right??
If yes, can i call the methods which talks to my db from my custom workitem handler? I mean is it a good approach?
Please suggest me on this.
Thanks in advance.
Thanks,
Rajesh
-
4. Re: CC field in Email service task
nicols May 17, 2013 4:37 AM (in response to javalearner)1 of 1 people found this helpfulHi Rajesh,
Yes, you have to write your own workitem handler and of course you can call your own database! Your can do what you want in your handler.
I think it the best approach to do this.
Regards,
Nicolas.
-
5. Re: CC field in Email service task
javalearner May 17, 2013 5:44 AM (in response to nicols)Thanks for the quick response Nicolas.
One more query Nicolas, can we have email template option in the JBPM 5.4?
I mean, i would like to configure the email body content in a file and want access that. is it posssible?
Thanks,
Rajesh.
-
6. Re: CC field in Email service task
nicols May 17, 2013 6:01 AM (in response to javalearner)If you use your own custom workitem, of course yes, you can use file template.
With the Email Handler of Jbpm, i'm not sure, i never try this. But do your try to put a parameter inside the content like #{content} ?
You could insert the text during the workflow process.
Regards,
Nicolas.