Simple agent questions, can't find simple answers!

I’ve read the AgentFAQ and a lot of agent postings but not found any answers to the following:

Q1: I want to trigger a scheduled agent (scheduled to run on a server) using an action or an agent in the Notes client. RunOnServer does not help as either the client waits or runs in a separate thread. The client action/agent should just start the agent and nothing else. Can this be done? how?

Q2: I don’t want agents to run immediately when saved, enabled, pasted, etc. but only when they are supposed to run according to the schedule. I know when they’re saved they loose their “time of last run” but that’s no excuse. If an agent is supposed to run at 5:00 it should never run except at 5:00. Can this be done? how?

  • Birgir

Subject: More logic required…

Q1: Write a profile document for your agent; have a Yes/No field on it and some way for the user to change the field.

Have a distinct scheduled agent that checks your profile document (so it runs all the time). If the profile document is set to yes, then carry out the contents of the agent and if necessary set the field back to ‘No’. If the profile document is set to ‘No’, do nothing. (I use the term profile document loosely)

Q2. Similar idea. Have a time field set in the Profile Document. Have a distinct agent which checks to see what time it is. If it is the correct time to run (or say within 5 minutes) then carry out these actions. If not do nothing.

Shooting from the hip and two totally off the wall unrehearsed answers but those are the first two things I would try.

C>

Subject: RE: More logic required…

I understand your suggested solution but was/am hoping for a more elegant/built-in solution, such as without constantly running an agent on the server (monitoring profile docs).

Has noone else the need for this functionality? If so then how do you solve it?

I wonder if Julie Kadashevich has any answers. I can’t find them in her AgentFAQ.

  • Birgir