Can anyone help me please:-I’ve got an approval cycle set up, but want an automatic approver in there too. Ie “If there isn’t enough money to cover request: Deny”. It only has to be simple at first.
I understand using agents is the way to go, but I need to know how to trick Domino into thinking they are humans, so I can choose them as approvers in the cycle.
Any suggestions would be greatly appreciated.
Kind regards all,
Dave.
Subject: Run Agent as Approver
I’m not sure I completely understand what you’re trying to do, but scheduled agents run with the access of the agent’s signer.
All you will probably need to do is sign / save the agent using a user ID of someone who you want to be an approver.
You might also want to look at the Run On Behalf Of field, it may do what you want.
Subject: RE: Run Agent as Approver
Thanks for your reply Brian.
Basically, what I want to be able to do is to choose the agent as an approver in the application profile of the approval cycle.
If it means anything, I’m using the approve4.ntf template. When you choose the approvers in the chain, it shows a box with a list of all PEOPLE registered on the server - and this is where I want to see the agent.
Are you saying I need to create a user and somehow link it with the agent?
Subject: RE: Run Agent as Approver
Read about agent security in the Agent FAQ. It explains what it take to run agents “On behalf” of someone else.
Subject: Run Agent as Approver
Well you asked -
Our Workflo!Approval will allow you to write a formula that will be evaluated to determine if the document should be approved or not. You can download a full function demo from our site at http://www.wfs.com
Otherwise you could write something in the QuerySave that would evaluate whether there is enough money in the budget and set the Approve/Deny. So long as your code has the rights and ability to determine what the budget is this should work, I’m not understanding your problem correctly.
Subject: RE: Run Agent as Approver
im sorry if i haven’t made myself clear i try and explain it more clearly now.
we using 6.5 lotus designer/admin/domino
and for our University Assignment we need to make an approval cycle. we’ve been give a database template that was available in 4.0? its called: approve4.ntf
One of the criteras for the project is to have an agent act as an approver. like so…
Typical user - makes a request for 10 pencils on a request Form. and we want an agent to check if theres enough stock IE
if(pencilCountInStock > pencilsRequested) then Send Approval email to Person who requested pencils
ELSE
Send deny email to person who requested pencils
our lecturer told us that to get the agent to act as an approver you need to make the agent you built act as a user.
so when the administer builds the 10 pencils requst forms Profile, and he/she clicks “Select approver” , you are able to select “AgentStockCheck” instead of only being able to select real peoples profiles.
We building a simple example of how an agent can make the approve/deny decision instead of a user. then we elaborate on the approve cycle.