Get bpmn artifact from BE.
Issue-ID: SDC-1128
Change-Id: I33550c43f330f9fdaf6750ad4f4eefea0bebbdfd
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
response = String.class)})
@Timed
public Response getModel(@ApiParam(value = "id") @PathParam("id") String id) {
- String filePath = "model.json";
try {
- String json = FileCommonUtils.readString(filePath);
+ String json = FileCommonUtils.readString(WORKFLOW_JSON_TEMP_FILE_NAME);
return Response.status(Response.Status.OK).entity(json).build();
} catch (IOException e) {
logger.error("get workflow failed.", e);