 | WorkerShell(String, XElement, Boolean, INodeTrigger) Constructor |
constructor - takes over the path to the worker exe, and a parameter string that is used for the
call of the exe is also transferred. Optionally, a trigger can also be transferred,
which repeatedly calls a worker once it has been activated.
In addition to any placeholders that can be resolved by the program session, the parameter string can contain
contain the following placeholders, which are replaced by current runtime values when the worker exe is called
be replaced:
"%Event%" = Name of the event that led to the worker being called,
"%Source%" = Source of the event (node in which the event first occurred),
"%Sender%" = Node that is currently calling the worker due to the event,
"%Timestamp%" = current date with current time in the format "dd.MM.yyyy HH.mm.ss",
"%Logical%" = current logical value of the transmitter,
"%Exception%" = Exception.Message, if %Event% is "Exception", otherwise "".
Namespace: LogicalTaskTreeAssembly: LogicalTaskTree (in LogicalTaskTree.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntaxpublic WorkerShell(
string slavePathName,
XElement slaveParameters,
bool transportByFile,
INodeTrigger? workerTrigger
)
Public Sub New (
slavePathName As String,
slaveParameters As XElement,
transportByFile As Boolean,
workerTrigger As INodeTrigger
)
public:
WorkerShell(
String^ slavePathName,
XElement^ slaveParameters,
bool transportByFile,
INodeTrigger^ workerTrigger
)
new :
slavePathName : string *
slaveParameters : XElement *
transportByFile : bool *
workerTrigger : INodeTrigger -> WorkerShell
Parameters
- slavePathName String
- File path and name of an exe.
- slaveParameters XElement
- Call parameters of the exe as XML.
- transportByFile Boolean
- If True, the parameters are transferred via an XML file, otherwise via the command line.
- workerTrigger INodeTrigger
- A trigger that calls the job repeatedly or null.
See also