This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| makeAssignments(reqItem, assignments, rule_variables, loggers); | |
| /** Context contains | |
| * reqItem - request item (sc_req_item) that the rule is running against | |
| * assignments - name/value pairs set by previous rule assignments - assigning values to variables of the request item | |
| * rule_variables - name/value pairs set by previous rule assignments with temporary values that do not persist after the rule finishes making assignments | |
| * loggers - collection of logging functions, to use: | |
| * loggers.log(msg, loggers.executor); | |
| * loggers.logError(msg, loggers.executor); | |
| * loggers.logWarning(msg, loggers.executor); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: localhost | |
| connection: local | |
| tasks: | |
| - uri: | |
| url: https://rstumph2.service-now.com/stats.do | |
| return_content: yes | |
| register: response |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* function : ISODateTimeToGlideDateTime() | |
| Convert ISO8601 DateTime string to GlideDateTime object | |
| */ | |
| function ISODateTimeToGlideDateTime(s) { | |
| if ( (s == '') || (s == null) ) { | |
| return null; | |
| } | |
| // GlideDateTime constructor expects date format: 'YY-MM-DD HH::MM::SS' | |
| parts = s.split(/[-TZ:+]/g); |
NewerOlder