use of org.jbpm.casemgmt.demo.insurance.PropertyDamageReport in project jbpm by kiegroup.
the class CarInsuranceClaimCaseTest method provideAndAssertPropertyDamageReport.
protected void provideAndAssertPropertyDamageReport(Long taskId) {
PropertyDamageReport damageReport = new PropertyDamageReport("Car is completely destroyed", 1000.0);
Map<String, Object> params = new HashMap<>();
params.put("propertyDamageReport_", damageReport);
userTaskService.completeAutoProgress(taskId, "john", params);
// property damage report should be stored in case file data
CaseFileInstance caseFile = caseService.getCaseFileInstance(CAR_INS_CASE_ID);
assertNotNull(caseFile);
PropertyDamageReport casePropertyDamageReport = (PropertyDamageReport) caseFile.getData("propertyDamageReport");
assertNotNull(casePropertyDamageReport);
}
Aggregations