opasch / fidelity

Blockchain based fidelity program
GNU General Public License v3.0
4 stars 0 forks source link

Rule engine #6

Open opasch opened 4 years ago

opasch commented 4 years ago

with the rule engine the merchant should be capable of creating personalized offers. Initial offers can simply be something "if I spend 1 euro I receive 1 token in return on my wallet". Later more complex and customized rules should be available. Like for example "I can buy 3 products of the same kind in order to receive 30% more tokens than the sum of the value of what I spent". Or "If I but an item in the online shop and afterward (or before) I follow the merchant's instagram profile I get an extra token". These are just examples of the kind of rules the merchant must be able to fulfill. The rule engine has to be high customizable and all functionalities but the externally accessible and modifiable by other application via REST API calls.

### Introduction of the concept of Workflow engine.

An open source workflow engine should be selected (rather than writing one by our own from scratch) which would allow a simple programmable gui based method for the merchant to define every single rule thanks to which a final customer will be able to take advantage of the service and accumulate points.

The workflow engine should be based on items which are themselves parts of contextes. For example there will be the context "Social media" in which all the items related to social media actions will be based. Likes on facebook, posts on instagram, and other social media actions can be selected. If the final user performs the related condition then the action is satisfied and the workflow goes on until the end which in most of the foreseeable cases will mean that the final user wallet will be accredited some tokens (the amount of tokens to be transferred upon a successful action has to be decided) For example:

with a workflow engine a merchant can decide something like connecting social media activities that he wants his final users and followers to complete or other activities related to buying some items or else. It really will depend on each merchant marketing strategy and the variety of options that we'll provide to them.

sblabreu commented 4 years ago

Using Git Flow https://danielkummer.github.io/git-flow-cheatsheet/ for development