Process Modeling
Learn how to model release processes using phases, activities, and dependencies
Process modeling in Release Orchestration allows you to define your release workflows using phases, activities, dependencies, and variables. You can create processes using AI-based generation or manual configuration to match your team's specific requirements.
AI-based process creation
Harness supports creation of processes using Harness AI. Most of the time, release processes are available in a textual fashion, documented in different sources. Release Orchestration enables users to provide that process documentation and create the process as an entity in Harness Release Orchestration.
To create a process using Harness AI , navigate to processes --> Click on Create Process ( as shown below )
Provide the instructions to define your release process through the prompt. An example of the same has been provided below:
Example prompt:
Create a multi-service release process starting from release planning and coordination up until monitoring in production. The process includes the following phases:
- Release planning and coordination (Owner: Release Manager)
- Build and artifact creation
- Testing and validation
- Feature flag enablement
- Production deployment
- Monitoring and rollbackOnce you provide the above prompt and ask Harness AI to create the process, it automatically:
Creates phases: Identifies logical groups of activities as phases (e.g., Release Planning and Coordination, Testing Validation, Feature Flag Enablement, Deployment, Monitoring, Rollback and Documentation).
Assigns owners: Automatically assigns owners for individual phases based on the documentation provided in the prompt or ask you to provide the relevant owners.
Creates activities: Generates activities within each phase.
Infers dependencies: Determines execution order and dependencies.
As soon as you shared the above prompt with Harness AI for process creation, It asks us to provide the relevant owners for each phase. Once we chose the owners , Harness AI starts creating the YAML for the release process. The same YAML can be visualised as a step by step release process as shown below:
You can also manually define phases, activities, and dependencies to match your team's software release process. Even though Manual Modelling allows you to create all the essential components for your release process manually , we still recommend to leverage Harness AI for your release orchestration process creation.
Process Structure
Basic Structure
A process consists of:
Metadata: Name and description
Inputs: Required parameters (captured using an Input Store when executing)
Variables: Process-wide variables
Phases: Major stages
Activities: Tasks within phases
Dependencies: Execution order rules
Example (YAML)
The following example uses the same YAML shape as a real process created in Release Orchestration (nested phase and activity blocks, depends-on, owners, and optional if and data fields).
Modeling Complex Release Processes
You can model complex release processes with different sequences of execution in terms of parallel and sequential execution.
Common Execution Patterns
Sequential Execution
Activities execute one after another:
Parallel Execution
Activities execute simultaneously:
Conditional Execution
Activities execute based on conditions:
Phase Dependencies
Phases can have dependencies preconfigured. For example:
The test phase has dependencies on the build phase
The validation phase has dependencies on the build phase
Phases execute in the order defined by their dependencies
Activity Dependencies
Activities within each phase can also have dependencies. For example:
Activity 3 (a manual pipeline or automated activity) and Activity 3.1 (a manual activity) are dependent on Activity 2 (an automated pipeline activity)
Activities execute in the order defined by their dependencies
Dependencies can be configured to support both parallel and sequential execution
Example: Complex Process Structure
A pre-built, preconfigured process might have:
Build Phase: Contains build activities
Test Phase: Depends on Build Phase, contains test activities
Validation Phase: Depends on Build Phase, contains validation activities
Activities with dependencies: Activities within phases that depend on other activities
With this structure, it is possible to model complex release processes and execute them using a release.
Process blueprints
Start with blueprints for common scenarios:
Standard production release
Hotfix release
Multi-service release
Scheduled release
Customize a blueprint to fit your needs.
Related Topics
Last updated
Was this helpful?