-
Notifications
You must be signed in to change notification settings - Fork 36
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
[META] End to end template API user experience #88
Comments
This is a good idea, perhaps we can run the template through the workflow process sorter to validate the graph and not execute it |
Yep, there's a private method we can probably make public to more easily enable that. |
Regarding the 4th point, trying to understand more for validation. Should we have a dry run param or validation should be done every time there's a call to template API? Be it to just to save the template or start the provisioning. |
If we add validation by default as a prerequisite to saving a WIP template, that could be a frustrating experience for a builder. In that regard, I think it should be a separate capability and having an optional dry-run param for the Having the dry-run param for the |
I think validation goes more with the "execution" portion, but we should be able to do the validation before saving. Which means we sort of need a "save-and-execute" single API call. Which brings back up the possibility of combining APIs. We have
followed by
This works well for a "save WIP and finally execute when done" but in the case we have a completed/debugged template that we always want to execute, we could do that all-in-one with:
Now, throw a validation param in there and we have a one-liner just like we want:
(or similar) |
Closing as completed since the remaining P1 items have separate issues tracking them |
The APIs to save and provision a workflow as part of #49 need to be fully integrated with existing and needed validation checks and exception handling. The goal is to provide fast-failure validation information to a user giving them enough information to correct an invalid template, and also provide appropriate feedback to a user when a workflow fails, identifying enough detail to correct the issue.
The following steps need to be completed:
P0 Tasks
IllegalArgumentException
with aFlowFrameworkException
including an appropriateRestStatus
. #656TimeoutException
or other failures) with aFlowFrameworkException
including an appropriateRestStatus
.RestResponse
for the API method(s) to handle these exceptions, and build a response to the user containing an appropriately detailed error message.user_inputs
field from template and set values directly for eachworkflow
#105P1 Tasks
RestCreateWorkflowAction
to validate the template workflow graph #99The text was updated successfully, but these errors were encountered: