Skip to content

Conversation

n-is
Copy link

@n-is n-is commented Oct 17, 2019

  • Removed the reference to activity.Context.GetSharedTempData() because it returns nil, for activityContext, according to the flogo-project/core api
  • Add a sharedData map to the aggregate activity, so there is no panic at runtime due to nil map
  • Implement the StructValue interface for the Input and Output structs in aggregator code
  • Add an example that uses aggregate in go code.

n-is added 2 commits October 17, 2019 15:05
Remove reference to activity.Context.GetSharedTempData()
Add a sharedData map to aggregator activity
Implement StructValue interface for Input and Output structs.
@mellistibco mellistibco requested a review from fm-tibco October 21, 2019 14:21
@mellistibco
Copy link
Contributor

@n-is do you mind signing the CLA so we can merge your PR? Thanks!

func (a *Activity) Eval(ctx activity.Context) (done bool, err error) {

sharedData := ctx.GetSharedTempData()
sharedData := a.sharedData

Choose a reason for hiding this comment

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

ctx.GetSharedTempData() should work. Do you have the panic that this causes?

This call should end up in state.go#107 which should create a map if one doesn't exist.

@fm-tibco fm-tibco requested a review from mellistibco October 25, 2019 15:46
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