Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
protogrid:agents [2020-04-22 09:21] – [Agents] jus | protogrid:agents [2020-04-22 11:50] – [Execution] 178.197.228.105 | ||
---|---|---|---|
Line 13: | Line 13: | ||
==== Example ==== | ==== Example ==== | ||
- Create a Proto with a DateTime Field and a Text Field. Copy the key of the Text Field. | - Create a Proto with a DateTime Field and a Text Field. Copy the key of the Text Field. | ||
- | - Create a user profile with the according | + | - Create a user profile with rights |
- Create an Agent Library, specify the user created above as context user and copy the following code. Replace the value of // | - Create an Agent Library, specify the user created above as context user and copy the following code. Replace the value of // | ||
- Add this Agent Library to your Proto. | - Add this Agent Library to your Proto. | ||
Line 47: | Line 47: | ||
===== Execution ====== | ===== Execution ====== | ||
- | Agents are checked every hour. If any DateTime Field on a card has a smaller value than the current time and the Agent has not yet run since that time, the Agent gets triggered and the code in the Agent Library is executed in the context of this card. Agents run in the context of a specific user profile. This user's password is automatically reset during the execution process. So this user profile shall only be used for agents and not for physical users. All agent executions are logged in the // | + | Agents are checked every hour. If any DateTime Field on a card has a smaller value than the current time and the Agent has not yet run since that time, the Agent gets triggered and the code in the Agent Library is executed in the context of this card (for Date-Only Fields, the time taken into account is said date, 00:00 GMT). Agents run in the context of a specific user profile. This user's password is automatically reset during the execution process. So this user profile shall only be used for agents and not for physical users. All agent executions are logged in the // |