How it works...
We will get a dialog with a field created automatically from the contract. We can even submit it to the batch queue. Pretty cool, and very little additional effort!
This witchcraft does deserve an explanation.
As our class extends SysOperationServiceController, we get a lot of functionality, the first being that it can construct a dialog from the data contract. However, how did it know?
When the new method executed, the framework looked at the Run method and determined the contract from the method's input parameter.
The call to startOperation caused the system to build the UI and handle the code execution based on what the user does. The dialog is constructed using the EDTs specified in the data member methods. Since we constructed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access