@Test public void testListIteratorIntegerListAndStringSeparator() { final GlobalSessionObject<Map<String, Object>> globalSessionObject = new GlobalSessionObject<>(); Map<String, String> result = new ListIteratorAction().execute(LIST_INTEGER, "alabala", globalSessionObject); assertEquals(HAS_MORE, result.get(RESULT_TEXT)); assertEquals(LIST_INTEGER, result.get(RESULT_STRING)); }
@Action(name = "List Iterator", description = LIST_ITERATOR, outputs = { @Output(value = RESULT_STRING, description = RESULT_STRING_DESC), @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC), @Output(value = RETURN_CODE, description = RETURN_CODE_DESC)}, responses = { @Response(text = HAS_MORE, field = RESULT_TEXT, value = HAS_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = HAS_MORE_DESC), @Response(text = NO_MORE, field = RESULT_TEXT, value = NO_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = NO_MORE_DESC), @Response(text = FAILURE, field = RESULT_TEXT, value = FAILURE, matchType = MatchType.COMPARE_EQUAL, isDefault = true, isOnFail = true, description = FAILURE_DESC)}) public Map<String, String> execute(@Param(value = LIST, required = true, description = LIST_DESC) String list, @Param(value = SEPARATOR, required = true, description = Constants.Descriptions.SEPARATOR_DESC) String separator, @Param("globalSessionObject") GlobalSessionObject<Map<String, Object>> globalSessionObject) { final String separatorImp = defaultIfEmpty(separator, ","); return ListService.iterate(list, separatorImp, globalSessionObject); }
ListIteratorAction { @Action(name = "List Iterator", description = LIST_ITERATOR, outputs = { @Output(value = RESULT_STRING, description = RESULT_STRING_DESC), @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC), @Output(value = RETURN_CODE, description = RETURN_CODE_DESC)}, responses = { @Response(text = HAS_MORE, field = RESULT_TEXT, value = HAS_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = HAS_MORE_DESC), @Response(text = NO_MORE, field = RESULT_TEXT, value = NO_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = NO_MORE_DESC), @Response(text = FAILURE, field = RESULT_TEXT, value = FAILURE, matchType = MatchType.COMPARE_EQUAL, isDefault = true, isOnFail = true, description = FAILURE_DESC)}) public Map<String, String> execute(@Param(value = LIST, required = true, description = LIST_DESC) String list, @Param(value = SEPARATOR, required = true, description = Constants.Descriptions.SEPARATOR_DESC) String separator, @Param("globalSessionObject") GlobalSessionObject<Map<String, Object>> globalSessionObject) { final String separatorImp = defaultIfEmpty(separator, ","); return ListService.iterate(list, separatorImp, globalSessionObject); } }
ListIteratorAction { @Action(name = "List Iterator", description = LIST_ITERATOR, outputs = { @Output(value = RESULT_STRING, description = RESULT_STRING_DESC), @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC), @Output(value = RETURN_CODE, description = RETURN_CODE_DESC)}, responses = { @Response(text = HAS_MORE, field = RESULT_TEXT, value = HAS_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = HAS_MORE_DESC), @Response(text = NO_MORE, field = RESULT_TEXT, value = NO_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = NO_MORE_DESC), @Response(text = FAILURE, field = RESULT_TEXT, value = FAILURE, matchType = MatchType.COMPARE_EQUAL, isDefault = true, isOnFail = true, description = FAILURE_DESC)}) public Map<String, String> execute(@Param(value = LIST, required = true, description = LIST_DESC) String list, @Param(value = SEPARATOR, required = true, description = Constants.Descriptions.SEPARATOR_DESC) String separator, @Param("globalSessionObject") GlobalSessionObject<Map<String, Object>> globalSessionObject) { final String separatorImp = defaultIfEmpty(separator, ","); return ListService.iterate(list, separatorImp, globalSessionObject); }  }
ListIteratorAction { @Action(name = "List Iterator", description = LIST_ITERATOR, outputs = { @Output(value = RESULT_STRING, description = RESULT_STRING_DESC), @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC), @Output(value = RETURN_CODE, description = RETURN_CODE_DESC)}, responses = { @Response(text = HAS_MORE, field = RESULT_TEXT, value = HAS_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = HAS_MORE_DESC), @Response(text = NO_MORE, field = RESULT_TEXT, value = NO_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = NO_MORE_DESC), @Response(text = FAILURE, field = RESULT_TEXT, value = FAILURE, matchType = MatchType.COMPARE_EQUAL, isDefault = true, isOnFail = true, description = FAILURE_DESC)}) public Map<String, String> execute(@Param(value = LIST, required = true, description = LIST_DESC) String list, @Param(value = SEPARATOR, required = true, description = Constants.Descriptions.SEPARATOR_DESC) String separator, @Param("globalSessionObject") GlobalSessionObject<Map<String, Object>> globalSessionObject) { final String separatorImp = defaultIfEmpty(separator, ","); return ListService.iterate(list, separatorImp, globalSessionObject); }  @Action(name = "List Iterator", description = LIST_ITERATOR, outputs = { @Output(value = RESULT_STRING, description = RESULT_STRING_DESC), @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC), @Output(value = RETURN_CODE, description = RETURN_CODE_DESC)}, responses = { @Response(text = HAS_MORE, field = RESULT_TEXT, value = HAS_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = HAS_MORE_DESC), @Response(text = NO_MORE, field = RESULT_TEXT, value = NO_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = NO_MORE_DESC), @Response(text = FAILURE, field = RESULT_TEXT, value = FAILURE, matchType = MatchType.COMPARE_EQUAL, isDefault = true, isOnFail = true, description = FAILURE_DESC)}) Map<String, String> execute(@Param(value = LIST, required = true, description = LIST_DESC) String list,
                                       @Param(value = SEPARATOR, required = true, description = Constants.Descriptions.SEPARATOR_DESC) String separator,
                                       @Param("globalSessionObject") GlobalSessionObject<Map<String, Object>> globalSessionObject); }
ListIteratorAction { @Action(name = "List Iterator", description = LIST_ITERATOR, outputs = { @Output(value = RESULT_STRING, description = RESULT_STRING_DESC), @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC), @Output(value = RETURN_CODE, description = RETURN_CODE_DESC)}, responses = { @Response(text = HAS_MORE, field = RESULT_TEXT, value = HAS_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = HAS_MORE_DESC), @Response(text = NO_MORE, field = RESULT_TEXT, value = NO_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = NO_MORE_DESC), @Response(text = FAILURE, field = RESULT_TEXT, value = FAILURE, matchType = MatchType.COMPARE_EQUAL, isDefault = true, isOnFail = true, description = FAILURE_DESC)}) public Map<String, String> execute(@Param(value = LIST, required = true, description = LIST_DESC) String list, @Param(value = SEPARATOR, required = true, description = Constants.Descriptions.SEPARATOR_DESC) String separator, @Param("globalSessionObject") GlobalSessionObject<Map<String, Object>> globalSessionObject) { final String separatorImp = defaultIfEmpty(separator, ","); return ListService.iterate(list, separatorImp, globalSessionObject); }  @Action(name = "List Iterator", description = LIST_ITERATOR, outputs = { @Output(value = RESULT_STRING, description = RESULT_STRING_DESC), @Output(value = RETURN_RESULT, description = RETURN_RESULT_DESC), @Output(value = RETURN_CODE, description = RETURN_CODE_DESC)}, responses = { @Response(text = HAS_MORE, field = RESULT_TEXT, value = HAS_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = HAS_MORE_DESC), @Response(text = NO_MORE, field = RESULT_TEXT, value = NO_MORE, matchType = MatchType.COMPARE_EQUAL, responseType = ResponseType.RESOLVED, description = NO_MORE_DESC), @Response(text = FAILURE, field = RESULT_TEXT, value = FAILURE, matchType = MatchType.COMPARE_EQUAL, isDefault = true, isOnFail = true, description = FAILURE_DESC)}) Map<String, String> execute(@Param(value = LIST, required = true, description = LIST_DESC) String list,
                                       @Param(value = SEPARATOR, required = true, description = Constants.Descriptions.SEPARATOR_DESC) String separator,
                                       @Param("globalSessionObject") GlobalSessionObject<Map<String, Object>> globalSessionObject);  }