/*
 * (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License v2.0 which accompany this distribution.
 *
 * The Apache License is available at
 * http://www.apache.org/licenses/LICENSE-2.0
 */
package io.cloudslang.lang.entities;

/**
 * User: stoneo
 * Date: 07/10/2014
 * Time: 12:52
 */
public interface ScoreLangConstants {

    String RUN_ENV = "runEnv";
    String HOOKS = "hooks";
    String NODE_NAME_KEY = "nodeName";

    //action scope
    String ACTION_CLASS_KEY = "className";
    String ACTION_TYPE = "actionType";

    String ACTION_METHOD_KEY = "methodName";
    String PYTHON_SCRIPT_KEY = "python_script";
    //navigation
    String NEXT_STEP_ID_KEY = "nextStepId";
    String PREVIOUS_STEP_ID_KEY = "previousStepId";

    //operation scope
    String EXECUTABLE_INPUTS_KEY = "executableInputs";
    String BIND_OUTPUT_FROM_INPUTS_KEY = "fromInputs";
    String USER_INPUTS_KEY = "userInputs";
    String EXECUTABLE_OUTPUTS_KEY = "executableOutputs";
    String EXECUTABLE_RESULTS_KEY = "executableResults";

    //task scope
    String TASK_INPUTS_KEY = "taskInputs";
    String TASK_PUBLISH_KEY = "taskPublishValues";
    String TASK_NAVIGATION_KEY = "taskNavigationValues";
    String REF_ID = "refId";
    String LOOP_KEY = "loop";
    String BREAK_LOOP_KEY = "breakOn";
    String ASYNC_LOOP_KEY = "async_loop";

    // Events types
	String SLANG_EXECUTION_EXCEPTION = "SLANG_EXECUTION_EXCEPTION";
	String EVENT_ACTION_START = "EVENT_ACTION_START";
	String EVENT_ACTION_END = "EVENT_ACTION_END";
	String EVENT_ACTION_ERROR = "EVENT_ACTION_ERROR";
	String EVENT_INPUT_START = "EVENT_INPUT_START";
	String EVENT_INPUT_END = "EVENT_INPUT_END";
	String EVENT_OUTPUT_START = "EVENT_OUTPUT_START";
	String EVENT_OUTPUT_END = "EVENT_OUTPUT_END";
    String EVENT_EXECUTION_FINISHED = "EVENT_EXECUTION_FINISHED";

    // results
    String SUCCESS_RESULT = "SUCCESS";
    String FAILURE_RESULT = "FAILURE";

}

@@ -1418,16 +1418,35 @@
 reakOn%22;
+%0A%0A    // async loop
 %0A    Str
@@ -1479,16 +1479,166 @@
 c_loop%22;
+%0A    String TASK_AGGREGATE_KEY = %22taskAggregateValues%22;%0A    String BRANCHES_CONTEXT_KEY = %22branches_context%22;%0A    String SPLIT_ITEM_KEY = %22splitItem%22;
 %0A%0A    //
@@ -2122,16 +2122,120 @@
 NISHED%22;
+%0A    String EVENT_BRANCH_START = %22EVENT_BRANCH_START%22;%0A    String EVENT_BRANCH_END = %22EVENT_BRANCH_END%22;
 %0A%0A    //

add entities changes - async loop