> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/release-orchestration/use-release-orchestration/release-orchestration-activities/activity-store.md).

# Activity Store

Learn about the activity store and how to create and reuse activities across release processes

The activity store is a centralized repository for defining reusable activities that can be referenced across multiple release processes. It promotes consistency, reduces duplication, and accelerates process creation by providing a library of pre-configured activities.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-9dea9fa977b5f71a41f57c4305f656b84b713283%2Factivities-type-store.png?alt=media" alt="The Activity Store listing reusable activity templates"><figcaption><p>Click to view full size image</p></figcaption></figure>

### What you will learn from this topic

* Understand [what the Activity Store is](#what-is-the-activity-store) and why you use it
* How to [view activities in the store](#view-activities-in-the-store) and the actions available for each
* How activities in the store [flow into a process](#how-activities-flow-from-store-to-process)
* How to [create activities in the store](#create-activities-in-the-store) using the UI or YAML
* How to [use, update, and delete activities](#use-activities-from-the-store) that are already in the store

### What is the activity store? <a href="#what-is-the-activity-store" id="what-is-the-activity-store"></a>

The Activity Store is a collection of activity definitions that you create and maintain for your organization. Each activity encapsulates its complete configuration: inputs, outputs, and the underlying pipeline or manual steps it executes. Multiple processes can reference the same activity definition without copying it. This centralized approach ensures consistent execution and makes updates easier. Change the definition once, and all referencing processes pick up the change on their next execution.

Think of it as a library of pre-configured activities that processes can reference, similar to how a code library provides reusable functions.

### View activities in the store <a href="#view-activities-in-the-store" id="view-activities-in-the-store"></a>

In the left navigation of the Release Orchestration module, select **Activity Store** to see every activity defined for the project.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-ecdfbeae1c6f8074c6d19d1b9ef60cf40ad32f48%2Factivity-store-list-view.png?alt=media" alt="Activities list page showing columns for activity name, description, store type, activity type, created, and last updated"><figcaption></figcaption></figure>

| Column        | Description                                                                                                                                              |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Activity Name | The activity name and its identifier.                                                                                                                    |
| Description   | The optional description entered when the activity was created.                                                                                          |
| Store Type    | Whether the activity definition is **Inline** or **Remote**. Go to [Create activities in the store](#create-activities-in-the-store) for the difference. |
| Activity Type | The execution mechanism the activity uses, for example **Pipeline**.                                                                                     |
| Created       | Who created the activity, and when.                                                                                                                      |
| Last Updated  | Who last updated the activity, and when.                                                                                                                 |

Select the overflow menu (**⋮**) at the end of a row to **Edit**, **Move to Git**, or **Delete** the activity. Go to [Move activities to Git](#move-activities-to-git) for how to move an Inline activity to a Git repository.

### Why use the Activity Store? <a href="#why-use-the-activity-store" id="why-use-the-activity-store"></a>

**Consistency across processes**

When you define an activity once in the store, all processes that reference it use the same configuration. This ensures standardized implementations across release workflows with consistent execution behavior and uniform input/output contracts. Configuration drift between teams is reduced because everyone references the same centralized definition rather than maintaining separate copies.

**Reduce duplication**

Without the activity store, you would define the same activity configuration repeatedly in each process. The store eliminates this duplication by allowing you to define an activity once and reference it many times across different processes. Updates happen in one place and apply everywhere the activity is used. This approach avoids copy-paste errors and maintains a single source of truth for each activity's configuration.

**Accelerate process creation**

Using preconfigured activities from the store speeds up the process of developing. Instead of configuring activities from scratch, you select proven configurations from the store. This allows you to use organizational best practices and focus on orchestration logic rather than activity implementation details.

### Activity types in the store <a href="#activity-types-in-the-store" id="activity-types-in-the-store"></a>

The activity store can contain any of the three activity types supported by Release Orchestration, selected from the **Activity Type** dropdown when you create an activity:

* **Pipeline**: Executes a Harness pipeline automatically, without human intervention. Go to [Automated Activities](https://developer.harness.io/release-orchestration/use-release-orchestration/release-orchestration-activities/activity-types/automated-activities.md) for how to configure a pipeline activity's inputs and outputs.
* **Manual**: Requires human intervention, such as an approval, sign-off, or manually recorded input. Go to [Manual Activities](https://developer.harness.io/release-orchestration/use-release-orchestration/release-orchestration-activities/activity-types/manual-activities.md) for the supported manual activity types and their configuration.
* **Subprocess**: Invokes another process as an activity, so you can compose a release process from reusable, smaller processes. Go to [Subprocess Activities](https://developer.harness.io/release-orchestration/use-release-orchestration/release-orchestration-activities/activity-types/subprocess-activities.md) for how to configure and nest subprocesses.

### How activities flow from store to process <a href="#how-activities-flow-from-store-to-process" id="how-activities-flow-from-store-to-process"></a>

When you use an activity from the store in a process, you create a reference to that activity's definition, not a copy. The flow works as follows.

**1. Define activity in the store**

Create the activity in the store with a unique identifier (such as `build_backend_service`), the inputs it expects (such as `SERVICE_NAME` and `BRANCH`), the outputs it produces (such as `BUILD_VERSION` and `ARTIFACT_URL`), and its execution configuration. For automated activities, this includes the pipeline to execute. Manual activities include the instructions or approval requirements.

**2. Reference activity in process**

In your process YAML, reference the activity:

```yaml
phases:
  - phase:
      id: build_phase
      name: Build Phase
      activities:
        - activity: build_backend_service  # References store activity
          id: build_backend
```

**3. Provide inputs at the process level**

The process supplies values for the activity's inputs via process input configuration:

```yaml
processInput:
  phases:
    - id: build_phase
      activities:
        - id: build_backend
          inputs:
            SERVICE_NAME: "auth-service"
            BRANCH: <+globalInput.release_branch>
```

**4. Execute activity**

When the release runs:

1. The system resolves the activity reference from the store
2. Merges process-provided inputs with activity defaults
3. Executes the activity with the resolved configuration
4. Captures outputs for use by later activities

### Create activities in the store <a href="#create-activities-in-the-store" id="create-activities-in-the-store"></a>

You can create an activity in the store either using the UI or by defining it in YAML directly.

{% tabs %}
{% tab title="UI" %}
Navigate to Release Orchestration and select **Activity Store**, then click **+ New Activity** to begin creating a new activity definition.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-d886c1a2e74c04164d07a7388dfe9f616df19801%2Factivity-store-list.png?alt=media" alt="The Activity Store list with the New Activity button"><figcaption><p>Click to view full size image</p></figcaption></figure>

The **Create Activity** panel offers two editing modes, **Visual** and **YAML**. Use the toggle at the top of the panel to switch between a form and the YAML definition of the activity.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-b0ab0e9042b9e1ac6fece06a4e6191975310e2fd%2Factivity-create-visual-yaml-toggle.png?alt=media" alt="Create Activity panel with the Visual and YAML toggle highlighted at the top"><figcaption><p>Click to view full size image</p></figcaption></figure>

**Step 1: Configure Activity Overview**

In the Overview step, configure the basic details of your activity. Enter a **Name** for the activity (such as `Deploy with Version`), optionally add a **Description** explaining its purpose, and select the **Activity Type**. For pipeline activities, select the pipeline to execute from **Select Pipeline**, from the pipelines available in your project.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-dec1fbb4ce700753209aa3199f5ceb199d0a0123%2Factivity-create-overview.png?alt=media" alt="The Activity Overview configuration step"><figcaption><p>Click to view full size image</p></figcaption></figure>

Under **How do you want to set up your Activity?**, select how Harness stores the activity definition:

* **Inline**: The activity is stored in Harness. This is the default.
* **Remote**: The activity is stored in your Git repository. Select a **Git Connector**, then select or enter the **Repository**, **Git Branch**, and **File Path** for the activity definition.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-03d796b9f524f49f49d96aca575edb2eae877b7f%2Factivity-create-overview-remote.png?alt=media" alt="The Activity Overview step with Remote selected, showing Git Connector, Repository, Git Branch, and File Path fields"><figcaption><p>Click to view full size image</p></figcaption></figure>

**Step 2: Define Input Variables**

In the Input Variables step, define the inputs that this activity expects. Click **+ New Variable** to add each input, providing a name (such as `version`), selecting the type (**String**, **Number**, **Secret**, and so on), and optionally setting a default value. These inputs are supplied by processes when they reference this activity.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-f8df3b318f0fee60e529e1b05e602b459a2f518e%2Factivity-input-variables.png?alt=media" alt="The Input Variables configuration step"><figcaption><p>Click to view full size image</p></figcaption></figure>

Under the **Pipeline Input Mapping** tab, you can map the activity inputs you defined to your pipeline variables. Select which pipeline stages to include using **Select Pipeline Stages**.

Under **Where is your Git Repository?**, select whether the mapped pipeline is stored in a **Harness Code Repository** or a **Third-party Git provider**, then select the **Repository**, **Git Branch**, and **YAML Path** of the pipeline. Harness uses this location to read the pipeline's variables for mapping. Map each activity input to the corresponding pipeline variable using expressions like `<+activityInput.version>`.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-11f0e810a9c7c45895acb08d51593088510866f8%2Factivity-pipeline-mapping.png?alt=media" alt="The Pipeline Input Mapping tab with Where is your Git Repository fields"><figcaption><p>Click to view full size image</p></figcaption></figure>

{% hint style="warning" %}
**Stage selection does not work**

If the **Select Pipeline Stages** dropdown does not let you select individual stages, the referenced pipeline does not have selective stage execution enabled. In the pipeline, navigate to **Advanced Options** -> **Stage Execution Settings** and set **Allow selective stage(s) executions?** to **Yes**, then return to this tab to select the required stages. Go to [Run specific stages](https://developer.harness.io/harness-platform/use-harness-platform/pipelines/run-specific-stage-in-pipeline#enable-selective-stage-executions) to enable selective stage execution.
{% endhint %}

**Step 3: Configure Output Variables (Optional)**

In the Output Variables step, define any outputs you want to capture from the pipeline execution. Click **+ New Variable** to add outputs that reference pipeline output variables using Harness expressions. These outputs can then be used as inputs to later activities in your release process.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-448c4e323542968e5c3788a7eb8ca9a8c6022bdf%2Factivity-output-variables.png?alt=media" alt="The Output Variables configuration step"><figcaption><p>Click to view full size image</p></figcaption></figure>

After configuring all settings, click **Confirm** to save the activity to the store. The activity appears in the Activity Store list and becomes available for processes to reference.
{% endtab %}

{% tab title="YAML" %}
You can also create activities by defining YAML:

```yaml
activity:
  id: build_backend_service
  name: Build Backend Service
  description: Compiles backend service and creates Docker image
  inputs:
    SERVICE_NAME:
      type: string
      default: "default-service"
    BRANCH:
      type: string
      default: "main"
  outputs:
    BUILD_VERSION: <+pipeline.stages.build.spec.execution.steps.version.output.outputVariables.VERSION>
    ARTIFACT_URL: <+pipeline.stages.build.spec.execution.steps.publish.output.outputVariables.URL>
  pipeline:
    pipeline: org/project/build_pipeline
    inputSet:
      variables:
        - name: serviceName
          value: <+activityInput.SERVICE_NAME>
        - name: branch
          value: <+activityInput.BRANCH>
```

The following example shows the YAML for an activity that maps an activity input to a pipeline variable and captures a pipeline value as an output:

<details>

<summary>Activity YAML example with a pipeline input mapping and output</summary>

```yaml
activity:
  description: ""
  id: Testprocessactivity
  inputs:
    inputvar:
      description: ""
      type: string
  name: Testprocessactivity
  outputs:
    outputvar:
      type: string
      value: <+pipeline.name>
      description: ""
  pipeline:
    pipeline: org/project/shell_script_pipeline
    inputSet:
      pipeline:
        identifier: shell_script_pipeline
        variables:
          - name: abc
            type: String
            value: <+activityInput.inputvar>
    stages: []
    expression: {}
    branch: ""
    connectorRef: ""
    parentEntityConnectorRef: ""
    parentEntityRepoName: ""
    repoIdentifier: ""
```

</details>
{% endtab %}
{% endtabs %}

To manage activities programmatically, go to the [Orchestration Activities API](https://developer.harness.io/api-reference/software-delivery-agent-apis/release-orchestration/orchestration-activities-beta). It has endpoints to create, update, and delete activities, and to move an activity to Git.

### Use activities from the store <a href="#use-activities-from-the-store" id="use-activities-from-the-store"></a>

**In the process definition**

Reference activities by their identifier:

```yaml
phases:
  - phase:
      id: deployment
      activities:
        - activity: deploy_to_production  # Store reference
          id: prod_deploy_instance
```

**Provide input values**

Configure inputs via process input:

```yaml
processInput:
  phases:
    - id: deployment
      activities:
        - id: prod_deploy_instance
          inputs:
            ENVIRONMENT: "production"
            VERSION: <+phase.build.activity.build_app.outputs.BUILD_VERSION>
```

**View activity details**

To inspect an activity from the store, navigate to the Activity Store and click the activity name. This opens the activity details view where you can see its inputs, outputs, and complete configuration. You can also see which processes reference this activity.

### Update activities in the store <a href="#update-activities-in-the-store" id="update-activities-in-the-store"></a>

To edit an activity, select the overflow menu (**⋮**) at the end of its row in the Activity Store, then select **Edit**. The Edit Activity dialog has the same **Activity Overview**, **Input Variables**, and **Output Variables** tabs used when you created the activity. You cannot change the **Activity Type** after creation, but you can change the **Select Pipeline** value and other fields on each tab.

<figure><img src="https://478177610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwRDYqBolZUj6Rwnqx0mm%2Fuploads%2Fgit-blob-f93cddd773bce92c9cbb4e4ce6db427a70a10b37%2Factivity-edit-modal.png?alt=media" alt="Edit Activity dialog with Activity Overview, Input Variables, and Output Variables tabs"><figcaption></figcaption></figure>

When you update an activity in the store, the changes affect all processes that reference it, so updates require care.

**Update impact**

Processes using the activity use the updated definition on their next execution. Running releases continue using the definition from when they started, ensuring no mid-flight changes disrupt in-progress releases. Historical releases remain unchanged and continue to reflect the activity configuration in effect when they ran.

**Best practices for updates**

Before updating a widely used activity, test changes in a non-production process to verify behavior. Coordinate with teams on the activity and notify them of any upcoming changes that might affect their workflows. For breaking changes that alter the activity's interface or behavior significantly, create a new activity with a versioned name (such as `deploy_v2`) rather than modifying the existing one. When possible, update incrementally with small, backward-compatible changes to minimize disruption.

### Move activities to Git <a href="#move-activities-to-git" id="move-activities-to-git"></a>

To move an Inline activity to a Git repository, select the overflow menu (**⋮**) at the end of its row in the Activity Store, then select **Move to Git**. Go to [Move an activity to Git](https://developer.harness.io/harness-platform/use-harness-platform/git-experience/move-inline-entities-to-git#move-inline-activity) for the full procedure.

### Delete activities <a href="#delete-activities" id="delete-activities"></a>

You can delete activities from the store only if no processes reference the activity and the activity is not in use by any running releases. If processes reference the activity, you must first update those processes to remove the reference before deleting the activity from the store.

### Activity store organization <a href="#activity-store-organization" id="activity-store-organization"></a>

**Naming conventions**

Use clear, descriptive identifiers that explain the activity's purpose. Good examples include `deploy_backend_to_staging`, `run_integration_tests`, and `security_approval_gate`. Avoid generic names like `activity1` or `temp_deploy` that do not convey meaning.

**Grouping by purpose**

Organize activities logically using consistent prefixes. Build activities use the `build_*` prefix, deployment activities use `deploy_*`, testing activities use `test_*`, and approval activities use the prefix `approval_*`. This naming convention makes it easier to find activities when browsing the store.

### Common use cases <a href="#common-use-cases" id="common-use-cases"></a>

**Standardized deployment activity**

Create a deployment activity that all teams use for production deployments:

```yaml
activity:
  id: standard_prod_deploy
  name: Standard Production Deployment
  inputs:
    SERVICE_NAME:
      type: string
    DEPLOYMENT_STRATEGY:
      type: string
      default: "rolling"
  pipeline:
    pipeline: org/platform/production_deployment_pipeline
```

Teams reference this activity in their processes to ensure consistent deployment practices.

**Reusable approval gate**

Define a manual approval activity for production releases:

```yaml
activity:
  id: prod_approval_gate
  name: Production Approval Gate
  description: Requires approval from the release manager before production deployment
```

Every production process references this activity, ensuring no deployments bypass approval.

**Dynamic version generator**

Create an activity that generates release version numbers:

```yaml
activity:
  id: generate_release_version
  name: Generate Release Version
  outputs:
    RELEASE_VERSION: <+pipeline.stages.version.spec.execution.steps.gen.output.outputVariables.VERSION>
  pipeline:
    pipeline: org/platform/version_generator
```

Later activities reference `<+phase.version.activity.generate_release_version.outputs.RELEASE_VERSION>` for consistent versioning.

### Troubleshooting

If something goes wrong, these pages cover the most likely causes:

* Go to [Troubleshooting Activity Outputs and Input Mapping](https://developer.harness.io/release-orchestration/troubleshooting-and-resources/release-orchestration-troubleshooting/activity-output-troubleshooting.md) to fix outputs that do not reach later activities.
* Go to [Variable Mapping Errors](https://developer.harness.io/release-orchestration/troubleshooting-and-resources/release-orchestration-troubleshooting/variable-mapping-errors.md) to fix inputs that do not map to pipeline variables.

### Next steps <a href="#related-topics" id="related-topics"></a>

The following topics provide related information.

* [Activities Overview](https://developer.harness.io/release-orchestration/use-release-orchestration/release-orchestration-activities/activities-overview.md)
* [Automated Activities](https://developer.harness.io/release-orchestration/use-release-orchestration/release-orchestration-activities/activity-types/automated-activities.md)
* [Manual Activities](https://developer.harness.io/release-orchestration/use-release-orchestration/release-orchestration-activities/activity-types/manual-activities.md)
* [Move an activity to Git](https://developer.harness.io/harness-platform/use-harness-platform/git-experience/move-inline-entities-to-git#move-inline-activity)

{% @harness-feedback/feedback %}
