"use strict";
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkflowFull = void 0;
const path_1 = require("path");
const Start_common_options_1 = require("../Start.common.options");
/**
 * This object defines the command for delete workflow using workflow key within zos-workflows.
 * This is not something that is intended to be used outside of this npm package.
 *
 * @private
 */
exports.WorkflowFull = {
    name: "workflow-full",
    aliases: ["wf"],
    summary: "Will run workflow from the beginning to the end or to the first manual step",
    description: "Will run workflow from the beginning to the end or to the first manual step.",
    type: "command",
    handler: (0, path_1.join)(__dirname, "./WorkflowFull.handler"),
    profile: {
        optional: ["zosmf"]
    },
    options: [
        Start_common_options_1.StartCommonOptions.workflowKey,
        Start_common_options_1.StartCommonOptions.workflowName,
        Start_common_options_1.StartCommonOptions.resolveConflict,
        Start_common_options_1.StartCommonOptions.wait
        // StartCommonOptions.zosmfVersion,
    ],
    examples: [
        {
            description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\"",
            options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\""
        },
        {
            description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" and wait for " +
                "it to be finished",
            options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --wait"
        },
        {
            description: "To start a workflow instance in z/OSMF with workflow key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" " +
                "and if there is a conflict in variable's value use the value that is in output file",
            options: "--workflow-key \"d043b5f1-adab-48e7-b7c3-d41cd95fa4b0\" --resolve-conflict-by \"outputFileValue\""
        },
        {
            description: "To start a workflow instance in z/OSMF with workflow name \"testWorkflow\"",
            options: "--workflow-name \"testWorkflow\""
        }
    ]
};
//# sourceMappingURL=WorkflowFull.definition.js.map