Sets the value assigned to a Notification Manager directive. Reserved NM directive names: "jobsuccess_topic" - The name of the topic to be notified when a job succeeds. "jobfailure_topic" - The name of the topic to be notified when a job fails. Examples: The following example will send a single notification when a job succeeds or fails. A notification will be sent to the JOB_SUCCESS topic if the transformation succeeds and a notification will be sent to the JOB_FAILURE topic if the transformation fails. In addition the notification body will contain both "info" and "test" directives. - SetNMDirective("jobsuccess_topic", "JOB_SUCCESS"); - SetNMDirective("jobfailure_topic", "JOB_FAILURE"); - SetNMDirective("info", "Misc notification info ..."); - SetNMDirective("test", "Misc test info ..."); The following example will send multiple notifications when a job succeeds or fails. A notification will be sent to the JOB_SUCCESS, JOB_SUCCESS_SINK and SUCCESS_BATCH topics if the transformation succeeds and a notification will be sent to the JOB_FAILURE and FAILURE_HANDLER topics if the transformation fails. In addition the notification body will contain both "info" and "test" directives. - SetNMDirective("jobsuccess_topic{0}", "JOB_SUCCESS"); - SetNMDirective("jobsuccess_topic{1}", "JOB_SUCCESS_SINK"); - SetNMDirective("jobsuccess_topic{2}", "SUCCESS_BATCH"); - SetNMDirective("jobfailure_topic{0}", "JOB_FAILURE"); - SetNMDirective("jobfailure_topic{1}", "FAILURE_HANDLER"); - SetNMDirective("info", "Misc notification info ..."); - SetNMDirective("test", "Misc test info ...");
[Visual Basic]
Sub SetNMDirective( _
ByVal directiveName As String, _
ByVal directiveValue As String _
)
IFMETransformationRequest Interface | IFMETransformationRequest Members | Safe.FMEServer.API Namespace