Forum Discussion
I was able to get this to work. There are API calls to complete each step along the way, Import > Validate > Load (or Process) or also Confirm steps. See if you can grab snippets of the code below to support your specific rule and solution:
'Complete workspace
BRApi.Workflow.Status.SetWorkflowStatus(si, currentWF, StepClassificationTypes.Workspace, WorkflowStatusTypes.Completed, "Workspace Completed", "", "User clicked complete workflow", Guid.Empty)
'Complete import
Dim objLoadTransformProcessInfo As LoadTransformProcessInfo = BRApi.Import.Process.ExecuteParseAndTransform(si, currentWF, "", Nothing, TransformLoadMethodTypes.Replace, SourceDataOriginTypes.FromDirectConnection, False)
'Complete validate
Dim objValidationTransformationProcessInfo As ValidationTransformationProcessInfo = BRApi.Import.Process.ValidateTransformation(si, currentWF, True)
Dim objValidateIntersectionProcessInfo As ValidateIntersectionProcessInfo = BRApi.Import.Process.ValidateIntersections(si, currentWF, True)
'Complete Load
Dim objLoadCubeProcessInfo As LoadCubeProcessInfo = BRApi.Import.Process.LoadCube(si, currentWF)
End If 'Not Completed
- RobbSalzmann2 years agoValued Contributor II
Thanks MikeG . Can you show the instantiation and initialization of wfStatus and currentWF please?
I'm a bit confused by the BRApi call to set the status of the workflow to completed before running the steps below it?
Is the line
"BRApi.Workflow.Status.SetWorkflowStatus(si, currentWF, StepClassificationTypes.Workspace, WorkflowStatusTypes.Completed, "Workspace Completed", "", "User clicked complete workflow", Guid.Empty)"
the part that compels your workspace UI to update with the completed workflow?- MikeG2 years agoContributor III
I created a Workspace that essentially is a summary of all the Workflow tasks I want to automate. In your instance, you would not need to complete the 'Workspace' complete step, you could delete that or comment it out, and in your solution the first step in your Workflow to complete would be the 'Import' task/step.
- RobbSalzmann2 years agoValued Contributor II
MikeG what I'm looking for is how to compel the UI to show that the steps are complete, without having to click the refresh button. Can you isolate your suggestion to just the line that does this please?
Related Content
- 8 months ago
- 4 months ago