작업에서 값을 반환
- 최종 업데이트2022/05/19
CommandPkg에서 다음 특성을 설정하여 작업 출력을 변수에 저장합니다.
작업 반환 값
- return_type작업의 반환 유형을 정의합니다. 이는 일반적으로 입력 방법의 반환 유형과 일치합니다. 
- return_requiredtrue로 설정된 경우 반환 값이 필요합니다. 
- return_label변수 값에 대한 UI 라벨의 설명입니다. 
예: sourceString을 대문자로 변환하고 결과를 returnTo에 지정
//BotCommand makes a class eligible for being considered as an action.
@BotCommand
//CommandPks adds required information to be displayable on the UI.
@CommandPkg(
		//Unique name inside a package and label to display.
		name = "uppercase", label = "[[Uppercase.label]]",  
		node_label = "[[Uppercase.node_label]]",  description = "[[Uppercase.description]]", icon = "pkg.svg", 
		
		//Return type information. return_type ensures only the right kind of variable is provided on the UI. 
		return_label = "[[Uppercase.return_label]]", return_type = STRING, return_required = true)
public class Uppercase {
	
	//Messages read from a fully qualified property file name and provides i18n capability.
	private static final Messages MESSAGES = MessagesFactory
			.getMessages("com.automationanywhere.botcommand.samples.messages");
	//Identify the entry point for the action. Returns a Value <String> because the return type is String. 
	@Execute
	public Value<String> action(
			//Idx 1 would be displayed first, with a text box for entering the value.
			@Idx(index = "1", type = TEXT) 
			//UI labels.
			@Pkg(label = "[[Uppercase.sourceString.label]]") 
			//Ensure that a validation error is thrown when the value is null.
			@NotEmpty 
			String sourceString,