|
|||||||||||
| 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 SQLQuery and an OutputStream, 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 DeliverToSMTP (which would deliver the notification message as an email).
It has one input and two outputs.
| 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 output for the data flowing through it. |
ActivityOutput |
getNotificationOutput()
Gets the activity's output for the notification message. |
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, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Notification(ActivityOutput input)
NotificationType.NONE and the notification message to be "none".
input - output from another activity
public Notification(ActivityOutput input,
NotificationType type,
java.lang.String message)
input - output from another activitytype - 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 any arguments are null| Method Detail |
public void setNotificationMessage(java.lang.String message)
message - message to send to the notification output.
java.lang.IllegalArgumentException - if the argument is nullpublic void setNotificationType(NotificationType type)
type - notification type.
java.lang.IllegalArgumentException - if the argument is nullpublic ActivityOutput getDataOutput()
public ActivityOutput getNotificationOutput()
public final void setDataInput(ActivityOutput input)
input - output from another activity
java.lang.IllegalArgumentException - if the argument is nullprotected java.lang.String generateXML()
RequestComponent
generateXML in class ActivityActivity.generateXML()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||