Home / Companies / Orkes / Blog / Post Details
Content Deep Dive

How to Run Custom Logic in Your Workflows Without Writing a Custom Worker

Blog post from Orkes

Post Details
Company
Date Published
Author
Maria Shimkovska
Word Count
1,360
Company Posts That Month
6
Language
English
Hacker News Points
-
Summary

Orkes Conductor's JavaScript/Inline task allows users to execute JavaScript expressions directly within workflow definitions, evaluated by the GraalJS engine. This task is designed to handle small, specific logic operations that occur between larger workflow tasks, such as calculations, conditionals, and data transformations, without requiring external environments like Node.js. It is particularly useful for tasks that are too specialized for generic built-in tasks but do not warrant their own dedicated service. Real-world applications include calculating prorated charges in billing workflows, applying risk thresholds in fraud detection, and generating personalized notification messages in healthcare settings. By embedding logic directly into the workflow, users can maintain streamlined processes without deploying and maintaining separate services. The JavaScript task outputs results that can be referenced by subsequent tasks, promoting seamless integration and execution within Orkes Conductor workflows.

Trends Found in this Post

No tracked trend matches for this post yet.