How trailheadapps/purealoe-lwc works
Pure Aloe is a Salesforce agricultural and product-distribution sample app. Users manage harvest fields through list, map, and record views; control irrigation; and assemble merchandise bundles. Salesforce data and Platform Events support the application, including distributor-system updates. The README also identifies Einstein capabilities, represented here as an additional product branch; its implementation relationships were not sampled, so those links are left unverified.
Main entry points: Harvest_Field__c.object-meta.xml Field Records · harvestFieldList.js Field Views · bundle.js Bundle Builder · Bundle_Item__c.object-meta.xml Bundle Items
Components 20
Field Operations
- Field Views
force-app/main/default/lwc/harvestFieldList/harvestFieldList.js - Field Map
force-app/main/default/lwc/harvestFieldMap/harvestFieldMap.js - Field Record
force-app/main/default/lwc/harvestField/harvestField.js - Irrigation Flow
force-app/main/default/flows/IrrigationManagement.flow-meta.xml - Irrigation Controls
force-app/main/default/lwc/irrigationManager/irrigationManager.js - Harvest Records
force-app/main/default/objects/Harvest__c/Harvest__c.object-meta.xml
Product Distribution
- Merchandise Catalog
force-app/main/default/lwc/merchandiseList/merchandiseList.js - Bundle Builder
force-app/main/default/lwc/bundle/bundle.js - Bundle Data API
force-app/main/default/classes/BundleController.cls - Bundle Records
force-app/main/default/objects/Bundle__c/Bundle__c.object-meta.xml - Bundle Items
force-app/main/default/objects/Bundle_Item__c/Bundle_Item__c.object-meta.xml
Salesforce Platform
- Field Records
force-app/main/default/objects/Harvest_Field__c/Harvest_Field__c.object-meta.xml - Field Data API
force-app/main/default/classes/HarvestFieldController.cls - Platform Events
force-app/main/default/objects/Field_Status_Change__e/Field_Status_Change__e.object-meta.xml
Einstein Services
- Einstein API Client
force-app/main/default/classes/Einstein_HttpClient.cls - Prediction Service
force-app/main/default/classes/Einstein_PredictionService.cls - Vision Service
force-app/main/default/classes/VisionService.cls
Other components
- Salesforce User
- Distributor Systems
- Einstein Platform
Connections 23
- Salesforce User → Field Views: views fields
README.md - Field Views → Field Data API: loads fields
force-app/main/default/lwc/harvestFieldList/harvestFieldList.js - Field Data API → Field Records: reads fields
- Field Views → Field Map: selects map
- Field Map → Field Record: selects record
force-app/main/default/lwc/harvestFieldMap/harvestFieldMap.js - Field Record → Field Records: reads and updates
- Salesforce User → Irrigation Flow: starts irrigation
README.md - Irrigation Flow → Irrigation Controls: hosts controls
- Irrigation Controls → Field Records: reads field
force-app/main/default/lwc/irrigationManager/irrigationManager.js - Field Records → Platform Events: publishes updates
- Platform Events → Distributor Systems: updates stock
README.md - Distributor Systems → Platform Events: publishes updates
README.md - Salesforce User → Merchandise Catalog: browses products
README.md - Salesforce User → Bundle Builder: builds bundle
README.md - Bundle Builder → Bundle Data API: loads items
force-app/main/default/lwc/bundle/bundle.js - Bundle Builder → Bundle Items: creates and edits
force-app/main/default/lwc/bundle/bundle.js - Bundle Data API → Bundle Items: reads items
- Bundle Items → Bundle Records: references bundle
- Salesforce User → Prediction Service: uses predictions
- Salesforce User → Vision Service: uses vision
- Prediction Service → Einstein API Client: uses client
- Vision Service → Einstein API Client: uses client
- Einstein API Client → Einstein Platform: calls platform