Skip to main content

How to Update Existing Flows

This guide provides instructions on how to update existing MuleSoft flows using CurieTech AI. Updating flows can help improve readability, maintainability, performance, and overall functionality.

Steps

Connect Code Context

Connect your repository or upload your project folder so CurieTech AI has full visibility into your code.

Start in Chat

In the chat box, clearly state what you want to update or refactor. For example:

  • "Update the process-orders-flow to use sub-flows for order validation and inventory updates."
  • "Simplify the error handling logic in the customer-onboarding-flow by using a centralized error handler."
  • "Optimize the database query in the reporting-flow to improve performance."

Clarify Requirements

CurieTech AI will ask follow-up questions to better understand your goals. Provide details and confirm the requirements before starting the task.

Create a Task

Once everything is confirmed, ask CurieTech AI to create a task. It will prepare an updated prompt based on your responses and begin execution.

Review the Output

When the task completes, review the generated output carefully. Check whether the changes align with your update goals and validate that no unintended side effects were introduced.

Provide Feedback

If adjustments are needed, provide feedback directly in chat. CurieTech AI will regenerate or refine the output.

Approve and Apply

Once you're satisfied, approve the changes and apply them to your flow.

Alternative Path (Using the Coder Tile)

If you prefer direct navigation, you can:

  1. Click on the Code tile below the chat.
  2. Select Repository Coder.
  3. Provide code context by choosing a repo or uploading a project from your computer.
  4. Wait for the output, review it, provide feedback if needed, and approve once ready.