---
title: Workflow definition action tasks
description: Learn how to use the action-tasks format in YAML workflow definition files for Scaleway Data Orchestrator.
tags: data-orchestrator workflow create action tasks
dates:
  posted: 2026-06-22
---

Data Orchestrator in Code view requires that you upload a YAML file to use as a workflow definition.

This page lists the different action tasks supported in Data Orchestrator workflow definitions.

<Tabs>
  <TabsTab label="Serverless Job">
    This is a basic example of a workflow calling one Serverless Job.
      ```yaml
      document:
        dsl: 1.0.3
        namespace: <namespace_name>
        name: <workflow_name>
        version: 1.0.0
      do:
      - task:
          call: "serverless_job"
          metadata:
            description: "The first job"
          with:
            id: "<Serverless_job_ID>"
            region: "fr-par"
      ```
    Replace the ID placeholder with the ID of your Serverless Job. You can copy it from the [Serverless Jobs page](https://console.scaleway.com/serverless-jobs/) of the console.

  </TabsTab>

  <TabsTab label="Serverless Function">
    This is an example of a how to get a Serverless Function.
      ```yaml
      document:
        dsl: 1.0.3
        namespace: <namespace_name>
        name: <workflow_name>
        version: 1.0.0
      do:
        - callFunctionGet:
            call: "serverless_function"
            with:
              method: GET
              id: "<Serverless_function_ID>"
              region: fr-par
              output: "response"
        - setOutput:
            set:
              result: "${ . }"       
      ```
    Replace the ID placeholder with the ID of your Serverless Function. You can copy it from the [Serverless Functions page](https://console.scaleway.com/functions/) of the console.
  </TabsTab>
</Tabs>
