Search in sources :

Example 1 with Person

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

the class AbstractBPMNFormGeneratorServiceTest method launchNestedFormWithCyclicReference.

protected FormGenerationResult launchNestedFormWithCyclicReference() {
    List<ModelProperty> variableList = new ArrayList<>();
    variableList.add(new ModelPropertyImpl("person", new TypeInfoImpl(TypeKind.OBJECT, Person.class.getName(), false)));
    BusinessProcessFormModel model = new BusinessProcessFormModel(PROCESS_ID, PROCESS_ID, variableList);
    FormGenerationResult result = service.generateForms(model, source);
    assertNotNull(result);
    assertNotNull(result.getRootForm());
    checkRootForm(model, result, variableList);
    return result;
}
Also used : FormGenerationResult(org.kie.workbench.common.forms.jbpm.server.service.formGeneration.FormGenerationResult) ModelProperty(org.kie.workbench.common.forms.model.ModelProperty) ArrayList(java.util.ArrayList) BusinessProcessFormModel(org.kie.workbench.common.forms.jbpm.model.authoring.process.BusinessProcessFormModel) ModelPropertyImpl(org.kie.workbench.common.forms.model.impl.ModelPropertyImpl) TypeInfoImpl(org.kie.workbench.common.forms.model.impl.TypeInfoImpl) Person(org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Person)

Aggregations

ArrayList (java.util.ArrayList)1 BusinessProcessFormModel (org.kie.workbench.common.forms.jbpm.model.authoring.process.BusinessProcessFormModel)1 FormGenerationResult (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.FormGenerationResult)1 Person (org.kie.workbench.common.forms.jbpm.server.service.formGeneration.model.Person)1 ModelProperty (org.kie.workbench.common.forms.model.ModelProperty)1 ModelPropertyImpl (org.kie.workbench.common.forms.model.impl.ModelPropertyImpl)1 TypeInfoImpl (org.kie.workbench.common.forms.model.impl.TypeInfoImpl)1