Skip to main content
Osmedeus provides 190+ utility functions via a Goja JavaScript runtime. Functions can be used in workflow steps, conditions, and evaluated from the CLI or API.

Usage

In Steps

In Conditions

In Flow Conditions

Function Step Types

Single Function

Multiple Functions (Sequential)

Parallel Functions

Return Values

Functions return values that can be:

Used in Exports

Used in Conditions

Used in Decision Routing

CLI Evaluation

Basic Evaluation

Script Source Priority

The CLI determines the script to execute in this order:
  1. --function-file - Read script from file
  2. -f/--function - Function name with remaining args as arguments
  3. Positional argument - Direct expression after e or eval
  4. -e/--eval - Script via flag
  5. --stdin - Read from stdin

Bulk Processing

Process multiple targets from a file:

Function List Options

API Evaluation

Evaluate functions via REST API:
List available functions:

Context Variables

Functions have access to execution context:

Error Handling

Functions that fail don’t stop workflow execution unless you configure error handling:

Function Categories

Osmedeus provides 190+ functions organized into 34 categories:

Best Practices

  1. Use functions for conditions
  2. Log meaningful messages
  3. Export function results
  4. Handle missing files gracefully
  5. Use appropriate logging levels
    • log_debug for verbose debugging
    • log_info for informational messages
    • log_warn for warnings
    • log_error for errors
  6. Leverage bulk processing for testing

Next Steps