Forum Discussion
Jarek_Sadowski
New Contributor II
Does it really work? How do we point to the workflow we want to execute? I tried this by opening the chosen workflow and no result after business rule execution.
I found in another topic that there is a formula BRApi.Import.Process.ExecuteParseAndTransform(), but I do not know how to define the source.
>>> Solved: Automating WF Execution - OneStream Community (onestreamsoftware.com)
Jarek_Sadowski
2 years agoNew Contributor II
Dim wfClusterPkBig As WorkflowUnitClusterPk = BRApi.Workflow.General.GetWorkflowUnitClusterPk(si, "WorkflowName", "Actual", "2023M1")
Dim wfClusterPk As WorkflowUnitClusterPk = BRApi.Workflow.General.GetWorkflowUnitClusterPk(si, "WorkflowName.Import", "Actual", "2023M1")
BRApi.Import.Process.ExecuteParseAndTransform(si, wfClusterPk, "DataSourceNameYouCanFindInOneStreamApplication", Nothing, TransformLoadMethodTypes.Replace, SourceDataOriginTypes.FromDirectConnection, False)
BRApi.Import.Process.ExecuteRetransform(si, wfClusterPk)
BRApi.Import.Process.ValidateTransformation(si, wfClusterPk, True)
BRApi.Import.Process.ValidateIntersections(si, wfClusterPk, True)
BRApi.Import.Process.LoadCube(si, wfClusterPk)
BRApi.Workflow.Status.GetWorkflowStatus(si, wfClusterPk, True)
BRApi.DataQuality.Process.StartProcessCube(si, wfClusterPkBig, stepClassificationTypes.ProcessCube, True)
My solution for a part of the problem (it works in case we defined Connector, not sure how to import files)
Related Content
- 12 months ago
- 12 months ago
- 7 months ago
- 5 months ago