Search in sources :

Example 1 with PropertyDamageReport

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);
}
Also used : CaseFileInstance(org.jbpm.casemgmt.api.model.instance.CaseFileInstance) HashMap(java.util.HashMap) PropertyDamageReport(org.jbpm.casemgmt.demo.insurance.PropertyDamageReport)

Aggregations

HashMap (java.util.HashMap)1 CaseFileInstance (org.jbpm.casemgmt.api.model.instance.CaseFileInstance)1 PropertyDamageReport (org.jbpm.casemgmt.demo.insurance.PropertyDamageReport)1