-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Donald Oakes
committed
Jan 9, 2020
1 parent
720f8e9
commit 4f9cdfe
Showing
33 changed files
with
819 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
3 changes: 3 additions & 0 deletions
3
mdw-workflow/assets/com/centurylink/mdw/servicenow/.mdw/package.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
schemaVersion: '6.1' | ||
name: com.centurylink.mdw.servicenow | ||
version: 0.0.01 |
12 changes: 12 additions & 0 deletions
12
mdw-workflow/assets/com/centurylink/mdw/servicenow/.mdw/versions
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
GlideDateTime.java=1 | ||
Incident.java=3 | ||
IncidentTemplate.yaml=1 | ||
ServiceNowAdapter.java=1 | ||
ServiceNowTask.pagelet=2 | ||
ServiceNowTaskActivity.java=1 | ||
TaskNotifier.java=2 | ||
adapter.pagelet=1 | ||
readme.md=1 | ||
servicenow.png=1 | ||
servicenow_task.png=1 | ||
task.pagelet=1 |
33 changes: 33 additions & 0 deletions
33
mdw-workflow/assets/com/centurylink/mdw/servicenow/GlideDateTime.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.centurylink.mdw.servicenow; | ||
|
||
import java.time.Instant; | ||
import java.time.LocalDateTime; | ||
import java.time.ZoneId; | ||
import java.time.format.DateTimeFormatter; | ||
|
||
/** | ||
* Date format used by ServiceNow. | ||
*/ | ||
public class GlideDateTime { | ||
public static DateTimeFormatter FORMAT = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); | ||
|
||
private LocalDateTime localDateTime; | ||
public LocalDateTime getLocalDateTime() { return localDateTime; } | ||
|
||
GlideDateTime(LocalDateTime localDateTime) { | ||
this.localDateTime = localDateTime; | ||
} | ||
|
||
GlideDateTime(long epochMillis) { | ||
this.localDateTime = LocalDateTime.ofInstant(Instant.ofEpochMilli(epochMillis), ZoneId.systemDefault()); | ||
} | ||
|
||
GlideDateTime(String formattedDateTime) { | ||
this.localDateTime = LocalDateTime.parse(formattedDateTime, FORMAT); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return FORMAT.format(this.localDateTime); | ||
} | ||
} |
Oops, something went wrong.