Comments (4)
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.
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.
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.
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)
- Support keyword nil in expression
- Missing API to access trigger handler output configuration
- Engine hang while a flow have multiple reply activities HOT 2
- Support expression mapping in iterate
- Going into infinite loop in error handle flow while iterate activity mapping error
- Parse ternary expression failed
- Enhance Activity configuration and instantiation HOT 1
- Introduce time.Time as a first class citizen in data.Type
- Implement json.Marshaler and Unmarshler for data.Type
- Support negative number for expression mapper HOT 1
- Have issue handle literal value $50 in mapping
- HTTP endpoints which provide meta information of running flogo app
- Windows: Get identical ActionId for different handlers under same trigger when using old trigger API HOT 3
- App built with latest OSS core fails at runtime due to infinite loop
- Incorrect evaluation of expression with mixed int and float values HOT 1
- support if statement HOT 4
- Override app property have issue to handle value has `,` or `=`
- Operator precedence
- wrong version number HOT 1
- Trigger output attributes should be resolvable by activities HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flogo-lib.