Run activity in a specialized class by Standard Agent
I have a work type in MyCo-MyApp-Work-PurchaseRequest and simply want to do Obj-Browse to get a list of work instances and then send an e-mail to some of the instances. This activity is created in MyCo-MyApp-Work-PurchaseRequest class and works just fine by Unit Test.
Now, I want to make it scheduled by Agent every certain time. When I used Advanced mode it works fine. But when I change the mode from Advanced to Standard, it does not run and I want to know the reason. In my understanding, whenever possible it is better to use Standard Agent because this way developer can concentrate on business logic while with Advanced agent we need to build locking, transaction management, multiple node handling, queue management etc manually.
***Edited by Moderator Marissa to update categories***
Standard agent would require a data instance to work with, and as you said the agent takes care of lot of stuff like lock, queue management. Standard agent queue instance is manually created by a system or user action, and to progress the workflow.
In your scenario, you just have to send an email to list of instances, this seems to be a batch processing (EOD,BOD). For which Advanced agent is more suitable and designed for.
You just have to enable the agent in one node, No locking required as it is sending email and adding an attachment.
My question was my agent activity works only with Advanced mode but not with Standard mode and why is that? You can disregard my e-mail part and assume the activity is just to obj-browse on Work class.