Discussion:
[jboss-user] [jBPM] - CC field in Email service task
Rajesh P
2013-05-15 08:48:24 UTC
Permalink
Rajesh P [https://community.jboss.org/people/javalearner] created the discussion

"CC field in Email service task"

To view the discussion, visit: https://community.jboss.org/message/817779#817779

--------------------------------------------------------------
Hi,
I am using Email service task provided in the Eclipse Plugin. In that i don't find CC and BCC fields to mention CC and BCC mail ids.
are they available in the emai service task?
If yes, can you please let me know the way to use/find them.

If i want those fields how can i incorporate them. Please help me on this.

Thanks,
Rajesh.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/817779#817779]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Rajesh P
2013-05-16 12:26:29 UTC
Permalink
Rajesh P [https://community.jboss.org/people/javalearner] created the discussion

"Re: CC field in Email service task"

To view the discussion, visit: https://community.jboss.org/message/817980#817980

--------------------------------------------------------------
Please help me on this.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/817980#817980]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Nicolas Louis
2013-05-16 15:23:43 UTC
Permalink
Nicolas Louis [https://community.jboss.org/people/nicols] created the discussion

"Re: CC field in Email service task"

To view the discussion, visit: https://community.jboss.org/message/818026#818026

--------------------------------------------------------------
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 http://docs.jboss.org/jbpm/v5.4/userguide/ch.domain-specific-processes.html

Regards,

Nicolas.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818026#818026]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Rajesh P
2013-05-17 08:30:36 UTC
Permalink
Rajesh P [https://community.jboss.org/people/javalearner] created the discussion

"Re: CC field in Email service task"

To view the discussion, visit: https://community.jboss.org/message/818130#818130

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818130#818130]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Nicolas Louis
2013-05-17 08:37:21 UTC
Permalink
Nicolas Louis [https://community.jboss.org/people/nicols] created the discussion

"Re: CC field in Email service task"

To view the discussion, visit: https://community.jboss.org/message/818132#818132

--------------------------------------------------------------
Hi 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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818132#818132]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Rajesh P
2013-05-17 09:44:31 UTC
Permalink
Rajesh P [https://community.jboss.org/people/javalearner] created the discussion

"Re: CC field in Email service task"

To view the discussion, visit: https://community.jboss.org/message/818170#818170

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818170#818170]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Nicolas Louis
2013-05-17 10:01:22 UTC
Permalink
Nicolas Louis [https://community.jboss.org/people/nicols] created the discussion

"Re: CC field in Email service task"

To view the discussion, visit: https://community.jboss.org/message/818175#818175

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818175#818175]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...