BPM, Workflow, and Case

 View Only
  • 1.  Send Email SMTP for BAW 20 STARTTTLS error

    Posted Sat May 29, 2021 02:19 PM
    Because the Send Email with SMTP service was deprecated and removed from the System toolkit, and the client does not have Content Integration Designer, I found another toolkit with the functionality: ibmbpm/Integration-Samples 

    However, when I use the sendMessage service, it generates the following error: 

    CWTBG0019E: Unexpected exception during execution. Exception information: 'com.lombardisoftware.component.common.workflow.WorkflowProcessItemException: An exception occurred in activity "Script Task" of "Service Flow" with name "AC Test Email Service". Task instance id "Task.627". Details: "451 5.7.3 STARTTLS is required to send mail [SA0PR11CA0040.namprd11.prod.outlook.com] ".'.

    Any idea how to resolve it?

    ------------------------------
    Ailin Cao
    Associate Application Developer
    IBM
    ------------------------------


  • 2.  RE: Send Email SMTP for BAW 20 STARTTTLS error
    Best Answer

    IBM Champion
    Posted Sun May 30, 2021 04:59 AM
    I hope you are using BAW v20.x and the Target Environment is set to 'Traditional or Container'.
    There are two versions of System Data toolkit from this version, 8.6.0.0_TC for 'Traditional or Container' which does not have the integration components and 8.6.0.0 for 'Traditional' which is the earlier version of System Data toolkit.

    To solve this, probably you can first set the Target Environment as 'Traditional', change the dependency to 8.6.0.0, copy the Send email via SMTP service and integration.jar to your application, then again change the Target Environment as 'Traditional or Container', then change the dependency back to 8.6.0.0_TC.

    Hope this helps.

    ------------------------------
    Atanu Roy
    ------------------------------



  • 3.  RE: Send Email SMTP for BAW 20 STARTTTLS error

    Posted Wed June 09, 2021 01:12 PM
    Thanks Atanu! We ended up converting back to Traditional environment and 8.6.0.0 as the simplest solution.

    ------------------------------
    Ailin Cao
    Associate Application Developer
    IBM
    ------------------------------



  • 4.  RE: Send Email SMTP for BAW 20 STARTTTLS error

    Posted Wed June 02, 2021 10:21 AM
    Hi Ailin,

    the integration samples published on github are considered to be used for container based deployments where  - as indicated by Atanu, you would use the "_TC" toolkits instead of the regular ones.
    In case you want to use the mail integration for a container based BAW runtime, you have to use the latest release of the BAW server container (delivered as part of Cloud Pak for business automation 21.0.1) as the required javaMail feature for liberty was added to the container image with this release.

    Which version of BAW and which deployment type (traditional vs. containers) are you using?

    Best regards,
    Michael

    ------------------------------
    Michael Kirchner
    Leading Technical Specialist - Digital Business Automation
    IBM Technology
    Germany
    ------------------------------