OCLOperators RunServerSideViewModelNow

RunServerSideViewModelNow asks an implementing PeristenceServer - like MDrivenServer - to hurry up and execute a ServerSideViewModel asap.

ServerSideViewModels are implement by the MDrivenServer. They are often used to synchronize task as assigning a new sequence number or the like. The pattern is often that the client sets a state that the ServerSideViewModel finds with the ServerSide PS Criteria and then executes actions and saves.

The Client wait for this to happen and issues a selfVM.Refresh to get the new data.

Since ServerSideViewModels are polled with a defined interval (periodicity) the wait for the client may longer than optimal for user experience.

Use this call to influence the server to check for execution need as soon as possible instead of waiting the interval period:

selfVM.Save; 
selfVM.RunServerSideViewModelNow( SomeClass.ViewModels.SomeServerSideViewModelWeWaitFor ); 
selfVM.Refresh
This page was edited 96 days ago on 02/10/2024. What links here