Create extension/new functionality for
https://github.com/Squidex/squidex to
extend rule system and its apis.
At the moment rules system allows only one trigger and one action. We
have to extend it to create rules that can have multiple steps so rules
are kind of workflows.
Requirements:
If task B depends on the successful execution of another task A, it
means Rules system will run task A and only run task B after task A.
If action is success, next actions should be able to use previous
actions response status and response body content as placeholders for
example ${ACTION_ACTIONNAME1.RES.BODY.CITY.NAME} or
${ACTION_ACTIONNAME1.RES.STATUS}
Create new action, “Condition” which is simple that uses Script to
analyze placeholders using different operators and return true or false.
Create new action, “Delay” which takes in variable or value in boolean,
how many seconds to wait until next action will be triggered.
Create trigger Conditions for all actions. Which is simple that uses
Script to analyze placeholders using different operators and return true
or false. If true then run Action, if False then skip action and go to
next action.