Using Advanced Workflow to identify overdue records

Fairly basic question - is it possible to use Advanced Workflow (Sugar BPM) to follow up overdue records which can currently be done easily in Legacy Workflow.

It seems Advanced Workflow is limited to selecting a specific date rather than for example "before today" or a fixed time span.

For example : Expected Close Date is before today or Task is Due in 5 days time ?

Thanks in advance.

Greg Barrass 

Parents Reply Children
  • This is excellent Patrick - it will definitely help me and hope it is of benefit to others in this forum. I'll try it out later today.

    Regards

    Greg Barrass

  • @patrickmcqueen - I noticed the Step #2 Event includes the "and" operator vs. "or" ~

    Since this workflow is very similar to some we are having difficulty with at the moment, I am looking into each portion to see where the fails might be. We are currently using "or" to identify which fields the Status cannot be. How big a difference can this make in the disruption of a workflow in your estimation? advanced workflows logic admin

  • Hi Patrick

    Thanks for your clear steps-by-steps response. I try on my side and everything works well except when the task due date is updated. The current process is terminaded as expected but there is no new process in progress created (step 5 in your post). I try with version 9.0 and version 9.2 with the same result. 

    Any idea of what is going on ?

    Regards

    Pierre

  • Hi Pierre Bourban,

    Sugar has evolved a bit since I wrote the above response.

    I now believe the loops I built into the stock Case Follow-Up Date Management process definition are a better approach to assessing and responding to changes in date fields.

    The loop leverages an Event-based gateway that sets a race condition between Wait Event(s) and Receive Message Event(s), as shown here:

    The above was developed in consideration that a Wait Event does not update if the date used in the criteria changes on the record. The Receive Message event, waiting for any change to the date field, will escape the Wait Event if the date is changed, then simply loop back into the event-based gateway which will automatically re-trigger the Wait Event with the new date value.

    I hope this helps! 

  • Hi Patrick

    You're right. It works perfectly by adding an event-based gateway and a receive message event. 

    Thanks a lot

    Regards

    Pierre

  • hi Patrick McQueen
    Do you have a simpler example on using Event-based gateway like when a meeting or call date changes to send notification to related contacts? 

    .

    CRM Business Consultant

  • Hi Patrick McQueen
    Appreciate that. Excuse my ignorance on the Event based gateway, could your example be easily included as part of a 'complete' process (as attached) that starts as a custom message to all Guests within a Meeting or Call, or does it need to stay as a separate process?

    And is the 1 hour Wait you added used as 'best practice?

    Meeting_confirmation.bpm.zip

    .

    CRM Business Consultant

  • Hi Vincent Amari,

    The Wait Time was arbitrary. It's up to you.

    Yes, the approach can be added to an existing process, as shown here using your provided process.

  • Great, thank you Patrick McQueen
    Final point that I think would help many here, because the message will include a date/time of the scheduled Meeting or Call, can we exclude any 'overdue' as otherwise the messages would not make sense?

    Using Calculated fields to flag these and use as criteria is easy enough, but we have no guarantee that the field get's updated.

    .

    CRM Business Consultant