diff --git a/.flow-scanner.json b/.flow-scanner.json deleted file mode 100644 index 6423fb7..0000000 --- a/.flow-scanner.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "rules": { - "APIVersion": {}, - "CopyAPIName": {}, - "DMLStatementInLoop": {}, - "DuplicateDMLOperation": {}, - "FlowDescription": {}, - "HardcodedId": {}, - "MissingFaultPath": {}, - "MissingNullHandler": {}, - "SOQLQueryInLoop": {}, - "UnconnectedElement": {}, - "UnusedVariable": {}, - "FlowName": {} - } -} \ No newline at end of file diff --git a/force-app/main/default/flows/Copy_API_Name_Fixed.flow-meta.xml b/force-app/main/default/flows/Copy_API_Name_Fixed.flow-meta.xml deleted file mode 100644 index 8cf2a06..0000000 --- a/force-app/main/default/flows/Copy_API_Name_Fixed.flow-meta.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - 51.0 - This flow demonstrates how to resolve a violation of the rule "Copy API Name". - Default - Fix: Copy API Name {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - mockscreen - - 176 - 134 - true - true - true - - second_mockscreen - - true - true - - - second_mockscreen - - 176 - 242 - true - true - true - true - true - - - 50 - 0 - - mockscreen - - - Active - diff --git a/force-app/main/default/flows/DML_Statement_In_A_Loop_Fixed.flow-meta.xml b/force-app/main/default/flows/DML_Statement_In_A_Loop_Fixed.flow-meta.xml deleted file mode 100644 index 7eb0d86..0000000 --- a/force-app/main/default/flows/DML_Statement_In_A_Loop_Fixed.flow-meta.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - create_case_manually - - 440 - 542 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - aLoop.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - - Assigns values to newCase variable. - createNewCaseAssignment - - 264 - 242 - - newCase.AccountId - Assign - - aLoop.Id - - - - newCase.OwnerId - Assign - - aLoop.OwnerId - - - - newCases - Add - - newCase - - - - aLoop - - - This flow demonstrates how to resolve a violation of the rule "DML Statement In A Loop". - Default - DML Statement In A Loop Fixed {!$Flow.CurrentDateTime} - - - an example loop - aLoop - - 176 - 134 - Accounts - Asc - - createNewCaseAssignment - - - insert_cases - - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - insert_cases - - 176 - 434 - - create_case_manually - - newCases - - - 50 - 0 - - aLoop - - - Active - - A collection of Accounts - Accounts - SObject - true - true - true - Account - - - newCase - SObject - false - false - false - Case - - - Collection of New Cases - newCases - SObject - true - false - false - Case - - - a task - task - SObject - false - false - false - Task - - diff --git a/force-app/main/default/flows/Duplicate_DML_Operation_Fixed.flow-meta.xml b/force-app/main/default/flows/Duplicate_DML_Operation_Fixed.flow-meta.xml deleted file mode 100644 index 6abc715..0000000 --- a/force-app/main/default/flows/Duplicate_DML_Operation_Fixed.flow-meta.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - create_account_manually - - 440 - 350 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - This flow demonstrates how to resolve a violation of the rule "Duplicate DML Operation". - Default - Duplicate DML Operation Fixed {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - createAccount - - 176 - 242 - - mock_screen_2 - - - create_account_manually - - - Name - - account_name - - - Account - true - - - mock_screen_1 - - 176 - 134 - true - true - true - - createAccount - - - account_name - String - account name - InputField - false - - true - true - - - mock_screen_2 - - 176 - 350 - false - true - true - true - true - - - 50 - 0 - - mock_screen_1 - - - Active - - Account - SObject - false - false - false - Account - - diff --git a/force-app/main/default/flows/Flow_Naming_Convention_Fixed.flow-meta.xml b/force-app/main/default/flows/Flow_Naming_Convention_Fixed.flow-meta.xml deleted file mode 100644 index 68d7fa3..0000000 --- a/force-app/main/default/flows/Flow_Naming_Convention_Fixed.flow-meta.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - 58.0 - - isAccountsProvided - - 176 - 134 - Default Outcome - - NotNull - and - - Accounts - IsNull - - false - - - - - - This flow demonstrates how to resolve a violation of the rule "Flow Naming Convention". - Default - Fix: Flow Naming Convention {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - 50 - 0 - - isAccountsProvided - - - Active - - Accounts - SObject - true - true - false - Account - - diff --git a/force-app/main/default/flows/Hardcoded_Id_Fixed.flow-meta.xml b/force-app/main/default/flows/Hardcoded_Id_Fixed.flow-meta.xml deleted file mode 100644 index 5b0f173..0000000 --- a/force-app/main/default/flows/Hardcoded_Id_Fixed.flow-meta.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - create_account_manually - - 314 - 458 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - - create_task - - 842 - 242 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - - CheckIfUserIsFound - - 314 - 242 - Default Outcome - - userfound - and - - UserId.Id - IsNull - - false - - - - create_Test_Account - - - - - This flow demonstrates how to resolve a violation of the rule "Hardcoded Id". - Default - Fix: Hardcoded Id {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - create_Test_Account - - 50 - 350 - - create_account_manually - - - Name - - Test Account - - - - OwnerId - - UserId.Id - - - Account - true - - - getUserId - - 314 - 134 - false - - CheckIfUserIsFound - - - create_task - - and - - Name - EqualTo - - Acme - - - Account - - UserId.Id - OwnerId - - - - 188 - 0 - - getUserId - - - Active - - Account - SObject - false - false - false - Account - - - UserId - SObject - false - false - false - User - - diff --git a/force-app/main/default/flows/Missing_Error_Handler_Fixed.flow-meta.xml b/force-app/main/default/flows/Missing_Error_Handler_Fixed.flow-meta.xml deleted file mode 100644 index 7bd40db..0000000 --- a/force-app/main/default/flows/Missing_Error_Handler_Fixed.flow-meta.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - dosomethingelse - - 440 - 242 - NewTask - quickAction - CurrentTransaction - - OwnerId - - $User.Id - - - NewTask - 1 - - - log_call - - 176 - 134 - LogACall - quickAction - - dosomethingelse - - CurrentTransaction - LogACall - 1 - - 58.0 - This flow demonstrates how to resolve a violation of the rule "Missing Error Handler". - Default - Fix: Missing Error Handler {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - 50 - 0 - - log_call - - - Active - diff --git a/force-app/main/default/flows/Missing_Flow_Description_Fixed.flow-meta.xml b/force-app/main/default/flows/Missing_Flow_Description_Fixed.flow-meta.xml deleted file mode 100644 index 632a3c6..0000000 --- a/force-app/main/default/flows/Missing_Flow_Description_Fixed.flow-meta.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - 58.0 - - do_Anything - - 176 - 134 - - text - Assign - - new text - - - - This flow demonstrates how to resolve a violation of the rule "Missing Flow Description". - Default - Missing Flow Description Fixed {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - 50 - 0 - - do_Anything - - - Active - - text - String - false - false - false - - any text - - - diff --git a/force-app/main/default/flows/Missing_Null_Handler_Fixed.flow-meta.xml b/force-app/main/default/flows/Missing_Null_Handler_Fixed.flow-meta.xml deleted file mode 100644 index 6882dfc..0000000 --- a/force-app/main/default/flows/Missing_Null_Handler_Fixed.flow-meta.xml +++ /dev/null @@ -1,138 +0,0 @@ - - - - review_error - - 264 - 350 - FeedItem.NewTaskFromFeedItem - quickAction - - Assign_New_Account_Name - - - true - something_went_wrong - - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - - something_went_wrong - - 792 - 242 - FeedItem.NewTaskFromFeedItem - quickAction - CurrentTransaction - - contextId - - $User.Id - - - FeedItem.NewTaskFromFeedItem - 1 - - 58.0 - - Assign_New_Account_Name - - 176 - 590 - - GetAnAccount.Name - Assign - - Test - - - - - ifNotNull - - 176 - 242 - - review_error - - Default Outcome - - notNull - and - - GetAnAccount - IsNull - - false - - - - Assign_New_Account_Name - - - - - This flow demonstrates how to resolve a violation of the rule "Missing Null Handler". - Default - Fix: Missing null handlers {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - GetAnAccount - - 176 - 134 - false - - ifNotNull - - - something_went_wrong - - and - - Name - EqualTo - - Acme - - - true - Account - true - - - 50 - 0 - - GetAnAccount - - - Active - diff --git a/force-app/main/default/flows/Outdated_API_Version_Fixed.flow-meta.xml b/force-app/main/default/flows/Outdated_API_Version_Fixed.flow-meta.xml deleted file mode 100644 index 796795a..0000000 --- a/force-app/main/default/flows/Outdated_API_Version_Fixed.flow-meta.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - 58.0 - This flow demonstrates how to resolve a violation of the rule "Outdated API Version". - Default - Outdated API Version Fixed {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - mockscreen - - 176 - 134 - true - true - true - true - true - - - 50 - 0 - - mockscreen - - - Active - diff --git a/force-app/main/default/flows/SOQL_Query_In_A_Loop_Fixed.flow-meta.xml b/force-app/main/default/flows/SOQL_Query_In_A_Loop_Fixed.flow-meta.xml deleted file mode 100644 index 9f089db..0000000 --- a/force-app/main/default/flows/SOQL_Query_In_A_Loop_Fixed.flow-meta.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - dosomethingelse - - 440 - 434 - NewCase - quickAction - CurrentTransaction - NewCase - 1 - - 58.0 - - notnull - - 176 - 434 - Default Outcome - - notnulln - and - - SOQL_Query_Example - IsNull - - false - - - - - - This flow demonstrates how to resolve a violation of the rule "SOQL Query In A Loop". - Default - Fix: SOQL Query In A Loop {!$Flow.CurrentDateTime} - - - an example loop - aLoop - - 176 - 134 - Accounts - Asc - - SOQL_Query_Example - - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - SOQL_Query_Example - - 176 - 326 - false - - notnull - - - dosomethingelse - - and - - Industry - EqualTo - - None - - - true - Account - true - - - 50 - 0 - - aLoop - - - Active - - A collection of Accounts - Accounts - SObject - true - true - true - Account - - diff --git a/force-app/main/default/flows/Unconnected_Element_Fixed.flow-meta.xml b/force-app/main/default/flows/Unconnected_Element_Fixed.flow-meta.xml deleted file mode 100644 index 19fe757..0000000 --- a/force-app/main/default/flows/Unconnected_Element_Fixed.flow-meta.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - 58.0 - - example assignment - getCurrentTime - - 656 - 182 - - currentTime - Assign - - $Flow.CurrentDateTime - - - - This flow demonstrates how to resolve a violation of the rule "Unconnected Element". - Default - Unconnected Element Fixed {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - FREE_FORM_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - AutoLaunchedFlow - - 530 - 48 - - getCurrentTime - - - Active - - currentTime - DateTime - false - false - false - - $Flow.CurrentDateTime - - - diff --git a/force-app/main/default/flows/Unused_Variable_Fixed.flow-meta.xml b/force-app/main/default/flows/Unused_Variable_Fixed.flow-meta.xml deleted file mode 100644 index cef493a..0000000 --- a/force-app/main/default/flows/Unused_Variable_Fixed.flow-meta.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - 58.0 - This flow demonstrates how to resolve a violation of the rule "Unused Variable". - Default - Fix: Unused Variables {!$Flow.CurrentDateTime} - - - BuilderType - - LightningFlowBuilder - - - - CanvasMode - - AUTO_LAYOUT_CANVAS - - - - OriginBuilderType - - LightningFlowBuilder - - - Flow - - mock_screen - - 176 - 134 - true - true - true - true - true - - - 50 - 0 - - mock_screen - - - Active -