Execution.NewThread

Syntax

Execution.NewThread( sequenceFileParam, sequenceNameParam, options, sequenceContextParam = NULL, sequenceArgsParam = NULL)

Return Value

Thread

The thread created by this method.

Purpose

Creates and returns a new Thread object.

Remarks

When you call this method, the thread begins executing immediately. This method behaves similar to a Sequence Call step you configure to run in a new thread.

Parameters

sequenceFileParam As SequenceFile

[In] Specifies the SequenceFile object that contains the sequence to execute.

sequenceNameParam As String

[In] Specifies the name of the sequence to execute.

options As Long

[In] Pass 0 for the default behavior or pass one or more NewThreadOptions constants. Use the bitwise-OR operator to pass multiple constants.

sequenceContextParam As SequenceContext

[In] If you call this method from a code module for a step inside of an execution, pass the sequence context of the step. This allows this method to behave similar to a Sequence Call step and to set the SequenceContext.Caller property correctly.

This parameter has a default value of NULL .

sequenceArgsParam As PropertyObject

[In] Specifies a PropertyObject object that contains the arguments to the sequence you want to execute. Each subproperty of PropertyObject represents a parameter to the sequence. The subproperties must appear in the same order as the sequence parameters.

This parameter has a default value of NULL .

See Also

NewThreadOptions

PropertyObject

SequenceContext

SequenceContext.Caller

SequenceFile

Thread