Serverless Function

Your own code, as a state.

TL;DR: Execute your own custom serverless functions. Access previous states' outputs and the entry payload of the current execution.

Serverless functions are a great way to write small, performant and decoupled pieces of business logic.

STATEWIZE supports serverless functions as states; A state in the flow can have logic of type "Serverless Function". When the state is reached during an execution, the serverless function will be invoked, and its output will be stored in the execution record.

As with all other states, a Serverless function state needs to be added to the flow's canvas, and connected by a different state.

Unlike other logic types, configuring the serverless code that will be executed is possible in two ways:

Please ensure to get familiar with the serverless state's output.