Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share connections between activities #270

Closed
retgits opened this issue May 13, 2018 · 3 comments
Closed

Share connections between activities #270

retgits opened this issue May 13, 2018 · 3 comments
Assignees
Milestone

Comments

@retgits
Copy link
Contributor

retgits commented May 13, 2018

I'm submitting a ... (check one with "x")

[] bug report => search github for a similar issue or PR before submitting
[] feature request
[X] support request
[] general question

Current behavior (how does the issue manifest): You cannot (easily) share connections between different activities. This means each activity will create and tear down the activity to an external system.

Expected behavior: Share connections between activities to share resources

What is the motivation / use case for changing the behavior? Having this available in an easier way for the developer would increase the speed of an app as not all activities have to instantiate their own connections.

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.5.3

@ayh20
Copy link
Contributor

ayh20 commented May 14, 2018

@retgits @mellistibco This implies that there is a way of sharing connections today ... any info on how that can be done ? There's a few activities out there that would benefit greatly from this, however hard it is to do today ...

@mellistibco
Copy link
Collaborator

Thanks @retgits. Also tracked here #135.

@ayh20 technically activities instances are created only once, so you could share stuff between invocations if you wanted to... however, i'd suggest that we add some form of shared object access in the flow action and provide an api to store and fetch objects, etc.

@mellistibco mellistibco added this to the 0.5.5 milestone May 14, 2018
@mellistibco mellistibco modified the milestones: 0.5.5, 0.5.6 Jun 27, 2018
@mellistibco mellistibco modified the milestones: 0.5.6, 0.5.7 Oct 4, 2018
@mellistibco mellistibco modified the milestones: 0.5.7, 0.9.0 Oct 29, 2018
@mellistibco
Copy link
Collaborator

Implemented. Refer to project-flogo/edge-contrib#14 for an example to use the new construct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants