4 Replies Latest reply on May 9, 2016 2:06 AM by carlesc RSS
    rkandasamy Apprentice

    How to rollback in case failure in execution of statements

    Hi Team,

     

    In a service of thing say DeviceMaster, we have three steps.

    1. Update a property in DeviceMaster.

    2. Create another thing say Device1 ,Enable it, restart it.

    3. Add Device1 to a Network  Say "DeviceNetwork".

     

    Now if the DeviceNetwork is deleted or deactivated before the service reaches the third step, does any automatic roll back take place?

    Will Device1 still exist?

    Will the updated value in the DeviceMaster change to earlier value?

     

    Please provide your inputs. If it does not happen automatically, Can you suggest a better way for doing the same?

     

    Thanks in advance.