Update Many (Activity)
- Purpose: To update multiple data entities in the system's data store in a single operation.
- Functionality: The "Update Many" activity allows you to modify a batch of records or objects of a defined entity type based on specified criteria and update values. You would typically configure this activity with:
- Entity Type: The type of entity to update (e.g., "Customer", "Order", "Product").
- Update Criteria: Conditions or filters that specify which entities should be updated (e.g., "update all orders with status 'pending'", "update all product prices by 10%").
- Properties to Update: A list of entity attributes and their new values that will be applied to all entities matching the criteria.
- Use Cases:
- Bulk Data Updates: Efficiently updating large sets of data entities that meet specific criteria.
- Mass Data Modifications: Performing bulk updates for data correction, standardization or applying changes across a set of entities.
- Batch Data Processing: Handling batch update operations for data maintenance or synchronization tasks.
How to Use Operations Activities:
1. Drag and drop an Operations activity from the Operations section onto your workflow canvas.
2. Configure the properties of the chosen activity. This will vary depending on the activity:
- For Add Entity, Update Entity, Update Many: Specify the Entity Type and the data or properties to be added or updated.
- For Delete Entity, Delete Many, Get Entity, Get Asset, Delete Asset: Specify identifiers or criteria to target the data or assets.
- For Get Entity List: Define filters, sorting, and pagination parameters to retrieve the desired list of entities.
- For Logged in User: This activity typically requires minimal configuration as it retrieves context from the current user session.
3. Connect the Operations activities within your workflow to integrate data manipulation and retrieval into your automated processes. For example, use "Get Entity" to retrieve data, perform logic based on the data, and then use "Update Entity" to modify the data.
4. Ensure that your workflow environment is properly connected to the relevant data store or entity management system that these operations are designed to interact with.
5. Save and activate your workflow. When executed, the Operations activities will perform their respective data operations as configured.
Benefits of Using the Operations Section:
- Data Integration within Workflows: Provides direct access to data entities and assets within your workflow environment, enabling data-driven automation.
- CRUD Operations Automation: Automates common Create, Read, Update, and Delete (CRUD) operations on data entities and assets.
- Data Management Workflows: Enables the creation of workflows for data management, data synchronization, data cleanup, and data processing tasks.
- User Context Awareness: "Logged in User" activity allows workflows to be aware of and react to the current user's context and permissions.
- Streamlined Data Access: Simplifies data access and manipulation within workflows, reducing the need for custom code or complex integrations for basic data operations.
By utilizing the Operations section activities, you can build powerful workflows in ELSA that directly interact with your application's data, automate data management tasks, and create data-centric automated processes.