Question
wipro
IN
Last activity: 8 Aug 2019 11:19 EDT
conditionally start parent agent (Allocator Advanced agent) only after all the allocated sub agents(standard agents) complete of their tasks using queue for agent method or activity in pega
i want to conditionally start parent agent (Allocator Advanced agent) only after all the allocated sub agents(standard agents) complete of their tasks using queue for agent method or activity in pega.
Can we write the Activity called/executed by the Parent/Allocator agent(Advanced agent) periodically on subsequent wakup first check if there are pending queued messages(count of ) for the child agents to process (System-Queue..Extension class) , if present skip the allocation of messages to the sub agents and end the activity, until next run of Parent/Allocator agent(Advanced agent)
There are tables below out which which tables are of our interest and what would be relation or condition to get total pending messages from the queue
data.pr_sys_queue_autotest
data.pr_sys_queue_col_pop
data.pr_sys_queue_count
data.pr_sys_queue_execreq_conn
data.pr_sys_queue_execreq_svc
data.pr_sys_queue_ftsindexer
data.pr_sys_queue_sla
data.pr_sys_queue_startflows
data.pr_sys_queues
if the only option to get pending items on a specific queue is writing a query (else pls suggest any other option) out of these tables ( my assumption is data.pr_sys_queue_count, data.pr_sys_queue_execreq_conn , data.pr_sys_queue_execreq_svc, data.pr_sys_queues,data.pr_sys_queues should be my interest)
***Edited by Moderator Marissa to update categories***