Skip to content

Conversation

nolag
Copy link
Contributor

@nolag nolag commented Sep 11, 2025

No description provided.

Copy link

👋 nolag, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@nolag nolag enabled auto-merge September 11, 2025 16:22
@nolag nolag merged commit 1712620 into main Sep 11, 2025
7 checks passed
@nolag nolag deleted the rtinianov_valueWrappers branch September 11, 2025 17:27
return cre.runInNodeMode(async (_nodeRuntime: NodeRuntime) => {
const result = await fn(...args)
return getAggregatedValue((val as any)[valueType](result), aggregationType)
return getAggregatedValue((result as any)[valueType](result), aggregationType)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I find it weird that this worked. Result is something we are returning from user function. It can for example be a number (10). Previously we were using val helper and then accessed the right type [valueType]. Currently this syntax doesn't make sense to me 🤔

const onCronTrigger = (_: Config, runtime: Runtime): void => {
runtime.logger.log('Hello, Calculator! Workflow triggered.')
cre.sendResponseValue(cre.utils.val.string('Hello, Calculator!'))
cre.sendResponseValue(new Value('Hello, Calculator!'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we move utils out of cre namespace we should figure out how do we expose them to the users.

@ernest-nowacki ernest-nowacki mentioned this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants