openlaw-elements icon indicating copy to clipboard operation
openlaw-elements copied to clipboard

Add support for DomainType

Open outkaj opened this issue 5 years ago • 3 comments

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!

outkaj avatar Sep 12 '19 17:09 outkaj

This looks fun! I'll try to get something together today, or tomorrow, to test out.

jtrein avatar Sep 26 '19 14:09 jtrein

@jdville03 I missed the latest release I bet...?

jtrein avatar Sep 26 '19 14:09 jtrein

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.

jdville03 avatar Sep 26 '19 23:09 jdville03