Package org.camunda.bpm.engine.rest.dto.runtime

Examples of org.camunda.bpm.engine.rest.dto.runtime.CaseInstanceDto


      matchingInstances = query.list();
    }

    List<CaseInstanceDto> instanceResults = new ArrayList<CaseInstanceDto>();
    for (CaseInstance instance : matchingInstances) {
      CaseInstanceDto resultInstance = CaseInstanceDto.fromCaseInstance(instance);
      instanceResults.add(resultInstance);
    }
    return instanceResults;
  }
View Full Code Here


      String errorMessage = String.format("Cannot instantiate case definition %s: %s", caseDefinitionId, e.getMessage());
      throw new RestException(Status.INTERNAL_SERVER_ERROR, e, errorMessage);

    }

    CaseInstanceDto result = CaseInstanceDto.fromCaseInstance(instance);

    URI uri = context.getBaseUriBuilder()
      .path(rootResourcePath)
      .path(CaseInstanceRestService.PATH)
      .path(instance.getId())
      .build();

    result.addReflexiveLink(uri, HttpMethod.GET, "self");

    return result;
  }
View Full Code Here

    if (instance == null) {
      throw new InvalidRequestException(Status.NOT_FOUND, "Case instance with id " + caseInstanceId + " does not exist.");
    }

    CaseInstanceDto result = CaseInstanceDto.fromCaseInstance(instance);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.rest.dto.runtime.CaseInstanceDto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.