A draft version of the PolicyTemplate class and its components (CustomAction, Procedure, and Execution). All models can be reduced to a JSON object and the most basic unit is the Execution and Filter. I did not change the Policy class at this stage.
Some problems still need to be fixed:
1) how to specify the "when" condition of an Execution?
2) do we need to create a new GovernableAction for posting messages and initiating votes to represent the generic action independent of the platform?
3) the reference to Execution for success code blocks is limited because there might be multiple executions for the success code blocks.
A draft version of the
PolicyTemplate
class and its components (CustomAction
,Procedure
, andExecution
). All models can be reduced to a JSON object and the most basic unit is the Execution and Filter. I did not change thePolicy
class at this stage.Some problems still need to be fixed: 1) how to specify the "when" condition of an
Execution
? 2) do we need to create a newGovernableAction
for posting messages and initiating votes to represent the generic action independent of the platform? 3) the reference to Execution forsuccess
code blocks is limited because there might be multiple executions for thesuccess
code blocks.