@RegisteredService(value=TaskNotifier.class) public class TaskNotifier extends TemplatedNotifier
Constructor and Description |
---|
TaskNotifier() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getAuthPassword() |
protected java.lang.String |
getAuthUser()
Auth headers are expected in environment variables or encrypted properties.
|
protected Incident |
getIncident(TaskRuntimeContext context) |
protected java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders() |
protected java.lang.String |
getServiceNowUrl() |
void |
sendNotice(TaskRuntimeContext runtimeContext,
java.lang.String taskAction,
java.lang.String outcome)
Currently only handles Create.
|
getTemplateSpec, setTemplateSpec
public void sendNotice(TaskRuntimeContext runtimeContext, java.lang.String taskAction, java.lang.String outcome) throws ObserverException
ObserverException
protected java.lang.String getServiceNowUrl() throws PropertyException
PropertyException
protected java.lang.String getAuthUser() throws PropertyException
PropertyException
protected java.lang.String getAuthPassword() throws PropertyException
PropertyException
protected java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
protected Incident getIncident(TaskRuntimeContext context) throws java.io.IOException, java.lang.ReflectiveOperationException, java.beans.IntrospectionException
java.io.IOException
java.lang.ReflectiveOperationException
java.beans.IntrospectionException
Copyright © 2019 CenturyLink, Inc.