mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
chagned strings to enums and can edit step completion actions (#827)
This commit is contained in:
@@ -365,6 +365,12 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
}
|
||||
return this.failureAction;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (this.failureAction != value) {
|
||||
this.failureAction = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public JobStepData FailStep
|
||||
@@ -390,6 +396,12 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
}
|
||||
return this.successAction;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (this.successAction != value) {
|
||||
this.successAction = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public JobStepData SuccessStep
|
||||
|
||||
@@ -44,7 +44,9 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
this.data.ID = stepInfo.Id;
|
||||
this.data.Name = stepInfo.StepName;
|
||||
this.data.Command = stepInfo.Command;
|
||||
this.data.Subsystem = AgentUtilities.ConvertToAgentSubSytem(stepInfo.SubSystem);
|
||||
this.data.Subsystem = stepInfo.SubSystem;
|
||||
this.data.FailureAction = stepInfo.FailureAction;
|
||||
this.data.SuccessAction = stepInfo.SuccessAction;
|
||||
}
|
||||
|
||||
protected override bool DoPreProcessExecution(RunType runType, out ExecutionMode executionResult)
|
||||
|
||||
Reference in New Issue
Block a user