Forum Discussion
ssmith-nova
8 months agoNew Contributor III
There isn't much else to the code:
Dim wfClusterPk As WorkflowUnitClusterPk = BRApi.Workflow.General.GetWorkflowUnitClusterPk(si, profileName, scenarioName, timeName)
Dim ProfileKey As Guid = wfClusterPk.ProfileKey
Dim ScenarioKey As Integer = wfClusterPk.ScenarioKey
Dim TimeKey As Integer = wfClusterPk.TimeKey
Dim ImportInfo As LoadTransformProcessInfo = BRApi.Import.Process.ExecuteParseAndTransform(si, wfClusterPk, String.Empty, Nothing, TransformLoadMethodTypes.Replace, SourceDataOriginTypes.FromDirectConnection, False)
Dim ValidateInfo As ValidationTransformationProcessInfo =BRApi.Import.Process.ValidateTransformation(si, wfClusterPk, True)
Dim IntersectionInfo As ValidateIntersectionProcessInfo = BRApi.Import.Process.ValidateIntersections(si, wfClusterPk, True)
Dim intersectionErrors As DataTable
intersectionErrors = BRApi.Import.Data.GetDirectLoadIntersectionErrors(si, wfClusterPk)