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
Gidon_Albert
4 years agoContributor II
Workflow Name from Workflow Setting Property
Does any one know if there is a BR command that can get the Workflow Name value from the Workflow Settings area of the Profile Properties (e.g. Import, Validate, Process) in a business rule?
...
- 4 years ago
Hi Gidon,
I'm not aware of a supported or clean way to convert a workflow name key to a meaningful name. Perhaps someone else here may know a way?
How is the workflow to check being determined in your rule? If the workflow to check the property for is the user's POV workflow profile, you can use the following approach to retrieve the user's WorkflowInitInfo object and from there, you can retrieve a legible workflow name.
'get the user's POV WF profile info Dim wfInfo As WorkflowInitInfo = BRApi.Workflow.General.GetUserWorkflowInitInfo(si) 'retrieve the WF name property from the WF Dim wfName As String = wfInfo.GetSelectedWorkflowUnitInfo().WorkflowNameRegards,
Nick Kroppe
Gidon_Albert
4 years agoContributor II
Thanks Nick,
Is there a way to lookup what wfNameKey equates to in English? In other words, I want to return the name, not check to if it is "Import, Validate, Load".
NickKroppe
OneStream Employee
4 years agoHi Gidon,
I'm not aware of a supported or clean way to convert a workflow name key to a meaningful name. Perhaps someone else here may know a way?
How is the workflow to check being determined in your rule? If the workflow to check the property for is the user's POV workflow profile, you can use the following approach to retrieve the user's WorkflowInitInfo object and from there, you can retrieve a legible workflow name.
'get the user's POV WF profile info
Dim wfInfo As WorkflowInitInfo = BRApi.Workflow.General.GetUserWorkflowInitInfo(si)
'retrieve the WF name property from the WF
Dim wfName As String = wfInfo.GetSelectedWorkflowUnitInfo().WorkflowName
Regards,
Nick Kroppe
- Gidon_Albert4 years agoContributor II
Thanks Nick! This solution works perfectly.
- Oscar4 years agoContributor
Is there a way to retrieve the status of each of the steps in a workflow (Import, Validate, Load):
Step: Status
Import Success
Validate Success
Load Success
- Gidon_Albert4 years agoContributor II
Hi Oscar,
Check out the Trapping-WF-Import-Validate-Load-Errors thread. It has some code examples of how to get the status of each step.
Related Content
- 1 year ago
- 2 years ago
- 2 years ago
- 2 years ago