Agent executed successfully or not

To update the field through agent which is called from “form” — agent.RunOnServer … basically wants to know if all the transaction in backend database has been updated or not then only should send the mail, changed the status and close the document. Just after the agent.RunOnServer is executed the mail sending procedure is called…

Currently i can’t figure out that the agent has ran successfully or not… if any error is reported in the agent.

i’ll appreciate if someone could help me in this regard.

Regards

Farroukh

Subject: Agent executed successfully or not

There is a button on the document named “Process” When i click on that button an agent.RunOnServer(currentdoc.NoteID) is called. Immediately after agent is called mail sending procedure is executed.

Agent:

Update the records from the current document in Oracle as well in notes.

Wants to know that agent has executed successfuly or not(No error reported) means the whole process in agent has been completed. On the basis of successful execution of agent, mail is send to the user.

Regards,

Farroukh

Subject: RE: Agent executed successfully or not

If I understood your request, then you can embedd the mail sending procedure in the agent. After the data update in Oracle. Or after checking the values in the backend DB.

JCs blessings, alex

Subject: RE: Agent executed successfully or not

It is possible … but i don’t want to close the document until and unless the process has executed successfuly, otherwise the document should remain open in the same state.

I hope u r getting my point… if not then plz let me know…

Thanks

Farroukh

Subject: RE: Agent executed successfully or not

No, I didn’t get your point about not wanting to close which doc?alex

Subject: Agent executed successfully or not

Sorry, but your question isn’t clear to me.What do you mean with:

  • “form” — agent.RunOnServer

  • transaction in backend database - Notes-DB or Oracle or DB2???

What is being updated?

What crucial for a successful run of the agent?

More specific infos…

grz, alex