Declares a step: a class extending Step directly, whose run
makes its outcome. A workflow lists it with @withStep, which accepts only
a class declared with @step.
Every parameter of the step's constructor and of its run is a request,
marked with the decorator of what it requests: @input on the
constructor's, @service, @contributor and @stepReporter on those of
run.
A step keeps no static data, which every attempt of every journey would
share: a public static property holding anything but a function does not
compile, and a protected or private one, or an accessor, is refused when
the class is defined, as WithoutStaticData says.
Error, when the class is defined, if it does not extend Step
itself, if it keeps static data, if it is declared twice, or if a
parameter has no request.
Declares a step: a class extending Step directly, whose
runmakes its outcome. A workflow lists it with@withStep, which accepts only a class declared with@step.Every parameter of the step's constructor and of its
runis a request, marked with the decorator of what it requests:@inputon the constructor's,@service,@contributorand@stepReporteron those ofrun.A step keeps no static data, which every attempt of every journey would share: a public static property holding anything but a function does not compile, and a
protectedorprivateone, or an accessor, is refused when the class is defined, as WithoutStaticData says.