ReadLine Activity
Purpose: Read a line of text from the console. This activity reads input from the standard input stream, typically used for interactive workflows.
Input Properties
This activity has no input properties.
Output Properties
Result
The line of text read from the console input.
Type: string
Note: Contains the text entered by the user or read from the input stream. Returns null if no input is available.
Usage Example
Scenario: Get user input from console Configuration: - No configuration needed - Connect Result output to a variable or use in subsequent activities Result: - Activity waits for input from the console - When a line is entered, it's stored in the Result output - Workflow continues with the input value
Important Notes
- ReadLine blocks execution until input is received
- The workflow instance is suspended while waiting for input
- Input is read from the standard input stream (console)
- This activity is not commonly used in production workflows as it can cause workflows to hang
- For user input in UI applications, consider using custom activities or HTTP endpoints
- The activity completes when a line is read (when Enter is pressed)
- Use with caution in automated or server environments
Related Activities
- WriteLine - Write text to the console
- SetVariable - Store the read value in a workflow variable