Print service

hi, i have problem in Camunda bpm mails start process

Hello @Sukanya, welcome to the forum!
In your expression ‘mail’ should refer to a bean (Spring bean or a CDI bean) named ‘mail’ having the method getAttachments(). As this bean is obviously not exposed with this name the expression resolver is unable to execute that expression and fails.

 //for Spring 
 //@Component("mail) or @Service("mail")
 // for a CDI container e.g.
 @Named("mail")
 public class MyMailComponent{
     public Attachements getAttachments(){
         return this.attachments;
     }
}