Search in sources :

Example 1 with FoundationValueType

use of org.estatio.module.budget.dom.keytable.FoundationValueType in project estatio by estatio.

the class KeyTableBuilder method execute.

@Override
protected void execute(final ExecutionContext executionContext) {
    checkParam("budget", executionContext, Budget.class);
    checkParam("name", executionContext, String.class);
    defaultParam("foundationValueType", executionContext, fakeDataService.enums().anyOf(FoundationValueType.class));
    defaultParam("keyValueMethod", executionContext, fakeDataService.enums().anyOf(KeyValueMethod.class));
    defaultParam("numberOfDigits", executionContext, 3);
    final KeyTable keyTable = keyTableRepository.newKeyTable(budget, name, foundationValueType, keyValueMethod, numberOfDigits);
    keyTable.generateItems();
    executionContext.addResult(this, name, keyTable);
    object = keyTable;
}
Also used : FoundationValueType(org.estatio.module.budget.dom.keytable.FoundationValueType) KeyValueMethod(org.estatio.module.budget.dom.keytable.KeyValueMethod) KeyTable(org.estatio.module.budget.dom.keytable.KeyTable)

Aggregations

FoundationValueType (org.estatio.module.budget.dom.keytable.FoundationValueType)1 KeyTable (org.estatio.module.budget.dom.keytable.KeyTable)1 KeyValueMethod (org.estatio.module.budget.dom.keytable.KeyValueMethod)1