01-23-2024 08:18 AM
Hello,
I have a workflow step of type 'Workspace, Certify'. Through a workspace button, I am able to complete/revert the step.
I am wondering If I can navigate to the 'Certify' window automatically upon completing workspace through a business rule, or we can only do so manually ?
Solved! Go to Solution.
01-23-2024 10:46 AM
BRApi.Workflow.Status.SetWorkflowStatus(si, wfClusterPK, StepClassificationTypes.Certify, WorkflowStatusTypes.InProcess, "Certify Started", "", "User clicked complete workflow", Guid.Empty)
selectionChangedTaskResult.ChangeSelectionChangedNavigationInDashboard = True
selectionChangedTaskResult.ModifiedSelectionChangedNavigationInfo.SelectionChangedNavigationType = XFSelectionChangedNavigationType.OpenPage
Dim navPath As String = "XFPage=Workflow"
selectionChangedTaskResult.ModifiedSelectionChangedNavigationInfo.SelectionChangedNavigationArgs = navPath
01-23-2024 09:50 AM
Hi @Keyser_Soze,
I would like to do this also. Haven't had any luck as of yet. In my setup I have a Server Task of Execute Dashboard Extender Business Rule, that does the WF Complete and Revert tasks. There's no obvious API in the Extender TaskResult action to change the navigation. On the button component, I've tried a POV Action of 'Change Workflow' but that does not advance it to step 2 of the WF task (the Certify action).
Here's hoping someone here on Community has found the secret recipe.
01-23-2024 10:01 AM
The only workaround I found, for the time being, was to decompose the workflow steps into 2 different Workflows (Workspace & Certify separately). This way, we can use the 'Button' properties to navigate between windows
I assume you thought of this one too but it does not do the job ... I hope JackLacava comes to the rescue hah
01-23-2024 10:46 AM
BRApi.Workflow.Status.SetWorkflowStatus(si, wfClusterPK, StepClassificationTypes.Certify, WorkflowStatusTypes.InProcess, "Certify Started", "", "User clicked complete workflow", Guid.Empty)
selectionChangedTaskResult.ChangeSelectionChangedNavigationInDashboard = True
selectionChangedTaskResult.ModifiedSelectionChangedNavigationInfo.SelectionChangedNavigationType = XFSelectionChangedNavigationType.OpenPage
Dim navPath As String = "XFPage=Workflow"
selectionChangedTaskResult.ModifiedSelectionChangedNavigationInfo.SelectionChangedNavigationArgs = navPath
01-23-2024 10:50 AM
Just what the doctor ordered, thanks sir !
@MikeG There goes our problem solved in seconds, haven't tried it yet but it seems logical
01-23-2024 12:15 PM
The main trick is to set the next step as InProcess, so the system will see it as "the item I should go to when opening the workflow". Then you trigger navigation and boom.
01-23-2024 12:39 PM
Boomshakala @JackLacava !! You win Community for the day good sir! That works. 2 key pieces for me to make it work highlighted here:
Best regards and a big thanks!