Till Process Module

Till Process Module is a system module, that is used for running executable programs (EP).

Module:

process

Properties:

Functions:

Program from reference “/process/single/process.single.till” that demonstrates how to construct the module:

Process module has two functions for executing processes “execute” and “run”. While they both execute the process, there are two differences between them: calling program run state and returning values.

Program from reference “/process/single/process.execute.single.till” that demonstrates how to use function “execute”:

Function “execute” executes the process, and does not return value, while the calling program continues to run. This usually fits launch and forget scenarios, where there is no need for the program to wait for the process to complete its task, and there is no need to get results.

Program from reference “/process/single/process.run.single.till” that demonstrates how to use function “run”:

Function “run” blocks program run and executes the process. While some processes are running very fast, others take time to finish. Anyway, the program will wait for the process to complete.

Function “run” returns a result, that is the output of the process. It is up to the process developers whether to return a result, and if no result returned, then the returned result will be an empty string.

EPs exit with a numeric value called the “exit code”. If process ran successfully than its exit code is zero (by convention, unless set to another value). The exit code can be seen at property “exitcode”. Usually, the process run state messages order is synchronized with the exit code values.

In this example there is process “proc.till” with validity checks that exit with exit codes, and returned result:

Create fast TEP “proc.exe”:

and use in “proc.app.instances.till” (multi instances demo):

Or “proc.app.till” (one instance):

And the static version “proc.app.static.till”: