|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.activity.RequestComponent
|
+--uk.org.ogsadai.client.toolkit.activity.Activity
|
+--uk.org.ogsadai.client.toolkit.activity.misc.Notification
This activity generates a notification message upon commencement or completion of processing of a perform document. It can be chained between two activities, such as an SQL query and an output stream, in order to produce a notification message. The data flowing between the two activities is unchanged and the message is available on a separate output, which can be connected to another activity, such as a delivery activity (e.g. a deliver to SMTP activity could be used which would deliver the notification message as an email).
It has one input and two outputs - one is the data received as input into the activity and the other is the notification message.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static int |
DATA_INPUT_INDEX
Index of data input parameter. |
private static int |
DATA_OUTPUT_INDEX
Index of data output parameter. |
private java.lang.String |
mNotificationMessage
Notification message - default is none |
private NotificationType |
mNotificationType
Notification type - default is NONE. |
private static int |
NOTIFICATION_OUTPUT_INDEX
Index of notification output parameter. |
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
| Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
| Constructor Summary | |
Notification(ActivityOutput input)
Constructs an activity to generate a notification upon commencement or completion of processing of the perform document. |
|
Notification(ActivityOutput input,
NotificationType type,
java.lang.String message)
Constructs an activity to generate a notification upon commencement or completion of processing of the perform document. |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getDataOutput()
Gets the activity's data output. |
ActivityOutput |
getNotificationOutput()
Gets the activity's notification message output. |
void |
setDataInput(ActivityOutput input)
Sets the name of the output that will provide the input to this activity. |
void |
setNotificationMessage(java.lang.String message)
Sets the message that will be sent to the notification output of this activity. |
void |
setNotificationType(NotificationType type)
Sets the notification type. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private NotificationType mNotificationType
NONE.
private java.lang.String mNotificationMessage
private static final int DATA_INPUT_INDEX
private static final int DATA_OUTPUT_INDEX
private static final int NOTIFICATION_OUTPUT_INDEX
| Constructor Detail |
public Notification(ActivityOutput input)
NotificationType.NONE and the notification message
to be "none".
setInput should be called to set the activity that
provides input to this activity.
input - Output from another activity.
java.lang.IllegalArgumentException - If input is null.
public Notification(ActivityOutput input,
NotificationType type,
java.lang.String message)
input - Output from another activity.type - The type of notification to do - either on commencement of
processing, completion of processing or none.message - Message to send to the notification output.
java.lang.IllegalArgumentException - If input, type or
message are null.| Method Detail |
public void setNotificationMessage(java.lang.String message)
message - Message to send to the notification output.
java.lang.IllegalArgumentException - If message is null.public void setNotificationType(NotificationType type)
type - The type of notification to do - either on commencement of
processing, completion of processing or none.
java.lang.IllegalArgumentException - If type is null.public ActivityOutput getDataOutput()
public ActivityOutput getNotificationOutput()
public final void setDataInput(ActivityOutput input)
input - Output from another activity.
java.lang.IllegalArgumentException - If input is null.protected java.lang.String generateXML()
RequestComponent
generateXML in class Activity
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||