Page 1 of 1

CORU jeden morgen bei Termin

Posted: 02. Sep 2024, 10:01
by robudus
Guten Morgen,
wir haben uns für die Windows 11 Migration ein Formular gebaut un ein Datum von der Koordination eingeben lassen.
Jetzt wäre es schön auf das Feld eine CORu laufen zu lassen jeden Morgen um zu sehen ob ein Termin am dem Tag vorhanden ist und eine Mail senden. Wie kann man das am besten lösen? Wie müsste eine Coru dazu aussehen? Kann da jemand helfen? Im Anhang das Formular.
Vielen Dank

Grüsse

ROBudus

Re: CORU jeden morgen bei Termin

Posted: 02. Sep 2024, 10:18
by cboss
Guten Morgen,

du könntest dir eine CoRu bauen, die prüft, ob es Objekte gibt bei denen das Objekt auf TODAY() steht.

Hier ein Link zur Matrix-Help:
https://help.matrix42.com/030_DWP/010_S ... _Attribute

Diese CoRu's werden dann über die Modulaktivierung "Process Compliance Rules - Date Conditions" nächtlich verarbeitet:
https://help.matrix42.com/030_DWP/010_S ... Conditions

Hoffe das hilft dir weiter.

Re: CORU jeden morgen bei Termin

Posted: 02. Sep 2024, 10:57
by robudus
Das klingt super. Ich teste und gebe ein Feedback. Ich denke euch.

Re: CORU jeden morgen bei Termin

Posted: 03. Sep 2024, 09:03
by robudus
Moin,
leider zieht die Coru nicht. Heute war eben dieses Datum. Im Anhang die Konfig meiner CoRu.
Über einen Tipp würde ich mich freuen.

Vielen Dank

G ROBudus

Re: CORU jeden morgen bei Termin

Posted: 03. Sep 2024, 11:41
by robudus
Mit Today() bekomme ich einen Fehler angezeigt.

Re: CORU jeden morgen bei Termin

Posted: 20. Sep 2024, 09:07
by robudus
Keiner eine Idee? Soll ich noch was liefern?

G ROBudus

Re: CORU jeden morgen bei Termin

Posted: 20. Sep 2024, 09:15
by robudus
Coru_win11.png
(30.79 KiB) Downloaded 222 times

Re: CORU jeden morgen bei Termin

Posted: 23. Sep 2024, 08:47
by MF_NSc
Bitte auch folgendes beachten: bei Datumsbezügen muss die Regel als "AFTER" angegeben sein (im Screenshot oben ist ein before). Siehe auch der oben schon verlinkte Artikel:
Date Conditions
Although it is not marked in the UI, you need to be aware of the third implicit processing option. If your CoRu has a data condition that involves a date attribute such as the one that is shown below, it will be automatically scheduled for an additional daily processing cycle. This cycle will check your rule for the date condition to be true. In the example, you see that there is one date clause. The system needs to process date rules daily because the Value for that clause is time-dependent and changes every day.

The rules are performed by the Process Compliance Rules - Date Conditions Engine Activation and it only works if all conditions in the CoRu are set at After. If only one condition uses Before, it doesn't work.

When such a condition becomes true, it will be true on each subsequent processing cycle. It means that you can get the same expiration email every day. To overcome this, you have to use any special Boolean attribute in your object that will hold the state 'If mail has already been sent.