Does Asynchronous Post Create plugin triggers after update plugin? RRS feed

  • Question

  • Scenario: There is a Post-Create asynchronous and Pre-Update synchronous plugins named PCA and PUS respectively on 'Entity1'. Entity1 has a field called 'Volume' of type integer.

    PCA plugin to update the Volume field to 20 and PUS plugin to update the Volume field to 10. Now user has created a record for Entity1 with value for Volume as 5. Due to some reason(may be Asynchronous Service is down), PCA plugin dint trigger on time. Immediately user has updated that same record(i,e user updated record the record before PCA plugin triggers), so PUS plugin has triggered and which sets the Volume field to 10.

    Now my questions are:

    Will PCA plugin triggers when Asynchronous Service is up?

    If yes, what is the value in Volume field in that context(i,e 5 or 10)?

    If no, what is the reason?

    Thursday, January 29, 2015 1:14 PM

All replies

  • As soon as the async service is back up, your async plugin should be triggered and will set the value of Volume field to 20. Since the entity has been updated, your sync plugin will also fire and set the value to 10. Also, if there is no proper check, there can be an infinite loop.
    Thursday, January 29, 2015 7:50 PM