Marks a method of a workflow class as a service provider of the service
type type: called with the workflow object as this while a step it
serves is built, once per journey or, with perAttempt, for every
attempt. It returns this.provide(instance) or
this.provide(instance, data), and fails by throwing. service_provided
then names the instance's class, or the service type for an instance with
no class of its own, such as a plain object; a bundler that minifies class
names changes the name it reports.
Its parameters request what it needs: @journeyId(),
@fromWorkflow(key, type) and @providerReporter(), and, for a provider
of attempt scope, @stepName() and @attempt().
Error, when the class is defined, if its name or its key is empty,
if a parameter has no request or one a provider may not make, or if the
compiler option emitDecoratorMetadata is off.
Marks a method of a workflow class as a service provider of the service type
type: called with the workflow object asthiswhile a step it serves is built, once per journey or, withperAttempt, for every attempt. It returnsthis.provide(instance)orthis.provide(instance, data), and fails by throwing.service_providedthen names the instance's class, or the service type for an instance with no class of its own, such as a plain object; a bundler that minifies class names changes the name it reports.Its parameters request what it needs:
@journeyId(),@fromWorkflow(key, type)and@providerReporter(), and, for a provider of attempt scope,@stepName()and@attempt().