{
	"ProcessTemplates": [
		{
			"Name": "Generic JSON Order File to Salesforce",
			"Modified": "2024-06-05T09:17:24.7756767",
			"Modifier": "sampo.sarlin@frends.com",
			"Tags": [
				"Salesforce"
			],
			"TemplateProcessTags": [],
			"Description": "This process will retrieve a Salesforce order file from a local file system or an SFTP server. It will perform the necessary mapping to Salesforce Order object format, and transfer the mapped orders to Salesforce.",
			"Version": 2,
			"UniqueIdentifier": "2319ffe7-41c5-46e3-90a5-cd32a1220453",
			"ProcessVariablesJson": "{\"InServerAddress\":{\"Value\":\"\\\"192.168.0.1\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"IP address for the SFTP server.\"},\"InServerUser\":{\"Value\":\"\\\"Username\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"User for the input SFTP Server.\"},\"InServerPassword\":{\"Value\":\"\\\"Password\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"Password the input SFTP Server.\"},\"InFilePath\":{\"Value\":\"\\\"/path/\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Full path of the input file to be read.\"},\"InFileName\":{\"Value\":\"\\\"example.json\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Name of the input file to be read.\"},\"SalesforceBaseURL\":{\"Value\":\"\\\"https://example.my.salesforce.com\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The base URL for the Salesforce API.\"},\"SalesforceAuthURL\":{\"Value\":\"\\\"https://login.salesforce.com/services/oauth2/token\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The Authorisation URL for the Salesforce API.\"},\"SalesforceUser\":{\"Value\":\"\\\"SalesforceUsername\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The User for Salesforce API.\"},\"SalesforcePassword\":{\"Value\":\"\\\"Password\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The Password for Salesforce API.\"},\"SalesforceClientId\":{\"Value\":\"\\\"abcdef123456\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"The client id for Salesforce API.\"},\"SalesforceClientSecret\":{\"Value\":\"\\\"abcdef123456\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"The client secret for Salesforce API.\"},\"SalesforceSecurityToken\":{\"Value\":\"\\\"abcdef123456\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"Security Token for Authorisation.\"}}",
			"ProcessInfo": {
				"Process": {
					"Name": "Generic JSON Order File to Salesforce",
					"Modified": "2024-06-05T09:17:24.7756767",
					"Modifier": "sampo.sarlin@frends.com",
					"TagString": null,
					"Tags": [],
					"Description": "This process will retrieve a Salesforce order file from a local file system or an SFTP server. It will perform the necessary mapping to Salesforce Order object format, and transfer the mapped orders to Salesforce.",
					"Version": 1,
					"UniqueIdentifier": "5189196e-91b1-489d-a2ef-855a12fac357",
					"GraphJson": null,
					"Bpmn": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn2:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn2=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"sample-diagram\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><bpmn2:process id=\"Process_1\" isExecutable=\"false\"><bpmn2:startEvent id=\"StartEvent_1\" name=\"Manual\"><bpmn2:outgoing>Flow_0vp63o0</bpmn2:outgoing></bpmn2:startEvent><bpmn2:exclusiveGateway id=\"Gateway_030mgj0\" name=\"Server address empty?\" default=\"Flow_08ixfig\"><bpmn2:incoming>Flow_0vp63o0</bpmn2:incoming><bpmn2:outgoing>Flow_0ume82z</bpmn2:outgoing><bpmn2:outgoing>Flow_08ixfig</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_0vp63o0\" sourceRef=\"StartEvent_1\" targetRef=\"Gateway_030mgj0\" /><bpmn2:task id=\"Activity_1bj2qg0\" name=\"Read file from local fileshare\"><bpmn2:incoming>Flow_0ume82z</bpmn2:incoming><bpmn2:outgoing>Flow_1xjt2w8</bpmn2:outgoing><bpmn2:property id=\"Property_1qim9yo\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_0la0stx\"><bpmn2:sourceRef>DataObjectReference_0d8g88w</bpmn2:sourceRef><bpmn2:targetRef>Property_1qim9yo</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0ume82z\" name=\"yes\" sourceRef=\"Gateway_030mgj0\" targetRef=\"Activity_1bj2qg0\" /><bpmn2:task id=\"Activity_1vl0n54\" name=\"Read file from SFTP\"><bpmn2:incoming>Flow_08ixfig</bpmn2:incoming><bpmn2:outgoing>Flow_1ip50cr</bpmn2:outgoing><bpmn2:property id=\"Property_1kmy871\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_1chfama\"><bpmn2:sourceRef>DataObjectReference_0620lb9</bpmn2:sourceRef><bpmn2:targetRef>Property_1kmy871</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_08ixfig\" name=\"no\" sourceRef=\"Gateway_030mgj0\" targetRef=\"Activity_1vl0n54\" /><bpmn2:exclusiveGateway id=\"Gateway_1iswsd4\" name=\"Local file read successful?\" default=\"Flow_1difkoa\"><bpmn2:incoming>Flow_1xjt2w8</bpmn2:incoming><bpmn2:outgoing>Flow_1difkoa</bpmn2:outgoing><bpmn2:outgoing>Flow_19ikq78</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_1xjt2w8\" sourceRef=\"Activity_1bj2qg0\" targetRef=\"Gateway_1iswsd4\" /><bpmn2:exclusiveGateway id=\"Gateway_0tsp8gn\" name=\"SFTP file read successful?\" default=\"Flow_1n4rpt6\"><bpmn2:incoming>Flow_1ip50cr</bpmn2:incoming><bpmn2:outgoing>Flow_1n4rpt6</bpmn2:outgoing><bpmn2:outgoing>Flow_1m0ig9l</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_1ip50cr\" sourceRef=\"Activity_1vl0n54\" targetRef=\"Gateway_0tsp8gn\" /><bpmn2:intermediateThrowEvent id=\"Event_0g1c9vj\" name=\"Throw error if file was not read successfully\"><bpmn2:incoming>Flow_1difkoa</bpmn2:incoming><bpmn2:signalEventDefinition /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_1difkoa\" name=\"no\" sourceRef=\"Gateway_1iswsd4\" targetRef=\"Event_0g1c9vj\" /><bpmn2:intermediateThrowEvent id=\"Event_17mfvup\" name=\"Throw error if file was not read successfully\"><bpmn2:incoming>Flow_1n4rpt6</bpmn2:incoming><bpmn2:signalEventDefinition /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_1n4rpt6\" name=\"no\" sourceRef=\"Gateway_0tsp8gn\" targetRef=\"Event_17mfvup\" /><bpmn2:subProcess id=\"Activity_18l7wab\" name=\"For each order\"><bpmn2:incoming>Flow_12y67vc</bpmn2:incoming><bpmn2:outgoing>Flow_15qqohb</bpmn2:outgoing><bpmn2:multiInstanceLoopCharacteristics isSequential=\"true\" /><bpmn2:startEvent id=\"Event_122q24a\"><bpmn2:outgoing>Flow_0oj56hp</bpmn2:outgoing></bpmn2:startEvent><bpmn2:task id=\"Activity_1ih37ji\" name=\"Insert order information to Salesforce\"><bpmn2:incoming>Flow_0oj56hp</bpmn2:incoming><bpmn2:outgoing>Flow_00fkfaj</bpmn2:outgoing></bpmn2:task><bpmn2:exclusiveGateway id=\"Gateway_0ax1c9b\" name=\"Was insertion successful?\" default=\"Flow_036bfov\"><bpmn2:incoming>Flow_00fkfaj</bpmn2:incoming><bpmn2:outgoing>Flow_0xozbiq</bpmn2:outgoing><bpmn2:outgoing>Flow_036bfov</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_00fkfaj\" sourceRef=\"Activity_1ih37ji\" targetRef=\"Gateway_0ax1c9b\" /><bpmn2:subProcess id=\"Activity_065wnoa\" name=\"For each order item\"><bpmn2:incoming>Flow_0xozbiq</bpmn2:incoming><bpmn2:outgoing>Flow_17he6lb</bpmn2:outgoing><bpmn2:multiInstanceLoopCharacteristics isSequential=\"true\" /><bpmn2:startEvent id=\"Event_19v5p15\"><bpmn2:outgoing>Flow_1rmrjes</bpmn2:outgoing></bpmn2:startEvent><bpmn2:task id=\"Activity_1i34ld2\" name=\"Insert order items into Salesforce\"><bpmn2:incoming>Flow_1rmrjes</bpmn2:incoming><bpmn2:outgoing>Flow_1dz7gav</bpmn2:outgoing></bpmn2:task><bpmn2:exclusiveGateway id=\"Gateway_1bh6ruq\" name=\"Was Items insertion successful?\" default=\"Flow_07f7dls\"><bpmn2:incoming>Flow_1dz7gav</bpmn2:incoming><bpmn2:outgoing>Flow_05c4bky</bpmn2:outgoing><bpmn2:outgoing>Flow_07f7dls</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_1dz7gav\" sourceRef=\"Activity_1i34ld2\" targetRef=\"Gateway_1bh6ruq\" /><bpmn2:endEvent id=\"Event_1sbjind\"><bpmn2:incoming>Flow_05c4bky</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_05c4bky\" name=\"yes\" sourceRef=\"Gateway_1bh6ruq\" targetRef=\"Event_1sbjind\" /><bpmn2:sequenceFlow id=\"Flow_1rmrjes\" sourceRef=\"Event_19v5p15\" targetRef=\"Activity_1i34ld2\" /><bpmn2:endEvent id=\"Event_1x56gi1\" name=\"Error message is added to exceptions, taking next order item\"><bpmn2:incoming>Flow_07f7dls</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_07f7dls\" name=\"no\" sourceRef=\"Gateway_1bh6ruq\" targetRef=\"Event_1x56gi1\" /></bpmn2:subProcess><bpmn2:endEvent id=\"Event_19tik40\"><bpmn2:incoming>Flow_17he6lb</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_17he6lb\" sourceRef=\"Activity_065wnoa\" targetRef=\"Event_19tik40\" /><bpmn2:sequenceFlow id=\"Flow_0oj56hp\" sourceRef=\"Event_122q24a\" targetRef=\"Activity_1ih37ji\" /><bpmn2:sequenceFlow id=\"Flow_0xozbiq\" name=\"yes\" sourceRef=\"Gateway_0ax1c9b\" targetRef=\"Activity_065wnoa\" /><bpmn2:endEvent id=\"Event_0ae7nww\" name=\"Error message is added to exceptions, taking next order\"><bpmn2:incoming>Flow_036bfov</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_036bfov\" name=\"no\" sourceRef=\"Gateway_0ax1c9b\" targetRef=\"Event_0ae7nww\" /><bpmn2:association id=\"Association_1gl4atn\" sourceRef=\"Activity_1ih37ji\" targetRef=\"TextAnnotation_1wvsg8t\" /></bpmn2:subProcess><bpmn2:endEvent id=\"Event_0ffj3ws\"><bpmn2:incoming>Flow_15qqohb</bpmn2:incoming></bpmn2:endEvent><bpmn2:sequenceFlow id=\"Flow_15qqohb\" sourceRef=\"Activity_18l7wab\" targetRef=\"Event_0ffj3ws\" /><bpmn2:dataObjectReference id=\"DataObjectReference_0d8g88w\" name=\"File from local file share\" dataObjectRef=\"DataObject_1m2ahow\" /><bpmn2:dataObject id=\"DataObject_1m2ahow\" /><bpmn2:dataObjectReference id=\"DataObjectReference_0620lb9\" name=\"File from SFTP server\" dataObjectRef=\"DataObject_1h3t8ix\" /><bpmn2:dataObject id=\"DataObject_1h3t8ix\" /><bpmn2:task id=\"Activity_18lvuh1\" name=\"Transform the file data to JToken\"><bpmn2:incoming>Flow_19ikq78</bpmn2:incoming><bpmn2:incoming>Flow_1m0ig9l</bpmn2:incoming><bpmn2:outgoing>Flow_0krm6l9</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_19ikq78\" name=\"yes\" sourceRef=\"Gateway_1iswsd4\" targetRef=\"Activity_18lvuh1\" /><bpmn2:sequenceFlow id=\"Flow_1m0ig9l\" name=\"yes\" sourceRef=\"Gateway_0tsp8gn\" targetRef=\"Activity_18lvuh1\" /><bpmn2:sequenceFlow id=\"Flow_0krm6l9\" sourceRef=\"Activity_18lvuh1\" targetRef=\"Activity_1p5m6re\" /><bpmn2:scriptTask id=\"Activity_1p5m6re\" name=\"Initialize exceptions\"><bpmn2:incoming>Flow_0krm6l9</bpmn2:incoming><bpmn2:outgoing>Flow_12y67vc</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:sequenceFlow id=\"Flow_12y67vc\" sourceRef=\"Activity_1p5m6re\" targetRef=\"Activity_18l7wab\" /><bpmn2:group id=\"Group_1jxt3op\" categoryValueRef=\"CategoryValue_0ydjbv4\" /><bpmn2:group id=\"Group_0l5ifn1\" categoryValueRef=\"CategoryValue_1mrcy36\" /><bpmn2:textAnnotation id=\"TextAnnotation_1wvsg8t\"><bpmn2:text>JSON data is mapped and inserted to Salesforce object called Order.</bpmn2:text></bpmn2:textAnnotation><bpmn2:textAnnotation id=\"TextAnnotation_09wlz8e\"><bpmn2:text>JSON data is mapped and inserted to Salesforce object called OrderItem.</bpmn2:text></bpmn2:textAnnotation><bpmn2:textAnnotation id=\"TextAnnotation_1lu8grr\"><bpmn2:text>Returns are used in this loop to ensure the process doesn't stop to a single error</bpmn2:text></bpmn2:textAnnotation><bpmn2:textAnnotation id=\"TextAnnotation_0v0j7v2\"><bpmn2:text>A variable for exceptions is initialized to help pinpoint the errors</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_0nfm45c\" sourceRef=\"Activity_1p5m6re\" targetRef=\"TextAnnotation_0v0j7v2\" /><bpmn2:association id=\"Association_1oia7rw\" sourceRef=\"Activity_1i34ld2\" targetRef=\"TextAnnotation_09wlz8e\" /><bpmn2:association id=\"Association_0lzz701\" sourceRef=\"Event_0ae7nww\" targetRef=\"TextAnnotation_1lu8grr\" /></bpmn2:process><bpmn2:category id=\"Category_1prkvxm\"><bpmn2:categoryValue id=\"CategoryValue_0ydjbv4\" value=\"Get JSON order file and transform to JToken\" /></bpmn2:category><bpmn2:category id=\"Category_1ktb3ne\"><bpmn2:categoryValue id=\"CategoryValue_1mrcy36\" value=\"Insert all order and order item data into Salesforce\" /></bpmn2:category><bpmndi:BPMNDiagram id=\"BPMNDiagram_1\"><bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\"><bpmndi:BPMNShape id=\"TextAnnotation_0v0j7v2_di\" bpmnElement=\"TextAnnotation_0v0j7v2\"><dc:Bounds x=\"1040\" y=\"100\" width=\"150\" height=\"60\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_1\"><dc:Bounds x=\"342\" y=\"212\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"342\" y=\"248\" width=\"37\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_030mgj0_di\" bpmnElement=\"Gateway_030mgj0\" isMarkerVisible=\"true\"><dc:Bounds x=\"505\" y=\"205\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"565\" y=\"216\" width=\"76\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1bj2qg0_di\" bpmnElement=\"Activity_1bj2qg0\"><dc:Bounds x=\"620\" y=\"59\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1vl0n54_di\" bpmnElement=\"Activity_1vl0n54\"><dc:Bounds x=\"620\" y=\"330\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1iswsd4_di\" bpmnElement=\"Gateway_1iswsd4\" isMarkerVisible=\"true\"><dc:Bounds x=\"785\" y=\"74\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"776\" y=\"37\" width=\"69\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_0tsp8gn_di\" bpmnElement=\"Gateway_0tsp8gn\" isMarkerVisible=\"true\"><dc:Bounds x=\"785\" y=\"345\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"776\" y=\"308\" width=\"71\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_17mfvup_di\" bpmnElement=\"Event_17mfvup\"><dc:Bounds x=\"792\" y=\"446\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"769\" y=\"489\" width=\"82\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0g1c9vj_di\" bpmnElement=\"Event_0g1c9vj\"><dc:Bounds x=\"792\" y=\"182\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"769\" y=\"225\" width=\"82\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0ffj3ws_di\" bpmnElement=\"Event_0ffj3ws\"><dc:Bounds x=\"2362\" y=\"212\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_18l7wab_di\" bpmnElement=\"Activity_18l7wab\" isExpanded=\"true\"><dc:Bounds x=\"1270\" y=\"74\" width=\"988\" height=\"408\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_122q24a_di\" bpmnElement=\"Event_122q24a\"><dc:Bounds x=\"1310\" y=\"214\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1ih37ji_di\" bpmnElement=\"Activity_1ih37ji\"><dc:Bounds x=\"1400\" y=\"192\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_0ax1c9b_di\" bpmnElement=\"Gateway_0ax1c9b\" isMarkerVisible=\"true\"><dc:Bounds x=\"1565\" y=\"207\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1557\" y=\"170\" width=\"66\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_065wnoa_di\" bpmnElement=\"Activity_065wnoa\" isExpanded=\"true\"><dc:Bounds x=\"1690\" y=\"120\" width=\"480\" height=\"320\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_19v5p15_di\" bpmnElement=\"Event_19v5p15\"><dc:Bounds x=\"1730\" y=\"214\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1i34ld2_di\" bpmnElement=\"Activity_1i34ld2\"><dc:Bounds x=\"1830\" y=\"192\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_1bh6ruq_di\" bpmnElement=\"Gateway_1bh6ruq\" isMarkerVisible=\"true\"><dc:Bounds x=\"1985\" y=\"207\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1981\" y=\"157\" width=\"58\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1sbjind_di\" bpmnElement=\"Event_1sbjind\"><dc:Bounds x=\"2102\" y=\"214\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1x56gi1_di\" bpmnElement=\"Event_1x56gi1\"><dc:Bounds x=\"1992\" y=\"322\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1966\" y=\"365\" width=\"89\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_1dz7gav_di\" bpmnElement=\"Flow_1dz7gav\"><di:waypoint x=\"1930\" y=\"232\" /><di:waypoint x=\"1985\" y=\"232\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_05c4bky_di\" bpmnElement=\"Flow_05c4bky\"><di:waypoint x=\"2035\" y=\"232\" /><di:waypoint x=\"2102\" y=\"232\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2060\" y=\"214\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1rmrjes_di\" bpmnElement=\"Flow_1rmrjes\"><di:waypoint x=\"1766\" y=\"232\" /><di:waypoint x=\"1830\" y=\"232\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_07f7dls_di\" bpmnElement=\"Flow_07f7dls\"><di:waypoint x=\"2010\" y=\"257\" /><di:waypoint x=\"2010\" y=\"322\" /><bpmndi:BPMNLabel><dc:Bounds x=\"2019\" y=\"285\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Event_19tik40_di\" bpmnElement=\"Event_19tik40\"><dc:Bounds x=\"2202\" y=\"214\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0ae7nww_di\" bpmnElement=\"Event_0ae7nww\"><dc:Bounds x=\"1572\" y=\"322\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1473\" y=\"330\" width=\"89\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_00fkfaj_di\" bpmnElement=\"Flow_00fkfaj\"><di:waypoint x=\"1500\" y=\"232\" /><di:waypoint x=\"1565\" y=\"232\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_17he6lb_di\" bpmnElement=\"Flow_17he6lb\"><di:waypoint x=\"2170\" y=\"232\" /><di:waypoint x=\"2202\" y=\"232\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0oj56hp_di\" bpmnElement=\"Flow_0oj56hp\"><di:waypoint x=\"1346\" y=\"232\" /><di:waypoint x=\"1400\" y=\"232\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0xozbiq_di\" bpmnElement=\"Flow_0xozbiq\"><di:waypoint x=\"1615\" y=\"232\" /><di:waypoint x=\"1690\" y=\"232\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1613\" y=\"214\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_036bfov_di\" bpmnElement=\"Flow_036bfov\"><di:waypoint x=\"1590\" y=\"257\" /><di:waypoint x=\"1590\" y=\"322\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1599\" y=\"284\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1gl4atn_di\" bpmnElement=\"Association_1gl4atn\"><di:waypoint x=\"1450\" y=\"192\" /><di:waypoint x=\"1450\" y=\"49\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"DataObjectReference_0d8g88w_di\" bpmnElement=\"DataObjectReference_0d8g88w\"><dc:Bounds x=\"652\" y=\"-35\" width=\"36\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"627\" y=\"-74\" width=\"86\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataObjectReference_0620lb9_di\" bpmnElement=\"DataObjectReference_0620lb9\"><dc:Bounds x=\"652\" y=\"475\" width=\"36\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"633\" y=\"532\" width=\"75\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_18lvuh1_di\" bpmnElement=\"Activity_18lvuh1\"><dc:Bounds x=\"910\" y=\"190\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1p5m6re_di\" bpmnElement=\"Activity_1p5m6re\"><dc:Bounds x=\"1075\" y=\"215\" width=\"30\" height=\"30\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Association_0nfm45c_di\" bpmnElement=\"Association_0nfm45c\"><di:waypoint x=\"1090\" y=\"215\" /><di:waypoint x=\"1090\" y=\"160\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Group_1jxt3op_di\" bpmnElement=\"Group_1jxt3op\"><dc:Bounds x=\"430\" y=\"-140\" width=\"770\" height=\"760\" /><bpmndi:BPMNLabel><dc:Bounds x=\"774\" y=\"-133\" width=\"84\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_0l5ifn1_di\" bpmnElement=\"Group_0l5ifn1\"><dc:Bounds x=\"1240\" y=\"-140\" width=\"1080\" height=\"760\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1745\" y=\"-133\" width=\"72\" height=\"53\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_1wvsg8t_di\" bpmnElement=\"TextAnnotation_1wvsg8t\"><dc:Bounds x=\"1400\" y=\"-20\" width=\"129.9935567010309\" height=\"68.98932253313696\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_09wlz8e_di\" bpmnElement=\"TextAnnotation_09wlz8e\"><dc:Bounds x=\"1830\" y=\"505\" width=\"129.9935567010309\" height=\"68.98932253313696\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"TextAnnotation_1lu8grr_di\" bpmnElement=\"TextAnnotation_1lu8grr\"><dc:Bounds x=\"1540\" y=\"505\" width=\"159.98641304347828\" height=\"69.29347826086956\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0vp63o0_di\" bpmnElement=\"Flow_0vp63o0\"><di:waypoint x=\"378\" y=\"230\" /><di:waypoint x=\"505\" y=\"230\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataInputAssociation_0la0stx_di\" bpmnElement=\"DataInputAssociation_0la0stx\"><di:waypoint x=\"670\" y=\"15\" /><di:waypoint x=\"670\" y=\"59\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0ume82z_di\" bpmnElement=\"Flow_0ume82z\"><di:waypoint x=\"530\" y=\"205\" /><di:waypoint x=\"530\" y=\"99\" /><di:waypoint x=\"620\" y=\"99\" /><bpmndi:BPMNLabel><dc:Bounds x=\"567\" y=\"81\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataInputAssociation_1chfama_di\" bpmnElement=\"DataInputAssociation_1chfama\"><di:waypoint x=\"670\" y=\"475\" /><di:waypoint x=\"670\" y=\"410\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_08ixfig_di\" bpmnElement=\"Flow_08ixfig\"><di:waypoint x=\"530\" y=\"255\" /><di:waypoint x=\"530\" y=\"370\" /><di:waypoint x=\"620\" y=\"370\" /><bpmndi:BPMNLabel><dc:Bounds x=\"539\" y=\"311\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1xjt2w8_di\" bpmnElement=\"Flow_1xjt2w8\"><di:waypoint x=\"720\" y=\"99\" /><di:waypoint x=\"785\" y=\"99\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1ip50cr_di\" bpmnElement=\"Flow_1ip50cr\"><di:waypoint x=\"720\" y=\"370\" /><di:waypoint x=\"785\" y=\"370\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1difkoa_di\" bpmnElement=\"Flow_1difkoa\"><di:waypoint x=\"810\" y=\"124\" /><di:waypoint x=\"810\" y=\"182\" /><bpmndi:BPMNLabel><dc:Bounds x=\"819\" y=\"152\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1n4rpt6_di\" bpmnElement=\"Flow_1n4rpt6\"><di:waypoint x=\"810\" y=\"395\" /><di:waypoint x=\"810\" y=\"446\" /><bpmndi:BPMNLabel><dc:Bounds x=\"819\" y=\"420\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_15qqohb_di\" bpmnElement=\"Flow_15qqohb\"><di:waypoint x=\"2258\" y=\"230\" /><di:waypoint x=\"2362\" y=\"230\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_19ikq78_di\" bpmnElement=\"Flow_19ikq78\"><di:waypoint x=\"835\" y=\"99\" /><di:waypoint x=\"960\" y=\"99\" /><di:waypoint x=\"960\" y=\"190\" /><bpmndi:BPMNLabel><dc:Bounds x=\"967\" y=\"143\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1m0ig9l_di\" bpmnElement=\"Flow_1m0ig9l\"><di:waypoint x=\"835\" y=\"370\" /><di:waypoint x=\"960\" y=\"370\" /><di:waypoint x=\"960\" y=\"270\" /><bpmndi:BPMNLabel><dc:Bounds x=\"967\" y=\"319\" width=\"17\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0krm6l9_di\" bpmnElement=\"Flow_0krm6l9\"><di:waypoint x=\"1010\" y=\"230\" /><di:waypoint x=\"1075\" y=\"230\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_12y67vc_di\" bpmnElement=\"Flow_12y67vc\"><di:waypoint x=\"1105\" y=\"230\" /><di:waypoint x=\"1270\" y=\"230\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_1oia7rw_di\" bpmnElement=\"Association_1oia7rw\"><di:waypoint x=\"1880\" y=\"272\" /><di:waypoint x=\"1880\" y=\"505\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Association_0lzz701_di\" bpmnElement=\"Association_0lzz701\"><di:waypoint x=\"1590\" y=\"358\" /><di:waypoint x=\"1590\" y=\"505\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn2:definitions>",
					"ElementParameters": "[{\"Id\":\"StartEvent_1\",\"Type\":0,\"Parameters\":{},\"SelectedTypeId\":\"ManualTrigger\",\"PromoteResultAs\":null,\"Name\":\"Manual\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_030mgj0\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"String.IsNullOrEmpty(#var.InServerAddress)\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Server address empty?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0ume82z\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1bj2qg0\",\"Type\":1,\"Parameters\":{\"input\":{\"Path\":{\"mode\":\"text\",\"value\":\"{{#var.InFilePath}}/{{#var.InFileName}}\"}},\"options\":{\"UseGivenUserCredentialsForRemoteConnections\":{\"mode\":\"toggle\",\"value\":false},\"UserName\":{\"mode\":\"text\",\"value\":\"domain\\\\username\"},\"Password\":{\"mode\":\"text\",\"value\":\"\"},\"FileEncoding\":{\"mode\":\"select\",\"value\":\"UTF8\"},\"EnableBom\":{\"mode\":\"toggle\",\"value\":false},\"EncodingInString\":{\"mode\":\"text\",\"value\":\"\"}}},\"SelectedTypeId\":\"/ProcessTask/7bef1e4f-5122-471b-8456-e52a2b0e9ba0/v1\",\"PromoteResultAs\":null,\"Name\":\"Read file from local fileshare\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_08ixfig\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1vl0n54\",\"Type\":1,\"Parameters\":{\"input\":{\"Path\":{\"mode\":\"text\",\"value\":\"{{#var.InFilePath}}/{{#var.InFileName}}\"},\"FileEncoding\":{\"mode\":\"select\",\"value\":\"ANSI\"},\"EnableBom\":{\"mode\":\"toggle\",\"value\":false},\"EncodingInString\":{\"mode\":\"text\",\"value\":\"\"}},\"connection\":{\"ConnectionTimeout\":{\"mode\":\"integer\",\"value\":60},\"Address\":{\"mode\":\"csharp\",\"value\":\"#var.InServerAddress\"},\"Port\":{\"mode\":\"integer\",\"value\":\"23\"},\"Authentication\":{\"mode\":\"select\",\"value\":\"UsernamePassword\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.InServerUser\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.InServerPassword\"},\"PrivateKeyFile\":{\"mode\":\"text\",\"value\":\"\"},\"PrivateKeyString\":{\"mode\":\"text\",\"value\":\"\"},\"PrivateKeyPassphrase\":{\"mode\":\"text\",\"value\":\"\"},\"ServerFingerPrint\":{\"mode\":\"text\",\"value\":\"\"},\"HostKeyAlgorithm\":{\"mode\":\"select\",\"value\":\"Any\"},\"UseKeyboardInteractiveAuthentication\":{\"mode\":\"toggle\",\"value\":false},\"PromptAndResponse\":[],\"BufferSize\":{\"mode\":\"integer\",\"value\":32}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/7fe311ed-3e37-4669-8c6b-9e5792e996d0/v1\",\"PromoteResultAs\":null,\"Name\":\"Read file from SFTP\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1iswsd4\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"!String.IsNullOrWhiteSpace(#result[Read file from local fileshare].Content)\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Local file read successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0tsp8gn\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"!String.IsNullOrWhiteSpace(#result[Read file from SFTP].Content)\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"SFTP file read successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0g1c9vj\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"An error occurred while reading order file {{#var.InFilePath}}/{{#var.InFileName}}: File is empty.\"},\"bypassGlobalExceptionHandler\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1difkoa\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_17mfvup\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"An error occurred reading order file {{#var.InFilePath}}/{{#var.InFileName}} from SFTP server {{#var.InServerAddress}}: File is empty.\"},\"bypassGlobalExceptionHandler\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1n4rpt6\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_122q24a\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_18l7wab\",\"Type\":10,\"Parameters\":{\"variable\":\"salesOrder\",\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Transform the file data to JToken].Jtoken\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"For each order\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1ih37ji\",\"Type\":1,\"Parameters\":{\"input\":{\"Domain\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceBaseURL\"},\"SObjectAsJson\":{\"mode\":\"csharp\",\"value\":\"JObject.FromObject(new {\\r\\n    AccountId = #var.salesOrder[\\\"AccountId\\\"],\\r\\n    BillingCity = #var.salesOrder[\\\"BillingCity\\\"],\\r\\n    BillingCountry = #var.salesOrder[\\\"BillingCountry\\\"],\\r\\n    BillingLatitude = #var.salesOrder[\\\"BillingLatitude\\\"],\\r\\n    BillingLongitude = #var.salesOrder[\\\"BillingLongitude\\\"],\\r\\n    BillingGeocodeAccuracy = #var.salesOrder[\\\"BillingGeocodeAccuracy\\\"],\\r\\n    BillingPostalCode = #var.salesOrder[\\\"BillingPostalCode\\\"],\\r\\n    BillingState = #var.salesOrder[\\\"BillingState\\\"],\\r\\n    BillingStreet = #var.salesOrder[\\\"BillingStreet\\\"],\\r\\n    BillToContactId = #var.salesOrder[\\\"BillToContactId\\\"],\\r\\n    CompanyAuthorizedById = #var.salesOrder[\\\"CompanyAuthorizedById\\\"],\\r\\n    CompanyAuthorizedDate = #var.salesOrder[\\\"CompanyAuthorizedDate\\\"],\\r\\n    ContractId = #var.salesOrder[\\\"ContractId\\\"],\\r\\n    CustomerAuthorizedById = #var.salesOrder[\\\"CustomerAuthorizedById\\\"],\\r\\n    CustomerAuthorizedDate = #var.salesOrder[\\\"CustomerAuthorizedDate\\\"],\\r\\n    Description = #var.salesOrder[\\\"Description\\\"],\\r\\n    EffectiveDate = #var.salesOrder[\\\"EffectiveDate\\\"],\\r\\n    EndDate = #var.salesOrder[\\\"EndDate\\\"],\\r\\n    IsReductionOrder = #var.salesOrder[\\\"IsReductionOrder\\\"],\\r\\n    Name = #var.salesOrder[\\\"Name\\\"],\\r\\n    OrderReferenceNumber = #var.salesOrder[\\\"OrderReferenceNumber\\\"],\\r\\n    OriginalOrderId = #var.salesOrder[\\\"OriginalOrderId\\\"],\\r\\n    OwnerId = #var.salesOrder[\\\"OwnerId\\\"],\\r\\n    PoDate = #var.salesOrder[\\\"PoDate\\\"],\\r\\n    PoNumber = #var.salesOrder[\\\"PoNumber\\\"],\\r\\n    Pricebook2Id = #var.salesOrder[\\\"Pricebook2Id\\\"],\\r\\n    ShippingCity = #var.salesOrder[\\\"ShippingCity\\\"],\\r\\n    ShippingCountry = #var.salesOrder[\\\"ShippingCountry\\\"],\\r\\n    ShippingLatitude = #var.salesOrder[\\\"ShippingLatitude\\\"],\\r\\n    ShippingLongitude = #var.salesOrder[\\\"ShippingLongitude\\\"],\\r\\n    ShippingGeocodeAccuracy = #var.salesOrder[\\\"ShippingGeocodeAccuracy\\\"],\\r\\n    ShippingPostalCode = #var.salesOrder[\\\"ShippingPostalCode\\\"],\\r\\n    ShippingState = #var.salesOrder[\\\"ShippingState\\\"],\\r\\n    ShippingStreet = #var.salesOrder[\\\"ShippingStreet\\\"],\\r\\n    ShipToContactId = #var.salesOrder[\\\"ShipToContactId\\\"],\\r\\n    Status = #var.salesOrder[\\\"Status\\\"],\\r\\n    Type = #var.salesOrder[\\\"Type\\\"]\\r\\n}).ToString();\\r\\n\"},\"SObjectType\":{\"mode\":\"text\",\"value\":\"Order\"}},\"options\":{\"AuthenticationMethod\":{\"mode\":\"select\",\"value\":\"OAuth2WithPassword\"},\"AccessToken\":{\"mode\":\"text\",\"value\":\"\"},\"AuthUrl\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceAuthURL\"},\"ClientID\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientId\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientSecret\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceUser\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforcePassword\"},\"SecurityToken\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceSecurityToken\"},\"ReturnAccessToken\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/c5fbbd06-fd05-4d72-af74-ae8805a458de/v1\",\"PromoteResultAs\":null,\"Name\":\"Insert order information to Salesforce\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_0ax1c9b\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.RequestIsSuccessful\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Was insertion successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_19v5p15\",\"Type\":13,\"Parameters\":{},\"SelectedTypeId\":\"\",\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_065wnoa\",\"Type\":10,\"Parameters\":{\"variable\":\"salesOrderItem\",\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.salesOrder.items\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"For each order item\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1i34ld2\",\"Type\":1,\"Parameters\":{\"input\":{\"Domain\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceBaseURL\"},\"SObjectAsJson\":{\"mode\":\"csharp\",\"value\":\"JObject.FromObject(new {\\r\\n    Description = #var.salesOrderItem[\\\"Description\\\"],\\r\\n    OrderId = #var.salesOrderItem[\\\"OrderId\\\"],\\r\\n    OriginalOrderItemId = #var.salesOrderItem[\\\"ItemId\\\"],\\r\\n    PricebookEntryId = #var.salesOrderItem[\\\"PricebookEntryId\\\"],\\r\\n    Product2Id = #var.salesOrderItem[\\\"Product2Id\\\"],\\r\\n    Quantity = #var.salesOrderItem[\\\"Quantity\\\"],\\r\\n    ServiceDate = #var.salesOrderItem[\\\"ServiceDate\\\"],\\r\\n    UnitPrice = #var.salesOrderItem[\\\"UnitPrice\\\"],\\r\\n}).ToString();\\r\\n\"},\"SObjectType\":{\"mode\":\"text\",\"value\":\"OrderItem\"}},\"options\":{\"AuthenticationMethod\":{\"mode\":\"select\",\"value\":\"OAuth2WithPassword\"},\"AccessToken\":{\"mode\":\"text\",\"value\":\"\"},\"AuthUrl\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceAuthURL\"},\"ClientID\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientId\"},\"ClientSecret\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceClientSecret\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceUser\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforcePassword\"},\"SecurityToken\":{\"mode\":\"csharp\",\"value\":\"#var.SalesforceSecurityToken\"},\"ReturnAccessToken\":{\"mode\":\"toggle\",\"value\":false}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/c5fbbd06-fd05-4d72-af74-ae8805a458de/v1\",\"PromoteResultAs\":null,\"Name\":\"Insert order items into Salesforce\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1bh6ruq\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result.RequestIsSuccessful\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Was Items insertion successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_05c4bky\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1sbjind\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_19tik40\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0ffj3ws\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions != \\\"\\\" ? \\\"Orders successfully posted to Salesforce. Following exceptions occurred: \\\" + #var.exceptions.ToString(): \\\"Orders successfully posted to Salesforce.\\\"\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataObjectReference_0d8g88w\",\"Type\":21,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"File from local file share\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataObjectReference_0620lb9\",\"Type\":21,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"File from SFTP server\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"FrendsTestElementId\",\"Type\":19,\"Parameters\":{\"input\":{\"Json\":{\"mode\":\"json\",\"value\":\"\"}}},\"SelectedTypeId\":\"/ProcessTask/fc3f0ffd-4f6d-4a54-8d19-ef4d00a6b1a6/v2\",\"PromoteResultAs\":null,\"Name\":\"Test\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_18lvuh1\",\"Type\":1,\"Parameters\":{\"input\":{\"Json\":{\"mode\":\"csharp\",\"value\":\"#result.Content\"}}},\"SelectedTypeId\":\"/ProcessTask/fc3f0ffd-4f6d-4a54-8d19-ef4d00a6b1a6/v2\",\"PromoteResultAs\":null,\"Name\":\"Transform the file data to JToken\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_19ikq78\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1m0ig9l\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0xozbiq\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1p5m6re\",\"Type\":12,\"Parameters\":{\"variableName\":\"exceptions\",\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"\\\"\\\"\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Initialize exceptions\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_036bfov\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0ae7nww\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions += $\\\"\\\\nAn error occurred inserting order: {#var.salesOrder[\\\"OrderNumber\\\"]} in Salesforce.\\\";\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_07f7dls\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1x56gi1\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#var.exceptions += $\\\"\\\\nAn error occurred inserting order item: {#var.salesOrderItem[\\\"OrderItemNumber\\\"]} for order: {#var.salesOrderItem[\\\"OrderId\\\"]} in Salesforce.\\\";\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null}]",
					"ManualTriggerJson": "[]",
					"IsSubprocess": false,
					"TriggersJson": "[{\"$type\":\"ManualTrigger\",\"config\":{},\"name\":\"Manual\",\"id\":\"StartEvent_1\",\"shouldNotLogParameters\":null}]",
					"AssemblyName": null,
					"PackageId": null,
					"PackageVersion": null,
					"UsedTasksJson": "[\"/ProcessTask/7BEF1E4F-5122-471B-8456-E52A2B0E9BA0/v1\",\"/ProcessTask/7FE311ED-3E37-4669-8C6B-9E5792E996D0/v1\",\"/ProcessTask/FC3F0FFD-4F6D-4A54-8D19-EF4D00A6B1A6/v2\",\"/ProcessTask/C5FBBD06-FD05-4D72-AF74-AE8805A458DE/v1\"]",
					"UsedSubprocessesJson": "{}",
					"ProcessExecutionVersion": "",
					"FrendsVersion": "5.7.2.1685",
					"TargetFramework": "net8.0",
					"StaticRequiredEnvironmentVariables": [],
					"RequiredEnvironmentVariables": [],
					"PromotedResultVariablesJson": "[]",
					"MajorVersion": 1,
					"MinorVersion": 1,
					"IsForMonitoringRule": false,
					"ProcessVariablesJson": null
				},
				"LinkedTasks": {
					"5189196e-91b1-489d-a2ef-855a12fac357": [
						{
							"Id": "7bef1e4f-5122-471b-8456-e52a2b0e9ba0",
							"PackageId": "Frends.Files.Read",
							"PackageVersion": "1.0.0",
							"Name": "Frends.Files.Read.Files.Read(Input, Options)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "7fe311ed-3e37-4669-8c6b-9e5792e996d0",
							"PackageId": "Frends.SFTP.ReadFile",
							"PackageVersion": "2.1.0",
							"Name": "Frends.SFTP.ReadFile.SFTP.ReadFile(Input, Connection, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "fc3f0ffd-4f6d-4a54-8d19-ef4d00a6b1a6",
							"PackageId": "Frends.JSON.ConvertJSONStringToJToken",
							"PackageVersion": "1.0.1",
							"Name": "Frends.JSON.ConvertJSONStringToJToken.JSON.ConvertJSONStringToJToken(Input)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "c5fbbd06-fd05-4d72-af74-ae8805a458de",
							"PackageId": "Frends.Salesforce.CreateSObject",
							"PackageVersion": "1.0.1",
							"Name": "Frends.Salesforce.CreateSObject.Salesforce.CreateSObject(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						}
					]
				},
				"LinkedSubProcess": {},
				"Version": "Acc41"
			}
		}
	]
}