Icon

KNIME_​NodePit_​Batch_​Windows

<p>Simple KNIME NodePit Batchprocessing on Windows</p><p><br>This workflow is being called thru a KNIME batch process<br><br>KNIME Batch Processing on Windows and&nbsp;MacOS<br>https://medium.com/p/caacde067bd0</p><p>----</p><p><strong>NodePit Batch</strong></p><p><strong>Run your KNIME workflows headless</strong></p><p>https://nodepit.com/product/batch</p>

URL: Medium: KNIME Batch Processing https://medium.com/p/caacde067bd0
URL: NodePit Batch https://nodepit.com/product/batch
URL: Simple KNIME NodePit Batch processing on Windows https://forum.knime.com/t/batch-execution-no-longer-supported/91773/17?u=mlauber71
URL: Thread about KNIME Automation (Add94) https://forum.knime.com/t/hardware-experiences-for-knime-ap-via-remote/90686/11?u=mlauber71

@echo off

setlocal EnableDelayedExpansion


for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd-HHmmss"') do set TIMESTAMP=%%a

for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format dd.MM.yyyy"') do set DATESTR=%%a

for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format HH"') do set hours=%%a

for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format mm"') do set minutes=%%a

for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format ss"') do set seconds=%%a


set KNIME_PATH=C:\Users\%USERNAME%\software\knime_5.10.0\knime.exe

set WORKFLOW_PATH=C:\Users\%USERNAME%\knime-workspace-5\Examples\KNIME - NodePit Batch\KNIME_NodePit_Batch_Windows

set DATA_PATH=C:\Users\%USERNAME%\knime-workspace-5\Examples\KNIME - NodePit Batch\data\

set LOG_FILE_PATH=%DATA_PATH%\knime_log_%TIMESTAMP%.txt


"%KNIME_PATH%" ^

  -nosplash ^

  -consoleLog ^

  -application com.nodepit.batch.application.NodePitBatchExecutor ^

  -r ^

  -v="var_data_path_location;%DATA_PATH%;String" ^

  "%WORKFLOW_PATH%" > "%LOG_FILE_PATH%" 2>&1


set EXITCODE=%ERRORLEVEL%


echo Workflow execution complete. Exit code: %EXITCODE%

echo Log file saved to "%LOG_FILE_PATH%".


exit /b %EXITCODE%

Simple KNIME NodePit Batch processing on Windows

https://forum.knime.com/t/batch-execution-no-longer-supported/91773/17?u=mlauber71


This workflow is being called thru a KNIME batch process

KNIME Batch Processing on Windows and MacOS
https://medium.com/p/caacde067bd0

Content of the "knime_nodepit_batch.cmd" file in the ../script/ folder of the workflow group (https://hub.knime.com/s/lMFK_EFBmR__aJZD)

NodePit Batch

Run your KNIME workflows headless

https://nodepit.com/product/batch

Workflow Variables are initially set and will be filled by the batch script calling the KNIME workflow. You will have to switch to classic interface to do this

train.table Read the table from the path
Table Reader
current_date
String to Date&Time (deprecated)
current_date_time
Modify Time (deprecated)
current_time HH:mm:ss
String to Date&Time (deprecated)
var_file_path
String to Path (Variable)
var_file_path return $${Svar_data_path}$$ + "train.table"; configure the file path with the workflow variable
Java Edit Variable (simple)
file_path
Constant Value Column (deprecated)
Date&Time Part Extractor
var_excel_path
Excel Writer
construct filename
current time
Date&Time Range Creator
current_time
Constant Value Column (deprecated)
current_date
Constant Value Column (deprecated)

Nodes

Extensions

Links