(dispatch: Dispatch) => {
dispatch<any>(loadProcess(uuid));
dispatch(initProcessPanelFilters);
- dispatch<any>(showWorkflowDetails(uuid));
};
export const navigateToOutput = (uuid: string) =>
export const openWorkflow = (uuid: string) =>
(dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
dispatch<any>(navigateToWorkflows);
+ dispatch<any>(showWorkflowDetails(uuid));
};
export const initProcessPanelFilters = procesPanelActions.SET_PROCESS_PANEL_FILTERS([
export const getWorkflowDetails = (state: RootState) => {
const uuid = getProperty<string>(WORKFLOW_PANEL_DETAILS_UUID)(state.properties);
- return uuid ? getResource<WorkflowResource>(uuid)(state.resources) : undefined;
+ const workflows = state.runProcessPanel.workflows;
+ const workflow = workflows.find(workflow => workflow.uuid === uuid);
+ return workflow || undefined;
};