Search in sources :

Example 1 with Expense

use of org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Expense in project kie-wb-common by kiegroup.

the class NestedFormsBPMNVFSFormDefinitionGeneratorServiceTest method getExpenseDataObject.

protected DataObject getExpenseDataObject() {
    DataObject expense = new DataObjectImpl(Expense.class.getPackage().toString(), Expense.class.getSimpleName());
    expense.addProperty("id", Long.class.getName(), false, null);
    expense.addProperty("date", Date.class.getName(), false, null);
    expense.addProperty("client", Client.class.getName(), false, null);
    expense.addProperty("lines", Line.class.getName(), true, List.class.getName());
    return expense;
}
Also used : DataObjectImpl(org.kie.workbench.common.services.datamodeller.core.impl.DataObjectImpl) Line(org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Line) DataObject(org.kie.workbench.common.services.datamodeller.core.DataObject) Expense(org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Expense) List(java.util.List) Client(org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Client) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 List (java.util.List)1 Client (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Client)1 Expense (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Expense)1 Line (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Line)1 DataObject (org.kie.workbench.common.services.datamodeller.core.DataObject)1 DataObjectImpl (org.kie.workbench.common.services.datamodeller.core.impl.DataObjectImpl)1