Open OliverTod opened 3 years ago
Amended 'Accord Project Template' diagram if Proposal 2 is implemented:
Thanks for writing this up @OliverTod. Here are some thoughts towards a technical solution for the questionnaire component:
We should separate the questionnaire's model from that of the SLC. They are related but distinct; this is a similar distinction to the presentation-layer vs database schemas, IMO. This implies that we'll need some way to transform between them (either in code, some transformation language, or using annotations) (i.e. a "controller").
The presentation / rendering "view" should also be separate from the model (which includes layout data and paging info for example). This allows us to support multiple views for a single SLC.
This gives a traditional model-view-controller (MVC) architecture to this new component.
TSC Notes:
Background:
A comprehensive background to this proposal is set out in these slides and was discussed on this Tech WG call
In short, there is a compelling use case for making it easier for users to populate Accord Project instances through a 'questionnaire'/web form. This will help to:
Proposals:
In the context set out above, it is proposed that Accord Project should develop either or both of the following:
Proposal 1: Integrations with online form tools
Currently, users need to either parse a sample (.md) file or manually write a data (.JSON) file in order to create an instance of an Accord Project template. Users should also be able to fill in a webform to populate this data file. This webform should be automatically generated based on the model file. ConcertoUI is based on this idea.
Concerto itself would need to be extended to support ‘presentation’ variables in a standardised way. For example, setting standard attributes in the @FormEditor decorator. It should be possible to provide a baseline of supported field types, which suit most legal applications.
How this would work in practice:
Proposal 2: using a 'model editor wizard' to produce an SLC instance
Although the proposal set out above will make it easier to create SLC instances from model files - it does not cover complete conversion from existing document automation tools (ie questionnaires that populate documents) into Accord Project SLCs. In order to achieve this, much more context, structure and guidance functionality will be needed. This is a huge part of the value that is delivered by existing legal document automation tools. This includes being able to include:
How this would work in practice:
In due course, this work could be extended this so that, instead of just building the SLC data file, the questionnaire adds/subtracts from each of the other files in the SLC. For example, text is included in the grammar or code is included in the logic files based on the responses.
Next steps
This proposal is submitted to the TSC for approval. This represents a significant new direction for the Accord Project to pursue.
Members from the community (especially @mttrbrts, @dselman and @jeromesimeon ) are encouraged to comment on this issue with their thoughts and concerns.