CorrelationSource
Defined in: packages/pipeline-job-context/src/interfaces/context-source.interface.ts:15
A correlation id source that also makes new ids and judges ids received from outside.
Extends
Section titled “Extends”Methods
Section titled “Methods”accepts()
Section titled “accepts()”accepts(
id):boolean
Defined in: packages/pipeline-job-context/src/interfaces/context-source.interface.ts:19
Whether id, read from a job payload, is a well-formed correlation id.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
create()
Section titled “create()”create():
string
Defined in: packages/pipeline-job-context/src/interfaces/context-source.interface.ts:17
A new correlation id.
Returns
Section titled “Returns”string
current()
Section titled “current()”current():
string|undefined
Defined in: packages/pipeline-job-context/src/interfaces/context-source.interface.ts:9
The value of the current execution, or undefined for none.
Returns
Section titled “Returns”string | undefined
Inherited from
Section titled “Inherited from”run<
T>(value,fn):T
Defined in: packages/pipeline-job-context/src/interfaces/context-source.interface.ts:11
Runs fn with value as the current value for everything it calls.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string | undefined
() => T
Returns
Section titled “Returns”T