import { ICommandDefinition } from "@zowe/imperative" ; import { join } from "path" ; import { StartCommonOptions } from "../Start.common.options" ; private export const WorkflowFull = { name : "workflow-full" , aliases : [ "wf" ] , description : "Will run workflow from the beginning to the end or to the first manual step." , type : "command" , handler : join ( __dirname , "./WorkflowFull.handler" ) , profile : { optional : [ "zosmf" ] } , options : ( [ StartCommonOptions . workflowKey , StartCommonOptions . workflowName , StartCommonOptions . resolveConflict , StartCommonOptions . wait ] ) , 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\"" } ] } ;