specification icon indicating copy to clipboard operation
specification copied to clipboard

Context Data Scoping

Open cdavernas opened this issue 1 year ago • 11 comments
trafficstars

What would you like to be added:

Add a feature to enable scoping $context data.

Why is this needed:

In some specific cases, a user might want to only provide a slice of its context data to sub tasks, which is especially true when performing iterations (for/while) to avoid useless bloating.

It is also true for parallel writes, which you'd rather have on a small slice of a potentially huge context than on its whole. Google Workflows addresses that by explicitly sharing variables.

cdavernas avatar May 30 '24 09:05 cdavernas

I think that to properly discuss this we need a pointer to the current section of the doc where $context and variable scoping is discussed.

fjtirado avatar May 31 '24 11:05 fjtirado

I opened dicussion https://github.com/serverlessworkflow/specification/discussions/890. I think we need to discuss a few thing before considering this case.

fjtirado avatar Jun 06 '24 11:06 fjtirado

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 04 '24 00:08 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 06 '24 00:10 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 22 '24 00:11 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 07 '25 00:01 github-actions[bot]

Hi,

  • to understand the proposal could you please describe how limiting the $scope to certain variables would reduce bloating (I guess it depends on the internal implementation of a runtime)
  • in your mind, would you do it "per value" (updating the new scope would not change the workflow scope), or "per reference"?

geomagilles avatar Feb 10 '25 09:02 geomagilles

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 28 '25 00:03 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 13 '25 00:05 github-actions[bot]

@cdavernas is this really completed?

hirenr avatar Jun 15 '25 16:06 hirenr

@hirenr nope, just stale

cdavernas avatar Jun 15 '25 18:06 cdavernas