Class JobScheduledTaskAddIn
- Namespace
- Dynamicweb.DataIntegration.Integration
- Assembly
- Dynamicweb.DataIntegration.dll
[AddInName("RunDataIntegrationJobAddIn")]
[AddInLabel("Run Data Integration Job AddIn")]
[AddInDescription("Run Data Integration Job AddIn")]
[AddInIgnore(true)]
public class JobScheduledTaskAddIn : BaseScheduledTaskAddIn, IParameterOptions, IParameterVisibility
- Inheritance
-
JobScheduledTaskAddIn
- Implements
- Inherited Members
Properties
Activity
[AddInParameter("Activity")]
[AddInParameterEditor(typeof(GroupedDropDownParameterEditor), "required=true;ReloadOnChange=true;SortBy=,,default", InfoText = "Select the activity to run, or select an activity folder's \"(all activities)\" option to run every activity in that folder")]
public string? Activity { get; set; }
Property Value
StopOnFailedActivity
[AddInParameter("StopOnFailedActivity")]
[AddInLabel("Stop on failed activity")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool StopOnFailedActivity { get; set; }
Property Value
Methods
GetHiddenParameterNames(string, object?)
public IEnumerable<string> GetHiddenParameterNames(string parameterName, object? parameterValue)
Parameters
Returns
GetParameterOptions(string)
public IEnumerable<ParameterOption> GetParameterOptions(string parameterName)
Parameters
parameterNamestring
Returns
Run()
Performs the work of the scheduled task. Called once per task run, after the framework has populated the context properties and loaded the saved parameter values.
public override bool Run()
Returns
- bool
truewhen the work succeeded; otherwisefalse. The value is logged and stored as the task's last result. Exceptions that escape this method are caught by the framework, logged, and recorded as a failed run.