Skip to content

Commit 5704f65

Browse files
AshRelateIQGitHub Enterprise
authored andcommitted
Merge pull request #43 from communities/master
Merge checkout-main changes
2 parents 41c7e6e + 08dd1a0 commit 5704f65

File tree

1 file changed

+15
-98
lines changed

1 file changed

+15
-98
lines changed

examples/checkout-main/flows/Checkout_Main_Checkout.flow

Lines changed: 15 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ This may fallback to asynchronous mode even if it's marked synchronous, so
121121
<targetReference>Confirm_Price</targetReference>
122122
</connector>
123123
<faultConnector>
124-
<targetReference>Error</targetReference>
124+
<targetReference>Error_1</targetReference>
125125
</faultConnector>
126126
<flowTransactionModel>Automatic</flowTransactionModel>
127127
<inputParameters>
@@ -136,8 +136,8 @@ This may fallback to asynchronous mode even if it&apos;s marked synchronous, so
136136
This node does not have any inputs and produces a warning when saved. If an external provider is desired for pricing, the Async Confirm Price node can be replaced with this node instead.</description>
137137
<name>Confirm_Price</name>
138138
<label>Confirm Price</label>
139-
<locationX>1880</locationX>
140-
<locationY>771</locationY>
139+
<locationX>1945</locationX>
140+
<locationY>828</locationY>
141141
<actionName>B2BSyncPricing</actionName>
142142
<actionType>apex</actionType>
143143
<connector>
@@ -186,7 +186,7 @@ This node does not have any inputs and produces a warning when saved. If an exte
186186
<description>This obtains the delivery methods and pricing to show the user on the delivery method screen. This calls a custom inventory invocable action that should be further customized.</description>
187187
<name>Shipping_Cost</name>
188188
<label>Shipping Cost</label>
189-
<locationX>2322</locationX>
189+
<locationX>2226</locationX>
190190
<locationY>828</locationY>
191191
<actionName>B2BSyncDelivery</actionName>
192192
<actionType>apex</actionType>
@@ -411,8 +411,8 @@ There&apos;s more smarts that could be here by adding other outcomes of the stat
411411
<description>Ensures that if the buyer starts a second checkout that we don&apos;t attempt to progress this duplicate checkout.</description>
412412
<name>Is_Session_Still_Valid_After_Delivery</name>
413413
<label>Is Session Still Valid After Delivery?</label>
414-
<locationX>2875</locationX>
415-
<locationY>1323</locationY>
414+
<locationX>2500</locationX>
415+
<locationY>1330</locationY>
416416
<defaultConnector>
417417
<targetReference>Set_Checkout_Delivery_Method</targetReference>
418418
</defaultConnector>
@@ -463,8 +463,8 @@ There&apos;s more smarts that could be here by adding other outcomes of the stat
463463
<description>Ensures that if the buyer starts a second checkout that we don&apos;t attempt to progress this duplicate checkout.</description>
464464
<name>Is_Session_Still_Valid_After_Shipping</name>
465465
<label>Is Session Still Valid After Shipping?</label>
466-
<locationX>1265</locationX>
467-
<locationY>1272</locationY>
466+
<locationX>1258</locationX>
467+
<locationY>1268</locationY>
468468
<defaultConnector>
469469
<targetReference>Get_Contact_Point_Address</targetReference>
470470
</defaultConnector>
@@ -565,32 +565,6 @@ There&apos;s more smarts that could be here by adding other outcomes of the stat
565565
<label>No Purchase Order or Payment</label>
566566
</rules>
567567
</decisions>
568-
<decisions>
569-
<description>This determines whether or not the screen navigates to the next screen or goes back to the previous screen. In the case that wait screens are added, this ensures that we can bypass those screens and go straight back to the previous screen that the user can have an action.</description>
570-
<name>Should_Navigate_Forward_or_Back</name>
571-
<label>Should Navigate Forward or Back</label>
572-
<locationX>2502</locationX>
573-
<locationY>1318</locationY>
574-
<defaultConnector>
575-
<targetReference>Get_Session_After_Delivery</targetReference>
576-
</defaultConnector>
577-
<defaultConnectorLabel>Go Forward</defaultConnectorLabel>
578-
<rules>
579-
<name>Go_Back</name>
580-
<conditionLogic>and</conditionLogic>
581-
<conditions>
582-
<leftValueReference>navigationAction</leftValueReference>
583-
<operator>EqualTo</operator>
584-
<rightValue>
585-
<stringValue>BACK</stringValue>
586-
</rightValue>
587-
</conditions>
588-
<connector>
589-
<targetReference>Shipping_Options</targetReference>
590-
</connector>
591-
<label>Go Back</label>
592-
</rules>
593-
</decisions>
594568
<description>Most of the logic for the checkout lives in this flow. This is where the checkout starts and ends. It will terminate by redirecting to the Order Confirmation page or on an error page if an error occurs. Most of the integrations are run synchronously, though a few have to put on MQ for standard pricing and promotions.</description>
595569
<interviewLabel>(Checkout) Main B2B Checkout {!$Flow.CurrentDateTime}</interviewLabel>
596570
<label>(Checkout) Main Checkout</label>
@@ -844,8 +818,8 @@ There&apos;s more smarts that could be here by adding other outcomes of the stat
844818
<description>After each screen, we need to ensure the session is still active. If the buyer started a new checkout, this tab might still be active but the session is archived. We want to terminate if that&apos;s the case.</description>
845819
<name>Get_Session_After_Delivery</name>
846820
<label>Get Session After Delivery</label>
847-
<locationX>2754</locationX>
848-
<locationY>1078</locationY>
821+
<locationX>2510</locationX>
822+
<locationY>1099</locationY>
849823
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
850824
<connector>
851825
<targetReference>Is_Session_Still_Valid_After_Delivery</targetReference>
@@ -1096,13 +1070,13 @@ There&apos;s more smarts that could be here by adding other outcomes of the stat
10961070
<screens>
10971071
<name>Delivery_Method_Screen</name>
10981072
<label>Delivery Method Screen</label>
1099-
<locationX>2510</locationX>
1073+
<locationX>2508</locationX>
11001074
<locationY>828</locationY>
11011075
<allowBack>true</allowBack>
11021076
<allowFinish>true</allowFinish>
11031077
<allowPause>false</allowPause>
11041078
<connector>
1105-
<targetReference>Should_Navigate_Forward_or_Back</targetReference>
1079+
<targetReference>Get_Session_After_Delivery</targetReference>
11061080
</connector>
11071081
<fields>
11081082
<name>DeliveryMethod</name>
@@ -1121,18 +1095,7 @@ There&apos;s more smarts that could be here by adding other outcomes of the stat
11211095
<name>orderDeliveryMethodId</name>
11221096
</outputParameters>
11231097
</fields>
1124-
<fields>
1125-
<name>NavButtons</name>
1126-
<extensionName>c:navigationButtons</extensionName>
1127-
<fieldType>ComponentInstance</fieldType>
1128-
<inputsOnNextNavToAssocScrn>UseStoredValues</inputsOnNextNavToAssocScrn>
1129-
<isRequired>true</isRequired>
1130-
<outputParameters>
1131-
<assignToReference>navigationAction</assignToReference>
1132-
<name>selectedAction</name>
1133-
</outputParameters>
1134-
</fields>
1135-
<showFooter>false</showFooter>
1098+
<showFooter>true</showFooter>
11361099
<showHeader>false</showHeader>
11371100
</screens>
11381101
<screens>
@@ -1234,8 +1197,8 @@ There&apos;s more smarts that could be here by adding other outcomes of the stat
12341197
<description>Display the shipping address and instructions for the user to update. Place differently than other screen nodes to reduce overlapping lines.</description>
12351198
<name>Shipping_Options</name>
12361199
<label>Shipping Options</label>
1237-
<locationX>1138</locationX>
1238-
<locationY>1366</locationY>
1200+
<locationX>1266</locationX>
1201+
<locationY>843</locationY>
12391202
<allowBack>false</allowBack>
12401203
<allowFinish>true</allowFinish>
12411204
<allowPause>false</allowPause>
@@ -1280,52 +1243,6 @@ There&apos;s more smarts that could be here by adding other outcomes of the stat
12801243
</connector>
12811244
</start>
12821245
<status>Active</status>
1283-
<subflows>
1284-
<description>This calls the standard promotions calculation. Note this runs asynchrously, which differs from the other integrations which run synchronously.</description>
1285-
<name>Async_Calculate_Promotions</name>
1286-
<label>Async Calculate Promotions</label>
1287-
<locationX>2102</locationX>
1288-
<locationY>936</locationY>
1289-
<connector>
1290-
<targetReference>Shipping_Cost</targetReference>
1291-
</connector>
1292-
<flowName>Checkout_Subflow_Calculate_Promotions</flowName>
1293-
<inputAssignments>
1294-
<name>cartId</name>
1295-
<value>
1296-
<elementReference>cartId</elementReference>
1297-
</value>
1298-
</inputAssignments>
1299-
<inputAssignments>
1300-
<name>checkoutSessionId</name>
1301-
<value>
1302-
<elementReference>checkoutSessionId</elementReference>
1303-
</value>
1304-
</inputAssignments>
1305-
</subflows>
1306-
<subflows>
1307-
<description>Updates and confirms the pricing of the items in the cart. This calls the standard pricing engine. Note this runs asynchrously, which differs from the other integrations which run synchronously.</description>
1308-
<name>Async_Confirm_Price</name>
1309-
<label>Async Confirm Price</label>
1310-
<locationX>1871</locationX>
1311-
<locationY>936</locationY>
1312-
<connector>
1313-
<targetReference>Async_Calculate_Promotions</targetReference>
1314-
</connector>
1315-
<flowName>Checkout_Subflow_Confirm_Price</flowName>
1316-
<inputAssignments>
1317-
<name>cartId</name>
1318-
<value>
1319-
<elementReference>cartId</elementReference>
1320-
</value>
1321-
</inputAssignments>
1322-
<inputAssignments>
1323-
<name>checkoutSessionId</name>
1324-
<value>
1325-
<elementReference>checkoutSessionId</elementReference>
1326-
</value>
1327-
</inputAssignments>
1328-
</subflows>
13291246
<subflows>
13301247
<description>Shows the fault message. Same as other error subflows that show fault message (though copied to make the flow look nicer).</description>
13311248
<name>Error</name>

0 commit comments

Comments
 (0)