How To Integrate Spryker With Alumio?
To begin with, go to Connections (on the left panel) of Alumio. Step X1: Click on Routes (under Connections). Step X2: Utilize the filter Name and search for Spryker. Step X3: The four routes created for Spryker will be shown.Merchant Data from sFTP to Spryker
Step 1: Click on Merchant Data from sFTP to Spryker- You will observe that there are routes consisting of Incoming Configuration as well as Outgoing Configuration. While the former is responsible for data import, the latter is responsible for data export.
- There is also an option to Activate retrying of failed tasks. Should you choose to activate it, you can customize its settings on various parameters such as Number of attempted retries, Retry interval in minutes, Statuses (Failed/Skipped), Enable realtime processing.
Enabling Real Time Processing (Going The Manual Way)
Step 1: Go to Connections and click on Routes again and run the Incoming Configuration (sFTP- Get Merchant Data). Step 2: Click on Logs and then on the refresh button at the top right corner. Step 3: You will observe that a new process has started. Click on the Logs button for the new process. The logs will open and you will see the tasks that are created, Alumio exercising API calls to the end-points which are accepted by Spryker, the finished tasks, etc) Step 4: You can also take a deeper look at the incoming configuration by clicking on the Edit button.- You can view the Subscriber, Filesystem, Patterns (for example, merchant_data.csv), Parser, etc.
- There is also an option to Limit the number of files and Limit the number of parsed items. The latter can come handy if the file size is very big. For example, if you want to read 10,000 files at a time, then it can be configured from here (Limit the number of parsed items).
- You can also add Plugins for the incoming configuration to activate some extra functionalities whenever required.
- There is also an option to Add Entity Transformers.
Not Enabling Real Time Processing
Let’s consider a scenario where we do not Enable real time processing. In this case, when you pull some information, new tasks will be reflected when you go back to the Dashboard. If you open it, all merchant data will pop up in a list.- If you open a task and click on Entity Data, you can visualize the data pulled from the CSV, translated to a JSON format by Alumio. It makes data processing easy for the data strip when the router starts functioning.
Order Data from Spryker to sFTP
Step 1: Repeat the steps X1, X2, and X3 (mentioned in the beginning) Step 2: Click on Order Data from Spryker to sFTP Step 3: Once again, you will come across the Incoming Configuration and Outgoing Configuration to pull the order information from Spryker and create the orders on sFTP respectively. The entire process will run automatically if you Enable real-time processing. Step 4: Click on Scheduled Jobs. There will be a scheduled job present attached to this route - Order Data from Spryker to SFTP- Incoming & Outgoing. From here, you can set the time interval for the tasks executed. For example, you can set it at 1 minute, 2 minutes, and so on. Step 5: Now, click on Logs. Here, you can view all the tasks that are being executed for the time interval you have set.Product Offer from sFTP to Spryker
Step 1: Repeat the steps X1, X2, and X3 (mentioned in the beginning). Step 2: Click on the Incoming Configuration of Product Offer from sFTP to Spryker to begin with. Step 3: Click on the “…” button on the top-right corner and click on Run Route. A pop-up will appear at the top which says “Subscriber has been consumed”. Step 3: Now, click on the Dashboard (on the left panel) of Alumio. You will see that there are zero New Tasks being shown. If you click on Click to view more information on the pop-up being shown above. You will see every iota of data is being filtered since the Delta Storage mechanism is being implemented (in this scenario). It is used to detect changes. Step 4: Click on the Storages (on the left panel) of Alumio and then on Storages again**.** Step 5: Click on [Spryker PoC] Consumed Product Offers and open it. Step 6: Next, click on the Entities. It lists all the product offers. If you open any of the Identifiers, you will see it encapsulates the entirety of data. Now, it compares whether there has been a change in the data. If yes, it will filter the data, or else, it will simply update the storage and create a new dial. For a test run, here is what you can do. For example,- You can change the value of the variable quantity_max to 14 and click on the Save button. This will make the identifier data different from what had been retrieved from the CSV.
- You can also delete an Identifier of your choice.