Skip to main content

ConstantValueGenerator

Constant Value Generator – Generate Constant Value

Summary (SEO Meta Description):
The Constant Value Generator in WeHub produces static values for use in workflows.
Configure constants like GUIDs, strings, numbers, booleans, or timestamps for downstream plugins.


Overview

The Constant Value Generator provides a simple way to insert fixed or auto-generated values into a workflow.
It supports common data types such as GUID, STRING, NUMBER, BOOL, and CURRENT_TIME.

This action is useful for setting default values, generating identifiers, or adding static configuration to workflows.


⚙️ Configuration Options

FieldTypeDescription
LabelStringCustom name for the node (e.g., "Generate Patient ID").
NameStringKey under which the value will be stored in the workflow context.
TypeEnumData type of the constant: GUID, STRING, NUMBER, BOOL, CURRENT_TIME.
ValueAnyThe constant value (if required for the selected type).

💡 Example Use Cases

  • Generate a GUID as a unique workflow identifier.
  • Insert a STRING value like "Production" for environment tagging.
  • Provide default NUMBER or BOOL values to control logic.
  • Capture CURRENT_TIME for timestamps or logging.

FAQ

Q: Is GUID generated automatically?
A: Yes, selecting GUID auto-generates a unique identifier; no manual input needed.

Q: What format does CURRENT_TIME return?
A: An ISO 8601 timestamp (e.g., 2025-09-23T12:16:41Z).

Q: Can I define multiple constants at once?
A: Yes, add multiple name–type–value rows in the configuration.


Keywords: WeHub Constant Value Generator, Generate Constant Value, GUID, static values, default values, timestamps