.. _python_API_submit_case_to_folder:

.. currentmodule:: flow360

**************************
Submit Case to Folder
**************************

This script demonstrates managing simulation workflows within the Flow360 environment by organizing cases into folders.
It illustrates the creation of nested folders, submission of a simulation case using the ``Project`` interface,
and subsequent relocation of the completed case into a designated folder using methods from the ``v1`` module.

.. literalinclude:: ../../../../../Flow360/examples/workflow_management/batch_processing/submit_case_to_folder.py
  :language: python
  :linenos:

Notes
=====

- Folder hierarchy is managed using ``v1.Folder``, enabling creation and relocation of folders.
- Simulation setup and submission utilize the ``Project`` interface for defining parameters and initiating the run.
- Post-submission, a case can be moved into a specific folder using the ``move_to_folder`` method available on a ``v1.Case`` object.
