Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
protogrid:agents [2020-04-22 09:21] – [Agents] jusprotogrid: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 rights.+  - Create a user profile with rights to edit the proto created above.
   - Create an Agent Library, specify the user created above as context user and copy the following code. Replace the value of //defkey_status_field// with the key from above.   - Create an Agent Library, specify the user created above as context user and copy the following code. Replace the value of //defkey_status_field// with the key from above.
   - 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 //agent_log// on the respective card.+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 //agent_log// on the respective card.
Print/export