Search in sources :

Example 1 with FormInstanceResponse

use of com.plumdo.form.rest.instance.FormInstanceResponse in project plumdo-work by wengwh.

the class ResponseFactory method createFormInstanceResponse.

public FormInstanceResponse createFormInstanceResponse(FormInstance formInstance) {
    FormInstanceResponse response = new FormInstanceResponse();
    response.setBaseEntity(formInstance);
    response.setBusinessKey(formInstance.getBusinessKey());
    for (FormData formData : formInstance.getFormDatas()) {
        response.addFormData(formData);
    }
    return response;
}
Also used : FormData(com.plumdo.form.entity.FormData) FormInstanceResponse(com.plumdo.form.rest.instance.FormInstanceResponse)

Aggregations

FormData (com.plumdo.form.entity.FormData)1 FormInstanceResponse (com.plumdo.form.rest.instance.FormInstanceResponse)1