6 Replies Latest reply on May 17, 2013 6:01 AM by nicols

    CC field in Email service task

    javalearner

      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.

        • 1. Re: CC field in Email service task
          javalearner

          Please help me on this.

          • 2. Re: CC field in Email service task
            nicols

            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

              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

                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.

                1 of 1 people found this helpful
                • 5. Re: CC field in Email service task
                  javalearner

                  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

                    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.