by Mike.Sheen » Tue Jul 04, 2017 3:00 pm
That's a bug - and it's not isolated to within the plugin scheduler - any code trying to create a batch process business logic using our factory and passing null for the form will get that error.
Logged as
DEV-6053.
Your work-around is to provide a form to the BusinessLogicFactory.
e.g.:
- Code: Select all
var form = Plugin.Manager.FormFactory.CreateForm<JiwaFinancials.Jiwa.JiwaSalesUI.BatchProcessing.BatchProcess>(); // create a form to work-around DEV-6053
JiwaFinancials.Jiwa.JiwaSales.BatchProcessing.BatchProcess batch = Plugin.Manager.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaSales.BatchProcessing.BatchProcess>(form);
batch.Client = null;
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution