Comments (7)
Can you provide 3 example use cases?
All uses cases (currently) are in a workflow.
Some background:
During the flow, several data objects may be available in the context - a customer record that was
fetched from the DB, a result of a sub process, some values that were provided as an input and so on.
The creator of the flow should be able to make decisions based on the context, and also be able to use the data in context.
example 1:
Check if the customer age based on his data of birth is larger then a given input.
Return @DataDiff(Years, Context.Customer.DateOfBirth, Now()) > Context.Input.AgeToCompare
Example 2:
Use two separate input parameters to set the customer phone number
Return Context.Input.AreaCode + "-" + Contxt.Input.PhoneNumber
Example3:
Check the returned value of a sub process to determine what to do next
Return Context.SubProcessResults > 5
Some of the basic decisions and data manipulation can be done using other tools like the "Decision Table" but for more complex scenarios the developer will need the Expression Resolver
from amplication.
Which language should we use?
Should we resolve on the client with the existing context or on the server? (probably server)
Should we allow full language features (e.g. if, then) or just expressions that resolve to a value?
see this: https://github.com/TechnologyAdvice/Jexl
from amplication.
@iddan please see if you have any input for the discussion
from amplication.
Can you provide 3 example use cases?
from amplication.
Other option I'm familiar with: https://www.npmjs.com/package/@axa-ch/json-logic-js
from amplication.
And: https://www.npmjs.com/package/@briza/illogical
from amplication.
This is a great discussion. We'll reopen it once this feature is getting more relevant but for now, I'm closing it.
from amplication.
Related Issues (20)
- π Bug Report: Insight Panel is broken on smaller screens
- π Bug Report: `server` errors with Expected `join([])` to be called with an array of multiple elements, but got an empty array HOT 1
- Jovu: Update / add documentation pages to Jovu knowledge HOT 1
- Jovu: Add Beta indication
- Jovu: Update the available "closed" questions for the initial discussion with Jovu HOT 4
- Jovu: Add createAPI function
- Jovu: Add installPlugin function
- Jovu: Add βteasersβ in the βregularβ UI to activate Jovu HOT 3
- Update first PR message
- Analytics Dashboard: Bug- LOCs are calculated twice (and more)
- π Bug Report: pending DTO changes after migration
- Bug: Cannot define a DTO field with primitive type HOT 1
- Bug / Custom actions: Update the add-module modal
- π Bug Report: New Module editing name results in ApolloError HOT 1
- Bug / Custom Actions: The "Create Module" button is blinking
- π Bug Report: Graphql schema generation fails due to missing services dependencies
- Implement ROI Calculator in the website
- [Epic:`.NET`] data service generator support
- [Epic:`.NET`] Code base initial configurations ( repository, NX, and CI )
- [Epic:`.NET`] Add initial implementation of π CSharp AST library into the new .NET monorepo ( `libs/csharp-ast` )
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 amplication.