GithubHelp home page GithubHelp logo

Comments (4)

fm-tibco avatar fm-tibco commented on August 23, 2024 1

Thanks Adirio. Shortly I'm going to start looking into both how best to share resources and also possible activity initialization based on both app and the particular action/flow it belongs to. I'll keep you posted.

from flogo-lib.

Adirio avatar Adirio commented on August 23, 2024

As suggested in #111 in this comment, different scopes of shared resources could be implemented, being the activity attributes a natural one, and flow and application level two more that may be interesting.

from flogo-lib.

Adirio avatar Adirio commented on August 23, 2024

Some thoughts: Working on another project I thought that context could be used for this. A ctx could be passed though activity.Init() and trigger.Init() to populate it with the shared resources. Then this context would be passed to trigger.Start() instead of creating a new one from context.Background() and it should also be passed to trigger.Stop() and activity.Eval().

from flogo-lib.

Adirio avatar Adirio commented on August 23, 2024

I've realised that what you are passing to activity.Eval(), despite being named activity.Context it is not a context.Context as I was expecting (similar to the extra abstraction layer you are using on trigger.NewContext). Is the activity.Context an abstraction layer over context.Context or is it a completely different thing? Because my thought was based on the fact that you were already passing some kind of context.Context to activity.Eval().

from flogo-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.