Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object Workflow #555

Closed
xIrusux opened this issue Nov 18, 2024 · 1 comment · Fixed by #623
Closed

Object Workflow #555

xIrusux opened this issue Nov 18, 2024 · 1 comment · Fixed by #623
Assignees
Labels

Comments

@xIrusux
Copy link

xIrusux commented Nov 18, 2024

Image
I am getting an error response when trying to submit a workflow action for objects.

here my api call with parameters:
Image

The class name of the object is "Car":
Image

Which is the same class name that the workflow is specified for:
Image

When I remove the condition of the workflow I am getting the below error:
Image
Which may suggest there is a problem with getting Workflows for objects?

Image
For consistency purposes we may want to use 'data-object' instead of 'object' here.

@lukmzig
Copy link
Contributor

lukmzig commented Dec 9, 2024

@xIrusux
based on your screenshot you are passing incorrect values to the endpoint:

  • you should provide the workflow name/ID which is product_data_enrichment but you are passing product_data_enrichment_workflow which does not exists (as error message says, it cannot find workflow with an ID which you provided)
  • same for the transition, there an ID should be passed

I adapted the schema in this PR #623 so its more clear, the parameters are renamed now

Regarding the exception, this can be also interpreted as a validation error - there cannot be expression selected with no condition provided. I added a catch block in studio so we filter out this invalid workflow definitions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants