openlaw-elements
openlaw-elements copied to clipboard
Add support for DomainType
now we have a DomainType in ol-core which can look something like
[[Amount:DomainType(
variableType: Number;
condition: this > 0;
errorMessage:"amount must be greater than 0!"
)]]
[[amount:Amount]]
it also works with expressions like
[[Amount:DomainType(
variableType: Number;
condition: this > 0;
errorMessage:"amount must be greater than 0!"
)]]
[[amount:Amount]]
[[amount2:Amount]]
[[@amount expression=amount - amount2]]
[[amount expression]]
@jtrein could you quickly look into adding support for this at some point before our next app release? many thanks!
This looks fun! I'll try to get something together today, or tomorrow, to test out.
@jdville03 I missed the latest release I bet...?
That's ok. I'm not really familiar with this new DomainType. I don't think anyone has tested what would would happen if it got included in a template now, but seems like there will be failures because not handled by elements.