public static Map<String, String> prepareJSONArgs(Map<String, String> env, SectionResultData nextStepArgs) { if (nextStepArgs != null) { GfJsonObject argsJSon = nextStepArgs.getSectionGfJsonObject(); env.put(CLIMultiStepHelper.STEP_ARGS, argsJSon.toString()); } return env; }
public static Map<String, String> prepareJSONArgs(Map<String, String> env, SectionResultData nextStepArgs) { if (nextStepArgs != null) { GfJsonObject argsJSon = nextStepArgs.getSectionGfJsonObject(); env.put(CLIMultiStepHelper.STEP_ARGS, argsJSon.toString()); } return env; }
GfJsonObject argsJSon = nextStepArgs.getSectionGfJsonObject(); Gfsh.getCurrentInstance().setEnvProperty(CLIMultiStepHelper.STEP_ARGS, argsJSon.toString());
GfJsonObject argsJSon = nextStepArgs.getSectionGfJsonObject(); Gfsh.getCurrentInstance().setEnvProperty(CLIMultiStepHelper.STEP_ARGS, argsJSon.toString());
public SectionResultData addSection(SectionResultData otherSection) { String keyToAccess = String.valueOf(subsectionCount); GfJsonObject sectionData = otherSection.getSectionGfJsonObject(); try { contentObject.putAsJSONObject(SectionResultData.generateSectionKey(keyToAccess), sectionData); } catch (GfJsonException e) { throw new ResultDataException(e.getMessage()); } subsectionCount++; return new SectionResultData(sectionData); }
public SectionResultData addSection(SectionResultData otherSection) { String keyToAccess = String.valueOf(subsectionCount); GfJsonObject sectionData = otherSection.getSectionGfJsonObject(); try { contentObject.putAsJSONObject(SectionResultData.generateSectionKey(keyToAccess), sectionData); } catch (GfJsonException e) { throw new ResultDataException(e.getMessage()); } subsectionCount++; return new SectionResultData(sectionData); }