Run Task Using Planvisage Shell

How to Run Work Flow using Planvisage Shell?

· Work Flow Tasks will be Run using PlanvisageShell.exe

· User can Run the tasks in 2 ways.

1. Command Prompt (cmd)

· User can Run the task using a command that will Run any task from any PlantId.

· Command Prompt (.cmd) user has to enter the command below.

· c:\inetpub\wwwroot\WebServerSCM\bin>

· Enter the Task Run Command to Run the Task.

2. Using Batch file.

· User need to define tasks in the Batch File with the proper command.

· User can Run one or more tasks using the Batch file by calling a Task in particular Batch file.

· Batch files can be Run using Work Flow or Task Scheduler.

· Batch files will have the commands to be Run using the Shell.

· User can Run all the command using Batch File.

· Advantage of Batch file over Command Prompt is, user can Run a set of commands at a time.

· In the Batch file, user first have to enter the location of the PlanvisageShell.exe

· Location: cd c:\inetpub\wwwroot\WebServerSCM\bin

Format of Commands.

· Refer below for the format of commands in the Batch file.

· Format to call Custom Task: PlanvisageShell.exe CustomTask,PlantId,Priority.

· For Example, PlanvisageShell.exe runsql,0,C:\Users\Admin\Desktop\delete.txt

· Where Custom Task - runsql

· PlantId - 0

· Command - C:\Users\Admin\Desktop\delete.txt

· Above command is used to perform Delete action.

Examples of Command Format.

· PlanvisageShell.exe Updateproductionshifts,0,5

· PlanvisageShell.exe Infinitecapacityplan,0

· PlanvisageShell.exe runsql,0,C:\Users\Admin\Desktop\delete.txt

· PlanvisageShell.exe Infinitecapacityplan,0

· PlanvisageShell.exe runsql,0,C:\Users\Admin\Desktop\update.txt

· PlanvisageShell.exe scheduling,0

· PlanvisageShell.exe DataImport,0,D:\Files\DataImport.txt

Forecast and Replenishment Tasks With UserId and Without UserId.

· For some Task we need to pass UserId also.

· Planning and Scheduling Tasks and Custom Tasks will be without UsedId.

· Below are the Tasks that requires to pass UserId.

  1. DEMANDFORECASTING

  2. GENERATEFORECASTCLASSIFICATION

  3. FORECASTOUTLIERSDETECTION

  4. CALCULATEREPLENISHMENTSAFETYSTOCK

  5. REPLENISHMENTPLANNING

  6. DEPLOYMENTPLANNING

· Below are the Tasks that does not require UserId to be passed.

  1. GENERATEFORECASTCALENDAR

  2. GENERATEFORECASTHIERARCHYRELATION

  3. GENERATEREPLENISHMENTCALENDAR