Skip to content

[Bug]: Corelink create workflow step functions bypass lifecycle state validation and does not raise a ValueError #1003

@tvdven

Description

@tvdven

Expected Behavior

  • When a workflow step function parameter is annotated with a product lifecycle state
  • The system should check that the subscription object matches that specific state
  • If the subscription is in a different state, a ValueError should be raised

Actual Behavior

  • The workflow step function executes without validating the annotated product lifecycle state
  • No ValueError is raised when the subscription object is in an incorrect state
  • The workflow continues processing despite the state mismatch

Steps to Reproduce

  1. Add a new step function within Corelink create workflow
  2. Annotate the function parameter of with a specific product lifecycle state (e.g., Sn8CorelinkProvisioning)
  3. Pass a subscription object that is NOT in that state
  4. Execute the workflow

Version

4.1.0

What python version are you seeing the problem on?

Python 3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue that need to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions