<ruleset> <base> <name>NotifyWf</name> <search> <name>"DIRECT"</name> <value>"1"</value> <mask>0</mask> <max>200</max> </search> <interval>6:00</interval> </base> <rule> <name>CheckSendMail</name> <condition></condition> <script> mail.setSmtpHost("MyMailServer"); var sender = "[email protected]"; var subject = "Workflowbenachrichtigung" notify.processAllUsers(sender, subject, true, true, true); </script> </rule> <rule> <name>Global Error Rule</name> <condition>OnError</condition> <script></script> </rule> </ruleset> <body> <h1>Workflowübersicht</h1> Für Sie sind die folgenden Workflowaufgaben aktiv: <table border="0"> <tr><td class="header">Name</td> <td class="header">Anwender/ Gruppe</td> <td class="header">Startdatum</td> <td class="header">Lieferant</td>> </tr> <!--ListStart--> <tr><td class="$$className$$">$$nodeName$$</td> <td class="$$className$$">$$userName$$</td> <td class="$$className$$">$$activateDate$$</td> <td class="$$className$$">$$ixkey_0$$</td> </tr> <!--ListEnd--> </table> Sie können diese Aufgaben im ELO Client bearbeiten. </body> <ruleset> <base> <name>SendWfMail</name> <search> <name>"WORKFLOW"</name> <value>"1"</value> <mask>0</mask> <max>200</max> </search> <interval>1M</interval> <onstart> EM_ALLOWALLMASKS = true; </onstart> </base> <rule> <name>Send</name> <condition></condition> <script> mail.setSmtpHost("MyMailServer"); notify.checkAddFeed(); notify.checkSendMail(); </script> </rule> <rule> <name>Global Error Rule</name> <condition>OnError</condition> <script></script> </rule> </ruleset> #wfsendmail template=wfmail recipient=$INDEX$ELOOUTL1 sender=$ELO$Thiele importance=weniger Wichtig withattachment=true function NotifyCallback() { } var notifyCallback = new NotifyCallback(); NotifyCallback.prototype.filterTask = function(task) { return true; } NotifyCallback.prototype.beforeSend = function(text) { return text; } NotifyCallback.prototype.getTableLine = function(task) { return null; } NotifyCallback.prototype.getMailUser = function(userName) { return null; } NotifyCallback.prototype.formatMessage = function(template, node, sord, properties) { return null; } NotifyCallback.prototype.formatFeedMessage = function(template, node, sord, properties) { return null; } NotifyCallback.prototype.getSubject = function(node, sord, properties) { return null; } <tr> <td <td <td <td <td </tr> class="$$className$$">$$nodeName$$</td> class="$$className$$">$$userName$$</td> class="$$className$$">$$activateDate$$</td> class="$$className$$">$$ixkey_0$$</td> class="$$className$$">$$ixgroup_LIEFERNR$$</td> NotifyCallback.prototype.getTableLine = function(task) { if (task.wfNode && (task.wfNode.nodeName == "Test3")) { return '<tr><td class="$$className$$" colspan="5"><p><b>$$nodeName$$</b></p><p>$$userName$$ at $$activateDate$$</p></td></tr>'; } return null; } // JavaScript Dokument function getScriptButton50Name() { return "Mail Benachrichtigung"; } function getScriptButtonPositions() { return "50,home,view"; } function eloScriptButton50Start(){ var actOpt = archive.getUserOption("ELOas.SendWfAsMail", ""); actOpt = selectOptions(actOpt); if (actOpt >= 0) { archive.setUserOption("ELOas.SendWfAsMail", actOpt); } } function selectOptions(actOptions) { var dlg = workspace.createGridDialog("Einstellungen - Mail Benachrichtigung", 2, 6); var panel = dlg.gridPanel; actOptions = Number(actOptions); var ckMail = panel.addCheckBox(1, 1, 1, "EMail Benachrichtigung aktivieren.", (actOptions & 1) != 0); var ckAlways = panel.addCheckBox(1, 3, 1, "Immer benachrichtigen, auch wenn keine Termine aktiv sind.", (actOptions & 2) != 0); var ckGroup = panel.addCheckBox(1, 4, 1, "Auch bei Gruppenterminen benachrichtigen.", (actOptions & 4) != 0); var ckDeputy = panel.addCheckBox(1, 5, 1, "Auch bei Vertretungsterminen benachrichtigen.", (actOptions & 8) != 0); var ckWeekend = panel.addCheckBox(1, 6, 1, "Auch am Wochenende benachrichtigen.", (actOptions & 16) != 0); var result = -1; if (dlg.show()) { result = 0; if (ckMail.isChecked()) { result |= 1; } if (ckAlways.isChecked()) { result |= 2; } if (ckGroup.isChecked()) { result |= 4; } if (ckDeputy.isChecked()) { result |= 8; } if (ckWeekend.isChecked()) { result |= 16; } } return result; } <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Workflowübersicht</title> <style type="text/css" > body { font-family: Verdana,Arial; font-size: 14px; } table { margin-top: 20px; margin-bottom: 20px; border: 1px silver solid; border-collapse: collapse; } td { border-bottom:1px silver dotted; padding: 5px; } .header { background-color:#f0f2ff; } .urgent { background-color:#ffd0d0; } .group { background-color:#d0ffd0; } </style> </head> <body> <h1>Workflowübersicht</h1> Für Sie sind die folgenden Workflowaufgaben aktiv: <table border="0"> <tr><td class="header">Name</td><td class="header">Anwender/ Gruppe</td> <td class="header">Startdatum</td><td class="header">Lieferant</td>></tr> <!--ListStart--> <tr><td class="$$className$$">$$nodeName$$</td><td class="$$className$$">$$userName$$</td><td class="$$className$$">$$activateDate$$</td> <td class="$$className$$">$$ixkey_0$$</td></tr> <!--ListEnd--> </table> Sie können diese Aufgaben im ELO Client bearbeiten. </body> </html>
© Copyright 2025 ExpyDoc