logo

NJP

Mohammed Khadeer on LinkedIn: Utils Notes

Import · Dec 14, 2022 · article

Let's clarify the differences between Fix Script and Background Script with simpler language and examples: 1. Progress Monitoring Fix Script: When you run a Fix Script, you can see how far along it is in completing its task. This is like watching a download bar that shows you the percentage of completion. You know exactly how much is done and how much is left. Background Script: With a Background Script, there's no progress indicator. It’s like sending an email without knowing when it will be delivered—you just have to wait until it's done without any updates. Example: Fix Script: Updating 10,000 records in the system, you can see that 4,000 records have been updated so far. Background Script: Updating the same 10,000 records, you won’t know how many have been updated until the script finishes. 2. Stopping the Script Fix Script: If you realize something is wrong while a Fix Script is running, you can stop it midway. It's like hitting "cancel" on a file download that’s taking too long or seems incorrect. Background Script: If you want to stop a Background Script, you can’t do it directly. It’s like starting a print job and then needing to go into the printer settings through another computer to cancel it. Example: Fix Script: You start updating records, but you notice an error in the script logic. You can stop the Fix Script immediately before it updates all the records. Background Script: You start updating records but then realize there's a mistake. You need to log into a different session to manually stop the script, which is less convenient. 3. Running in Background vs. Foreground Fix Script: A Fix Script can run in the background, meaning you can continue using the system without waiting for the script to finish. It’s like putting your clothes in a washing machine and doing other things while they get cleaned. Background Script: A Background Script runs in the foreground, so you have to wait until it’s done before you can do anything else in that session. It’s like waiting in line at a coffee shop—you can’t do anything else until you get your coffee. Example: Fix Script: You start a Fix Script to update records and continue working on other tasks while the script runs in the background. Background Script: You run a Background Script, and you have to wait until it’s done before you can use the system for anything else. 4. Usage in Scoped Applications Fix Script: You can run a Fix Script in both global and scoped applications, giving you flexibility. It’s like being able to use the same key to unlock doors in different buildings. Background Script: A Background Script can only be run in the global environment, not in scoped applications. It’s like having a key that only works for one specific building. Example: Fix Script: You want to update records in a scoped application, so you use a Fix Script to do it. Background Script: You can only use Background Scripts in the main/global environment, not in any specific scoped applications.

To view or add a comment, sign in

View original source

https://www.linkedin.com/feed/update/urn:li:activity:7008535350226677760/?utm_source=share&utm_medium=member_desktop