BPM, Workflow, and Case

 View Only
  • 1.  Waiting for Email Respond in BAW Step

    Posted Mon September 13, 2021 03:35 PM
    I have a requirement to send an email out to a user and the step will have to wait for same email respond back from the user.
    Is there a feature in BAW or something similar?
    Waiting for the respond is what I'm really looking for.

    Has anyone done something similar?

    Cheers

    ------------------------------
    Mohamad Sariman
    ------------------------------


  • 2.  RE: Waiting for Email Respond in BAW Step

    IBM Champion
    Posted Tue September 14, 2021 12:56 AM
    There is no out of the box feature to achieve this requirement but this can be handled in a different way.
    You can have a normal intermediate message event in you process which will receive message. Build a custom email listener, probably using Java Mail which will post a message either in the jms/eventqueue or post the message using REST API (Process API->Send Message) to trigger the waiting IME.

    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 3.  RE: Waiting for Email Respond in BAW Step

    Posted Tue September 21, 2021 03:27 PM
    Hi,
    in my previous company we have been using something similar:

    1. A scheduled UCA is run every 5min which has an attached Service Flow:


    2. The Service Flow was using Read email via IMAP/POP Service Flow from the System Data toolkit.


    • The drawback of this approach is that the email is read only every 5min (usually that is even too often)
    • Your Process Application should be using Traditional for Target Environment, otherwise, the System Data toolkit won't include the needed Service Flows. Of course, you can easily take the integration.jar from the Traditional toolkit and create your own Service Flow for reading emails.


    ------------------------------
    Tomas Dambrauskas
    ------------------------------



  • 4.  RE: Waiting for Email Respond in BAW Step

    Posted Wed September 22, 2021 09:11 AM
    Hi,

    not sure if it helps but do you know the "IBM Business Automation Workflow Integration Samples": https://github.com/ibmbpm/Integration-Samples

    There are some container ready toolkits for Files, JMS and E-Mail.

    Biggest challenge I see is how to correlate mail into correct process instance.

    Means, you must somehow make sure mail contains correlation parameter.

    Regards

    Matthias

    ------------------------------
    Matthias Warkentin
    Technical Sales and Services Consultant for IBM Digital Business Automation Platform
    IBM Switzerland
    ZÜRICH
    0799583430
    ------------------------------



  • 5.  RE: Waiting for Email Respond in BAW Step

    Posted Thu September 23, 2021 03:42 AM
    Hi,
    for correlation, there could be some initial email sent for the user which would be using the predefined format for a subject where process app acronym and instanceID were used. Then the user should keep the subject in place ("RE:" and other prefixes could be easily removed in the Service Flow) and then during the parsing the instance could be easily found and continued using UCA. The users could be also informed about the correct format of subject if there is no initial email sent.
    Of course, if the subject was not in the correct format, an email reply could be sent for the user stating this. 

    The improved Service Flow could look something like this:


    ------------------------------
    Tomas Dambrauskas
    ------------------------------