Agent Server is Time Triggered Transaction. Agent has two methods which is GetJob and ExecuteJob. Get Job will collect all Pending Jobs. Execute Job will process the pending tasks that has provided. Based on the customization of Agent has two types.
MANUAL MODE
AUTOMATIC
The getJobs method will look into YFS_Task_Q table for the available records. The TaskQ table has column named ‘Available date’ that holds date information. This date intimates the Date and time that the record is eligible for processing. GetJobs method will fire a Select query that is pull the records that has available date is less than current system time. Those records are converted as a list of documents and returns from the method.
The Execute Job will process those list of records which dropped into the queue as per the business logic. This process will be repeated until no messages are fetched by getjobs.
Interface to implement Task Q agent class : YCPBaseTaskAgent
For example, Schedule Agent, Release Agent, Consolidate to Shipment, and Close Shipment Agent are out-of-the-box implementations for Task Q agent
A Non task Q agent gives the flexibility to customize the GetJobs that can look pull records from any table. Typically it might be custom table or OOB table. On ExecuteJob method, will be utilized to perform business logics. Since GetJob method’s full control is given to user, distinguishing between processed and non-processed records has to take care by the implementation logic.
Interface to implement Non Task Q agent class : YCPBaseAgent
For Example, Order Validation, Exception Reprocess Agent are implemented for Non Task Q Agent to fulfill the custom requirement.
Thank you for taking time to go through this one !
Your Queries, Our Solutions – Let’s Connect
India
United States
hr@maegham.com
+91-8273327338