FlowStateImpl flowState = flowManagement.startFlowState(flowTypeName, true, null, null);
flowState.finishFlow();
return flowState;
}
private JSONWriter getJsonWriter() {
MapJsonRenderer mapJsonRenderer = new MapJsonRenderer();
JSONWriter jsonWriter = new JSONStringer();
jsonWriter.addRenderer(FlowValidationResultJsonRenderer.INSTANCE);
jsonWriter.addRenderer(FlowValidationTrackingJsonRenderer.INSTANCE);
jsonWriter.addRenderer(new FlowStateJsonRenderer(true));
jsonWriter.addRenderer(mapJsonRenderer);