Skip to content

Commit c9b8aed

Browse files
committed
Flow with a more comprenhensive type #616
1 parent e9e1b0e commit c9b8aed

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

build/src/api/dataset/orgcheck-api-dataset-flows.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ import { SalesforceManagerIntf } from '../core/orgcheck-api-salesforcemanager';
77
import { SFDC_Flow, SFDC_FlowVersion } from '../data/orgcheck-api-data-flow';
88
import { LFSScanner } from '../scanner/orgcheck-api-lfs-scanner';
99

10+
// Limited list of known types of Flow ProcessType
11+
// see all the list at https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_visual_workflow.htm
12+
const PROCESSTYPE_TRANSLATION = {
13+
'ApprovalWorkflow': 'Approval Workflow',
14+
'AutoLaunchedFlow': 'Auto-Launched Flow',
15+
'Flow': 'Screen Flow',
16+
'InvocableProcess': 'Invocable Process',
17+
'LoginFlow': 'Login Flow',
18+
'Survey': 'Survey',
19+
'Workflow': 'Process Builder'
20+
};
21+
1022
export class DatasetFlows extends Dataset {
1123

1224
/**
@@ -151,7 +163,7 @@ export class DatasetFlows extends Dataset {
151163
recordTriggerType: record.Metadata.start?.recordTriggerType || '',
152164
isActive: record.Status === 'Active',
153165
description: record.Description,
154-
type: record.ProcessType,
166+
type: PROCESSTYPE_TRANSLATION[record.ProcessType] || `Other (${record.ProcessType})`,
155167
isProcessBuilder: record.ProcessType === 'Workflow',
156168
isScreenFlow: record.ProcessType === 'Flow',
157169
runningMode: record.RunInMode,

docs/index9.glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ This document explains the column definitions for each table in the OrgCheck app
309309
| Score | Score | Score assigned to the flow |
310310
| Name | Link | Link to the flow |
311311
| API Version | Numeric | API version of the flow |
312-
| Type | String | Type of the flow |
312+
| Type | String | Type of the flow (Approval Workflow, Auto-Launched Flow, Screen Flow, Invocable Process, Login Flow, Survey, Process Builder or Other |
313313
| Number of versions | Numeric | Number of versions |
314314
| Current Version | Link | Link to the current version |
315315
| Is it Active? | Boolean | Indicates if the current version is active |

0 commit comments

Comments
 (0)