workflow.internal
Modules
Module workflow.internal
Definitions
ballerina/workflow.internal Ballerina library
Functions
registerConnection
Registers a module-level final client object so that it can be passed as
an argument to activity functions whose parameter type is a client object.
This is an internal function used by the compiler plugin. It is emitted
by the source modifier for every module-level final variable whose type is a
client object and is invoked during module initialization, before
startWorkflowRuntime.
When an activity is called with such a client as one of its arguments, the
native runtime substitutes the value with the marker string
"connection:<name>" for transport, then resolves it back to the registered
client on the activity worker side using the same name.
Parameters
- name string - The Ballerina variable name of the client (used as the lookup key)
- connection object {} - The client object reference to register
registerWorkflow
function registerWorkflow( function() () workflowFunction, string workflowName, map< function() () >? activities) returns boolean|errorRegisters a workflow function with the program runtime.
This is an internal function used by the compiler plugin to register workflows at module initialization time. It is not intended to be called directly by users.
startWorkflowRuntime
Starts the workflow runtime after all workflows have been registered.
This is an internal function used by the compiler plugin as the last
generated module-level statement, ensuring that polling only begins after
every registerWorkflow call has executed.
Import
import ballerina/workflow.internal;Metadata
Released date: 5 days ago
Version: 0.4.0
License: Apache-2.0
Compatibility
Platform: java21
Ballerina version: 2201.13.2
GraalVM compatible: No
Pull count
Total: 860
Current verison: 56
Weekly downloads
Keywords
workflow
Contributors