AnsweredAssumed Answered

Update node property during action

Question asked by schipmolder on Sep 12, 2015
Latest reply on Sep 13, 2015 by schipmolder

I think this is a transaction thing, but when I update a property of a node during the execution of a long (asynchronous) action the property isn't actually updated until the action has completed. Is there a way to get it to update the property straight away and continue with the rest of the action?

In this case it's a property that contains an integer for a progress counter (0 to 100%). The action can easily take 10 to 15 minutes and the client application periodically calls a web script to retrieve the progress of the action until it's at 100%.
As the property currently isn't actually updated until at the end of the action the progress bar for the user now jumps straight from 0% to 100% when the action completes which is not ideal.