public class NotificationTaskDefinition extends TaskDefinition
Modifier and Type | Class and Description |
---|---|
static class |
NotificationTaskDefinition.MessagePriority
Provides the priority of the message sent by this task.
|
OBJECT_TYPE
description, name
Constructor and Description |
---|
NotificationTaskDefinition(String name,
String description,
String elementId,
Element.ElementType type,
String processFlowIdentifier,
long revision)
Initializing constructor which sets the values of all variables.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Gets the message text for this notification task
|
NotificationTaskDefinition.MessagePriority |
getPriority()
Gets the priority for this notification task
|
Set<Principal> |
getRecipients()
Sets the recipients for this notification task
|
String |
getSubject()
Gets the subject for this notification task
|
void |
setMessage(String message)
Sets the message text for this notification task
|
void |
setPriority(NotificationTaskDefinition.MessagePriority priority)
Sets the priority for this notification task
|
void |
setRecipients(Set<Principal> recipients)
Sets the recipients for this notification task
|
void |
setSubject(String subject)
Sets the subject for this notification task
|
String |
toString() |
equals, getAttributes, getObjectType, hashCode, setAttribute, setAttributes, setDescription, setName
getDescription, getElementId, getName, getProcessFlowIdentifier, getRevision, getType
public NotificationTaskDefinition(String name, String description, String elementId, Element.ElementType type, String processFlowIdentifier, long revision)
It is not intended or recommended that the consumer of the API construct these objects. They should only be
retrieved from service calls such as
ProcessFlowService.getElementDefinitions(ProcessFlowContext, String)
.
name
- The name of the element definitiondescription
- The description of the element definitionelementId
- The id of the element definition as it appears in the process definitiontype
- The type of the elementprocessFlowIdentifier
- The identifier of the process flow that contains this elementrevision
- the internal revision numberpublic Set<Principal> getRecipients()
public void setRecipients(Set<Principal> recipients)
recipients
- The recipients for this notification taskpublic String getSubject()
public void setSubject(String subject)
subject
- The subject for this notification taskpublic String getMessage()
public void setMessage(String message)
message
- The message text for this notification taskpublic NotificationTaskDefinition.MessagePriority getPriority()
public void setPriority(NotificationTaskDefinition.MessagePriority priority)
priority
- The priority for this notification task.public String toString()
toString
in class ElementDefinition
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA