Expected Behavior of the Remote Event Receiver (RER)
- User makes some change on a SharePoint list, where an event listener is registered (change should trigger workflow start)
- SharePoint sends a change event to the Remote Event Receiver
- The remote event receiver forwards this event to the FireStart server
- The FireStart server requests the data from the SharePoint server
- The FireStart server checks, if the start condition is fulfilled and starts the Workflow (as the condition is fulfilled)
Unexpected Behavior: Workflow does not start
Due to high network latency or high load on the FireStart server, the following scenario can happen:
- The user makes a change to a SharePoint list where an event listener is registered (change should trigger workflow start)
- SharePoint sends a change event to the Remote Event Receiver
- The remote event receiver forwards this event to the FireStart Server
- The user reverts the change on the SharePoint list
- The FireStart server requests the changed data from the SharePoint server
- The FireStart server checks, if the start condition is fulfilled and does not start the Workflow (as the condition is not fulfilled)
In this scenario, it can happen that the start condition of the workflow is not valid anymore at the time, the FireStart server received the data from SharePoint.
Unexpected Behavior: Workflow starts twice
- The user makes a change to a SharePoint list where an event listener is registered (change should not trigger workflow start)
- SharePoint sends a change event to the Remote Event Receiver (event A)
- RER cannot reach the FireStart Server, event A will be cached on its disk
- The user makes some change on the same SharePoint list (change should trigger workflow start)
- SharePoint sends a change event to the Remote Event Receiver (event B)
- The remote event receiver forwards event B to the FireStart Server
- The FireStart server requests the data from the SharePoint server
- The FireStart server checks, if the start condition is fulfilled and starts the Workflow (as the condition is fulfilled)
- The RER recognizes that events can be delivered to the FireStart server and sends event A to the FireStart server
- The FireStart server requests the changed data from the SharePoint server
- The FireStart server checks, if the start condition is fulfilled and starts the Workflow (as the condition is fulfilled due to the change in event B)