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
- Navigate to your Martini package in the Navigator on the left side of Martini Designer.
- Right-click on the Martini package.
- Select New → Workflow from the context menu.
- Enter your workflow name in the Create a Workflow dialog.
- Click the Create button.
Method 2: Keyboard shortcut
- Navigate to your Martini package.
- On Windows/Linux: Press Ctrl + Alt + N, release the keys, then press W.
- On macOS: Press Cmd (⌘) + Alt + N, release the keys, then press W.
- Enter your workflow name in the dialog.
- 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
- Navigate to your workflow file in the Navigator.
- Right-click on the Workflow.
- Select Delete from the context menu.
- In the Delete Resource confirmation dialog, click Delete.
Method 2: Keyboard shortcut
- Select the workflow file in the Navigator.
- On Windows/Linux: Press the Delete key.
- On macOS: Press the Backspace key.
- 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
- Workflow Pages - Everything you need to know about workflows
- Workflow Key Concepts - Workflow definitions and usage
- Workflow Designer - How to build and edit workflows visually
- Workflow Trigger Nodes - Configure workflow entry points
- Start Trigger Node - Details on the Start Trigger Node
- All Workflow Nodes - Complete reference of available nodes
- Creating Martini Packages
- Creating and Importing REST APIs in Martini
- Community Q&A: Martini Community
Have a Question? Post or search it here.