The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
LuciaPank
1 year agoNew Contributor II
Getting WF Profile Status in BR and using it in Cube View
Hello,
is there a BR function where I can get a Workflow Status (example "Pre-Process Completed, Locked")? When I am using brapi.Workflow.Status.GetWorkflowStatus I only get UniqueId and Name.
I ...
- 1 year ago
Hi LuciaPank ,
I'm not sure what you mean by only getting the UniqueId and Name.
Assuming you want to show the status of the selected WF step, you could try something like this:
Dim wfInfo As WorkflowInfo = BRApi.Workflow.Status.GetWorkflowStatus(si, si.WorkflowClusterPk) Dim wfStepStatus As WorkflowStatusTypes = wfInfo.CurrentStep.Status brapi.ErrorLog.LogMessage(si,$"Current Step Status: {wfStepStatus.ToString}")
FredLucas
OneStream Employee
1 year agoHi LuciaPank ,
I'm not sure what you mean by only getting the UniqueId and Name.
Assuming you want to show the status of the selected WF step, you could try something like this:
Dim wfInfo As WorkflowInfo = BRApi.Workflow.Status.GetWorkflowStatus(si, si.WorkflowClusterPk)
Dim wfStepStatus As WorkflowStatusTypes = wfInfo.CurrentStep.Status
brapi.ErrorLog.LogMessage(si,$"Current Step Status: {wfStepStatus.ToString}")
LuciaPank
1 year agoNew Contributor II
Thank you very much, this works.
Related Content
- 2 years ago
- 2 years ago