This seems like an easy question, but I cannot find an answer to it and I am just not seeing it myself. I have a straightforward set of SysOperation classes, contract/service/controller. However, I'm reusing this batch job in other places in the system that are highly automated processes. I want to be able to call this batch job asynchronously, no dialog, and with a contract built from certain results/data during the automated process.
Question: How do I pass in a contract to the controller class when the entire process is automated? I won't be able to show the dialog that would usually be create the contract to be magically passed to the controller when user interaction is involved.
I would call the service code directly and pass in the contract that way, but I want the logging that comes with the batch job so that runs can be seen in the SysAdmin module and it seems that is all built within the controller class. Perhaps this is not possible?