3.2.15 Inline Task

Use an Inline task when you need to run lightweight, simple logic directly within your workflow.

Inline tasks are ideal for operations that you can handle with a small JavaScript function—such as data transformations, basic calculations, or simple condition checks. For example, converting a JSON date string to a different format or adding two numbers from the input for downstream use. You can write the code for these operations within the workflow definition, making it quick and easy to maintain for straightforward logic.

When your workflow needs to trigger more complex or extensive custom logic that cannot (or should not) be contained within a workflow definition, use a simple task. For example, tasks that require full programming power, flexibility, robust handling, external dependencies, or access to external systems, such as processing an image with an AI model hosted in your infrastructure. See About Simple Tasks or Worker Tasks.

For more information about this task, see System Tasks in open-source Conductor documentation.