Workflow Sequential Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alasdaircr
    Active Community Member
    • Aug 2014
    • 525

    Workflow Sequential Trigger

    Hi,

    When a delayed sequential trigger is saved in the job table (type: jobTriggerWorkflow) the properties of the related entity are also saved (e.g assignedUser). I'm just wondering when the execute_time is reached are values used in the triggered workflow taken live from the entity, or do they use these old cached values?

    I am using Workflow to created triggers that happen weeks in the future. It could be that the values have changed between now and then. I would like the sequential workflow to always use the most up to date values.
  • yuri
    Member
    • Mar 2014
    • 8562

    #2
    Answer is here: application/Espo/Modules/Advanced/Services/Workflow.php

    Actual and "Is Changed" condition can be used to compare whether certain field was changed since action has been triggered.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • alasdaircr
      Active Community Member
      • Aug 2014
      • 525

      #3
      Amazing - thanks for explaining that Yuri.

      So this is just so I can use the 'Is Changed' condition in a sequential workflow.

      And if I use the trigger entity's values in the Create Entity action, it will use actual (current) values.


      I know you're all busy but some documentation for workflows would be great! Workflows are the best bit of Espo. Very well implemented :-)

      Comment

      • yuri
        Member
        • Mar 2014
        • 8562

        #4
        Documentation for workflow is planned to be written very soon
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • alasdaircr
          Active Community Member
          • Aug 2014
          • 525

          #5
          Also the way workflows display the conditions horizontally is SO MUCH better then the Report's filters - which are really not well designed IMO.

          Our users constantly click into the Runtime filter box rather than the tiny 'Add Filter' link.

          This is a mock up I just made for Report filters:

          Comment

          Working...