Preparing search index...
The search index is not available
@camunda8/sdk
@camunda8/sdk
index
<internal>
ZBStreamWorker
Class ZBStreamWorker
Implements
IZBJobWorker
Index
Constructors
constructor
Properties
grpc
Client
logger
streams
zb
Client
Methods
close
complete
Job
debug
error
error
Job
fail
Job
log
make
Complete
Handlers
stream
Jobs
Constructors
constructor
new ZBStream
Worker
(
__namedParameters
)
:
ZBStreamWorker
Parameters
__namedParameters
:
{
grpcClient
:
ZBGrpc
;
log
:
StatefulLogInterceptor
;
zbClient
:
ZeebeGrpcClient
;
}
grpc
Client
:
ZBGrpc
log
:
StatefulLogInterceptor
zb
Client
:
ZeebeGrpcClient
Returns
ZBStreamWorker
Properties
Private
grpc
Client
grpc
Client
:
ZBGrpc
Private
logger
logger
:
StatefulLogInterceptor
Private
streams
streams
:
ClientReadableStream
<
unknown
>
[]
= []
Private
zb
Client
zb
Client
:
ZeebeGrpcClient
Methods
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Private
complete
Job
complete
Job
(
jobKey
,
completedVariables
?
,
taskType
)
:
Promise
<
"JOB_ACTION_ACKNOWLEDGEMENT"
>
Parameters
jobKey
:
string
completedVariables
:
{}
= {}
taskType
:
any
Returns
Promise
<
"JOB_ACTION_ACKNOWLEDGEMENT"
>
debug
debug
(
msg
)
:
void
Parameters
msg
:
JSON
Returns
void
error
error
(
msg
)
:
void
Parameters
msg
:
JSON
Returns
void
Private
error
Job
error
Job
(
__namedParameters
)
:
Promise
<
"JOB_ACTION_ACKNOWLEDGEMENT"
>
Parameters
__namedParameters
:
{
errorCode
:
string
;
errorMessage
:
string
;
job
:
Job
<
IInputVariables
,
ICustomHeaders
>
;
variables
:
JSONDoc
;
}
error
Code
:
string
error
Message
:
string
job
:
Job
<
IInputVariables
,
ICustomHeaders
>
variables
:
JSONDoc
Returns
Promise
<
"JOB_ACTION_ACKNOWLEDGEMENT"
>
Private
fail
Job
fail
Job
(
__namedParameters
)
:
Promise
<
"JOB_ACTION_ACKNOWLEDGEMENT"
>
Parameters
__namedParameters
:
{
errorMessage
:
string
;
job
:
Job
<
IInputVariables
,
ICustomHeaders
>
;
retries
?:
number
;
retryBackOff
?:
number
;
}
error
Message
:
string
job
:
Job
<
IInputVariables
,
ICustomHeaders
>
Optional
retries
?:
number
Optional
retry
Back
Off
?:
number
Returns
Promise
<
"JOB_ACTION_ACKNOWLEDGEMENT"
>
log
log
(
msg
)
:
void
Parameters
msg
:
JSON
Returns
void
Protected
make
Complete
Handlers
make
Complete
Handlers
<
T
>
(
thisJob
,
taskType
)
:
JobCompletionInterface
<
T
>
Type Parameters
T
Parameters
thisJob
:
Job
<
IInputVariables
,
ICustomHeaders
>
taskType
:
string
Returns
JobCompletionInterface
<
T
>
stream
Jobs
stream
Jobs
<
WorkerInputVariables
,
CustomHeaderShape
,
WorkerOutputVariables
>
(
req
)
:
Promise
<
{
close
:
(
(
)
=>
void
)
;
}
>
Type Parameters
WorkerInputVariables
CustomHeaderShape
WorkerOutputVariables
Parameters
req
:
StreamActivatedJobsRequest
&
{
customHeadersDto
:
(
new
(
...
args
)
=>
Readonly
<
CustomHeaderShape
>
)
;
inputVariableDto
:
(
new
(
...
args
)
=>
Readonly
<
WorkerInputVariables
>
)
;
taskHandler
:
ZBWorkerTaskHandler
<
WorkerInputVariables
,
CustomHeaderShape
,
WorkerOutputVariables
>
;
}
Returns
Promise
<
{
close
:
(
(
)
=>
void
)
;
}
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
grpc
Client
logger
streams
zb
Client
close
complete
Job
debug
error
error
Job
fail
Job
log
make
Complete
Handlers
stream
Jobs
@camunda8/sdk
Loading...
Generated using
TypeDoc