diff --git a/packages/core/src/service/helpers/fulfillment-state-machine/fulfillment-state-machine.ts b/packages/core/src/service/helpers/fulfillment-state-machine/fulfillment-state-machine.ts index f8322e9b1d..99bf3f753f 100644 --- a/packages/core/src/service/helpers/fulfillment-state-machine/fulfillment-state-machine.ts +++ b/packages/core/src/service/helpers/fulfillment-state-machine/fulfillment-state-machine.ts @@ -58,7 +58,7 @@ export class FulfillmentStateMachine { {} as Transitions, ); - const validationResult = validateTransitionDefinition(allTransitions, 'Pending'); + const validationResult = validateTransitionDefinition(allTransitions, this.initialState); if (!validationResult.valid && validationResult.error) { Logger.error(`The fulfillment process has an invalid configuration:`); throw new Error(validationResult.error);