We have a requirement that whenever an advanced agent is run at scheduled time, we need to write a record to DB about its start and end time. Are there any life cycle extension activities for agent like BeforeRun or AfterRun that we can use to log such info? We cannot AgentUtil or JMX because such info is gone once a server is restarted.
We end up with creating a generic proxy activity which takes target agent activities name and class and agent name as parameters. We can then modify the agent queue rule to use this proxy for all agents that we need to intercept. The proxy simply call the targeted agent activities from parameters.
This way, we can add behaviors declaratively without actually changing the agent activities.
Posted: 2 years ago
Posted: 26 Dec 2020 10:17 EST
John Talbot (TALBJ)
Sr. System Architect