BPMN + workflow: Email sending, processImmediately property missing in actionData?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michib
    Member
    • Sep 2016
    • 65

    #1

    BPMN + workflow: Email sending, processImmediately property missing in actionData?

    Hi,

    I'm struggling to find a way out an issue i'm facing. I have a BPMN flow in which a task is created and a step assigns user via an assignement rule. Then I've a general workflow rule that matches task changes, to send email upon user assignements changes. This email never gets out when task is created in BPMN.

    Digging inside code I stubled upon Workflow\Actions\SendEmail.php and in run() :

    PHP Code:
      removed source code 
    but tracing $actionData shows no processImmediately property...



    so it never get sended immediately but created jobs sql rows...

    This actually does not solve my problem but It seems a bug to me...

    Michele
    Last edited by yuri; 04-11-2019, 11:14 AM.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9617

    #2
    Hi,

    Does that job send an email?

    Comment

    • michib
      Member
      • Sep 2016
      • 65

      #3
      Originally posted by yurikuzn
      Hi,

      Does that job send an email?
      Hi Yuri,

      In my particular case it depends.
      a) if assigned user is sticky i.e. assigned by value: yes, but not immediately ...
      b) if assigned user is from assignement rule it does not because $this->getEmailAddress('to') inside run() returns null... (btw, it should be usefull to log this... IMHO) - I'm trying to find out why

      PHP Code:
        if (is_null($jobData['to'])) {     return true; } 
      thanks,
      Michele

      PS: php code and my tracing went away from post... was you? Is it wrong to post AP code here?
      Last edited by michib; 04-11-2019, 11:42 AM.

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9617

        #4
        > but not immediately

        There's no ability to send immediately by design. It sends only by cron.

        Comment

        Working...