Marks the method of a workflow class that makes the journey ID of each of
its instances, in place of a random UUID. It is called with the workflow
object as this, while the instance is created, and returns the ID
synchronously, as a string that is not empty: an empty one makes
instance() throw a TypeError. Its one parameter, when it has one,
requests the data bag with @dataBag(), holding the instance's initial
data, from which it may derive the ID.
Error, when the class is defined, if a parameter has no request or
one an ID generator may not make, if the class has another ID generator,
or if the compiler option emitDecoratorMetadata is off.
Marks the method of a workflow class that makes the journey ID of each of its instances, in place of a random UUID. It is called with the workflow object as
this, while the instance is created, and returns the ID synchronously, as a string that is not empty: an empty one makesinstance()throw aTypeError. Its one parameter, when it has one, requests the data bag with@dataBag(), holding the instance's initial data, from which it may derive the ID.