I need to develop a web-app that would show a list of services provided by our company.One caveat, depending on the value of certain variables(e.g. type of the client, income level, number of children) the cost and duration of the provided services will change.
Notice, that each service is "individual" - it takes different number of variables to form the resulting cost and duration. Now, I am looking for a solution that would allow me to automate the process of input field generation based on the set of variables shown in the business rules.
Right now, I have to MANUALLY create the input fields (most are of radio or dropdown list type) like this
<select id = "myList">
<option value = "myValue1">one</option>
<option value = "myValue2">two</option>
<option value = "myValue3">three</option>
<option value = "myValue4">four</option>
</select>
Showing myValueN is the most painful part.
I have 50 services that I have to show on the list and I would hate to write static html like above.
My business rules are on Guvnor business rule editor by JBoss running on a BRMS(DROOLS) server (version 5.4.0)