Skip to content

Creating and Deleting Workflows

Overview

This page explains how to create and delete workflows in Martini. For workflow definitions and when to use workflows, see Martini Workflows Key Concepts.

Creating and deleting workflows helps you build automated processes from scratch and maintain a clean project structure.

Prerequisites

  • Martini Designer installed and running on your system
  • A Martini package created in your workspace

Creating Workflows

Getting Started

Creating a workflow establishes a new automation sequence within your Martini package where you can add and connect nodes.

Method 1: Right-click menu

  1. Navigate to your Martini package in the Navigator on the left side of Martini Designer.
  2. Right-click on the Martini package.
  3. Select NewWorkflow from the context menu.
  4. Enter your workflow name in the Create a Workflow dialog.
  5. Click the Create button.

Method 2: Keyboard shortcut

  1. Navigate to your Martini package.
  2. On Windows/Linux: Press Ctrl + Alt + N, release the keys, then press W.
  3. On macOS: Press Cmd (⌘) + Alt + N, release the keys, then press W.
  4. Enter your workflow name in the dialog.
  5. Click Create.

Expected result: A new .workflow file will appear in your Martini package, and the Workflow Designer will open automatically. To build your workflow, click the + sign at the top left to add nodes from the palette. You can then connect nodes to define your automation logic. For more details, see the Workflow Designer.

How It Works

When you create a workflow, Martini automatically generates and opens a new .workflow file in your package. This file starts empty except for a Start Trigger Node, which is always the first node in every workflow. The Start Trigger Node allows you to manually start the workflow or trigger it via API. No input or output properties are set by default—you can add and configure nodes as needed in the Workflow Designer.

The workflow designer provides a visual canvas for implementing your automation logic in your workflow. For full details on how to use it for building and editing workflows, see the Workflow Designer.

Why It Matters

The workflow designer lets you build a workflow from scratch and implement your own automation logic. Aside from manual creation, you may also generate workflows from REST API Schemas. For information on generating workflows from a REST API schema, see Creating and Importing REST APIs in Martini.

Deleting Workflows

Getting Started

Deleting workflows permanently removes the automation sequence and its configuration from your package.

Method 1: Right-click deletion

  1. Navigate to your workflow file in the Navigator.
  2. Right-click on the Workflow.
  3. Select Delete from the context menu.
  4. In the Delete Resource confirmation dialog, click Delete.

Method 2: Keyboard shortcut

  1. Select the workflow file in the Navigator.
  2. On Windows/Linux: Press the Delete key.
  3. On macOS: Press the Backspace key.
  4. Confirm deletion in the dialog.

Expected result: The workflow file is permanently removed from your package and can no longer be executed or edited.

How It Works

When you delete a workflow, Martini removes the .workflow file from your package structure. This action:

  • Stops any running instances of the workflow.
  • Removes all node configurations and connections.
  • Clears any scheduled executions if the workflow was scheduled.
  • Updates package references automatically.

Why It Matters

Proper workflow cleanup helps maintain organized packages and prevents confusion from outdated automation processes. Deleting unused workflows also improves package performance and reduces maintenance overhead.

Troubleshooting

Problem Detection Cause Fix Affected Versions
Cannot create workflow Workflow option missing from New submenu when right-clicking Attempted to right-click and create workflow in core package or non-Martini package Right-click on a user-created Martini package folder (not core packages) All versions
Workflow name conflict Error message about existing file Workflow with same name exists Choose a different name or delete existing workflow All versions
Cannot delete workflow Delete option grayed out Workflow is currently running or referenced Stop workflow execution and remove references All versions

Helpful Resources