Hi, I tried the same sample but I am receiving empty mail body. I get the mail subject correctly but mail body is missing. Appreciate any help on this.
Thanks, Waruna On Thu, May 19, 2016 at 11:10 AM, Himasha Guruge <himas...@wso2.com> wrote: > Hi Luis, > > I have tested email task in BPS 3.5.1 server with following steps. > > 1. Add the configurations in <BPS_HOME>/repository/conf/activti.xml. > Please look into attached, for further reference. > 2. Add required jars mentioned in [1] into > <BPS_HOME>/repository/components/lib. > 3. Deploy the sample, and start the process from bpmn-explorer. > > As Amal mentioned make sure you have enabled less secure apps to access. > I'm also attaching the sample I used. (MyProcess.bar) > > [1] https://docs.wso2.com/display/BPS351/Working+With+Email+Task > > Thanks, > Himasha > > > On Thu, May 19, 2016 at 10:08 AM, Nandika Jayawardana <nand...@wso2.com> > wrote: > >> >> ---------- Forwarded message ---------- >> From: Amal Gunatilake <am...@wso2.com> >> Date: Wed, May 18, 2016 at 9:29 PM >> Subject: Re: WSO2 BPS - Email Task >> To: Luis Calderon Rodríguez <luis.calde...@proxus.pe> >> Cc: Nandika Jayawardana <nand...@wso2.com>, Hasitha Hiranya < >> hasit...@wso2.com>, Miler Alberto García Villanueva < >> miler.gar...@proxus.pe> >> >> >> Hi Luis, >> >> Seems like you have everything in order from BPS side configurations. >> >> I can only think of one more configuration that is missing on your steps. >> Have you enabled Gmail security settings[1] to allow less secure apps to >> access? >> >> [1] https://support.google.com/accounts/answer/6010255?hl=en >> >> Best regards, >> Amal. >> >> On Wed, May 18, 2016 at 9:05 PM, Luis Calderon Rodríguez < >> luis.calde...@proxus.pe> wrote: >> >>> Hi Amal, >>> >>> >>> Thanks for answering this mail. >>> >>> >>> If I have installed the latest version: >>> /opt/wso2bps-3.5.1/repository/deployment/server/ >>> >>> >>> Copy the dependencies jar : >>> /opt/wso2bps-3.5.1./repository/components/lib/ >>> >>> >>> org.apache.commons:commons-email:jar:1.3 >>> >>> javax.mail:mail:jar:1.4.7 >>> >>> javax.activation:activation:jar:1.1 >>> >>> >>> Then, set the parameters in the file activiti.xml: >>> /opt/wso2bps-3.5.1./repository/conf/ >>> >>> >>> <property name="mailServerHost" value="smtp.gmail.com"/> >>> >>> <property name="mailServerPort" value="456"/> >>> >>> <property name="mailServerDefaultFrom" value="x...@gmail.com"/> >>> >>> <property name="mailServerUseSSL" value="true"/> >>> >>> <property name="mailServerUsername" value="x...@gmail.com"/> >>> >>> <property name="mailServerPassword" value="xyz"/> >>> >>> >>> >>> Finally restart the server, but still the problem persists. >>> >>> >>> Best regards >>> Luis >>> >>> 2016-05-18 1:09 GMT-05:00 Amal Gunatilake <am...@wso2.com>: >>> >>>> Hi Luis, >>>> >>>> There was a dependency issue[1] in email task which we fixed in BPS >>>> 3.5.1 release. Could you please try it out with the latest BPS release? >>>> This should probably resolve the error. >>>> >>>> [1] https://wso2.org/jira/browse/BPS-978 >>>> >>>> Best regards, >>>> Amal. >>>> >>>> On Wed, May 18, 2016 at 11:13 AM, Luis Calderon Rodríguez < >>>> luis.calde...@proxus.pe> wrote: >>>> >>>>> Hi guys, >>>>> >>>>> >>>>> I hope you are very well. >>>>> >>>>> >>>>> I've had some problems with mail tasks,I have this error message: “Error >>>>> starting process: >>>>> org.apache.commons.mail.Email.setSSLOnConnect(Z)Lorg/apache/commons/mail/Email >>>>> ” >>>>> >>>>> >>>>> >>>>> I 'm using these jar: >>>>> >>>>> >>>>> >>>>> org.apache.commons:commons-email:jar:1.3 >>>>> >>>>> javax.mail:mail:jar:1.4.7 >>>>> >>>>> javax.activation:activation:jar:1.1 >>>>> >>>>> >>>>> activity.xml >>>>> >>>>> ================================================================== >>>>> >>>>> <beans xmlns="http://www.springframework.org/schema/beans" >>>>> >>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>> >>>>> xsi:schemaLocation="http://www.springframework.org/schema/beans >>>>> http://www.springframework.org/schema/beans/spring-beans.xsd"> >>>>> >>>>> >>>>> >>>>> <bean id="processEngineConfiguration" >>>>> class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"> >>>>> >>>>> >>>>> >>>>> <property name="dataSourceJndiName" value="jdbc/ActivitiDB"/> >>>>> >>>>> <property name="databaseSchemaUpdate" value="true"/> >>>>> >>>>> <property name="jobExecutorActivate" value="true"/> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> <property name="mailServerHost" value="smtp.gmail.com"/> >>>>> >>>>> <property name="mailServerPort" value="456"/> >>>>> >>>>> <property name="mailServerDefaultFrom" value="x...@gmail.com >>>>> "/> >>>>> >>>>> <property name="mailServerUseSSL" value="true"/> >>>>> >>>>> <property name="mailServerUsername" value="x...@gmail.com"/> >>>>> >>>>> <property name="mailServerPassword" value="abcABC123"/> >>>>> >>>>> >>>>> >>>>> </bean> >>>>> >>>>> >>>>> >>>>> <bean id="bpmnDataPublisherConfiguration"> >>>>> >>>>> <property name="dataPublishingEnabled" value="false"/> >>>>> >>>>> </bean> >>>>> >>>>> >>>>> >>>>> <bean id="restClientConfiguration"> >>>>> >>>>> <property name="maxTotalConnections" value="200"/> >>>>> >>>>> <property name="maxConnectionsPerRoute" value="200"/> >>>>> >>>>> </bean> >>>>> >>>>> >>>>> >>>>> <bean id="activitiInstanceDeleteConfig"> >>>>> >>>>> <property name="maxCount" value="1000"/> >>>>> >>>>> </bean> >>>>> >>>>> >>>>> >>>>> </beans> >>>>> >>>>> ====================================================================== >>>>> >>>>> >>>>> Thanks >>>>> >>>>> Luis >>>>> >>>>> >>>>> >>>>> >>>>> 2016-04-12 16:17 GMT-05:00 Luis Calderon Rodríguez < >>>>> luis.calde...@proxus.pe>: >>>>> >>>>>> I'm very grateful for your answers. >>>>>> >>>>>> Thanks >>>>>> >>>>>> 2016-04-12 2:12 GMT-05:00 Nandika Jayawardana <nand...@wso2.com>: >>>>>> >>>>>>> Hi Luis, >>>>>>> >>>>>>> A BPMN process executed in a transactional manner from one wait >>>>>>> state to another wait state, Please refer to [1] for more details. >>>>>>> Hence, >>>>>>> the bpmn db which keeps the state of the process instance will always >>>>>>> be at a consistent state even if a sudden BPS server shutdown occurred. >>>>>>> >>>>>>> However, within your process, if you are calling externals services >>>>>>> , and these service invocations may result in state changes in those >>>>>>> services, there needs to be compensation option provided by the >>>>>>> service to >>>>>>> handle those. For example, let's assume your process invokes Operation A >>>>>>> and B one after the other. If operation B failed, we need to catch the >>>>>>> application error and call compensation operation of Operation A. >>>>>>> (reverse >>>>>>> operation A) This can be done by having error handling. >>>>>>> >>>>>>> However, for a scenario like sudden BPS server shutdown, you might >>>>>>> need some manual intervention to reverse some of these operations to >>>>>>> bring >>>>>>> the external services state to last consistant process instance state. >>>>>>> >>>>>>> [1] >>>>>>> http://www.activiti.org/userguide/#bpmnConcurrencyAndTransactions >>>>>>> >>>>>>> Regards >>>>>>> Nandika >>>>>>> >>>>>>> On Tue, Apr 12, 2016 at 11:10 AM, Hasitha Hiranya <hasit...@wso2.com >>>>>>> > wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Looping in some resource people who can answer the question.. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> On Tue, Apr 12, 2016 at 5:37 AM, Luis Calderon Rodríguez < >>>>>>>> luis.calde...@proxus.pe> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> Hi Hasitha, >>>>>>>>> >>>>>>>>> >>>>>>>>> I liked your article, it is very interesting because you use a >>>>>>>>> real business case where there are external services and manage >>>>>>>>> errors. >>>>>>>>> >>>>>>>>> >>>>>>>>> I would like to implement a workflow in BPS/BMPN where there is no >>>>>>>>> manual tasks, on the other hand are automated tasks that invoke REST >>>>>>>>> services or DataServices to persist data in an RDBMS. So, I have a >>>>>>>>> question >>>>>>>>> how it could manage transactionality throughout the execution flow . I >>>>>>>>> think in the situation to happen if a shutdown occurs BPS server and >>>>>>>>> the >>>>>>>>> flow has not completely finished, how it could reverse everything >>>>>>>>> already >>>>>>>>> being stored in the RDBMS. >>>>>>>>> >>>>>>>>> >>>>>>>>> Thanks for your time. >>>>>>>>> >>>>>>>>> -- >>>>>>>>> *Luis Calderón* >>>>>>>>> *e-mail: luis.calde...@proxus.pe <luis.calde...@proxus.pe>* >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *Hasitha Abeykoon* >>>>>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com >>>>>>>> *cell:* *+94 719363063* >>>>>>>> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Nandika Jayawardana >>>>>>> WSO2 Inc ; http://wso2.com >>>>>>> lean.enterprise.middleware >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Luis Calderón* >>>>>> *PROXUS SAC* >>>>>> *e-mail: luis.calde...@proxus.pe <luis.calde...@proxus.pe>* >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *Luis Calderón* >>>>> *PROXUS SAC* >>>>> *e-mail: luis.calde...@proxus.pe <luis.calde...@proxus.pe>* >>>>> >>>> >>>> >>>> >>>> -- >>>> *Amal Gunatilake* >>>> WSO2 Inc.; http://wso2.com >>>> Lean . Enterprise . Middleware >>>> >>>> mobile: (+94) 773561195 >>>> blog: amalg-blogs.blogspot.com; twitter: @daag123 >>>> linkedIn: https://www.linkedin.com/in/amalgunatilake >>>> >>> >>> >>> >>> -- >>> *Luis Calderón* >>> *PROXUS SAC* >>> *e-mail: luis.calde...@proxus.pe <luis.calde...@proxus.pe>* >>> >> >> >> >> -- >> *Amal Gunatilake* >> WSO2 Inc.; http://wso2.com >> Lean . Enterprise . Middleware >> >> mobile: (+94) 773561195 >> blog: amalg-blogs.blogspot.com; twitter: @daag123 >> linkedIn: https://www.linkedin.com/in/amalgunatilake >> >> >> >> -- >> Nandika Jayawardana >> WSO2 Inc ; http://wso2.com >> lean.enterprise.middleware >> > > > > -- > Himasha Guruge > *Software Engineer* > WS*O2* *Inc.* > Mobile: +94 777459299 > himas...@wso2.com > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Regards, Waruna Lakshitha Jayaweera Software Engineer WSO2 Inc; http://wso2.com phone: +94713255198
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev