What happened:
Workflows defined through the Java SDK are serialized without the call field.
As a result, the TypeScript SDK returns the following error:
Unable to defined task type of task named 'findPetByStatus'
The generated task contains this:
{
"findPetByStatus": {
"with": {
"document": {
"endpoint": "openapi/petstore.json"
},
"operationId": "findPetsByStatus",
"parameters": {
"status": "sold"
}
}
}
}
The serialized task should also contain:
Example:
{
"findPetByStatus": {
"call": "openapi",
"with": {
"document": {
"endpoint": "openapi/petstore.json"
},
"operationId": "findPetsByStatus",
"parameters": {
"status": "sold"
}
}
}
}
What you expected to happen:
OpenAPI tasks defined through the Java SDK should be serialized with:
The resulting workflow should be valid according to the DSL and should be correctly recognized by the TypeScript SDK.
How to reproduce it:
Use the Quarkus Flow Petstore example:
https://github.com/quarkiverse/quarkus-flow/tree/main/examples/petstore-openapi
-
Run the petstore-openapi example.
-
Open:
http://localhost:8080/q/dev-ui/quarkus-flow/workflows
-
Open the workflow diagram by clicking the eye icon.
-
Observe that the diagram cannot be rendered and the TypeScript SDK reports:
Unable to defined task type of task named 'findPetByStatus'
Anything else we need to know?:
This deployment of the DiagramEditor can be used for a final check to test that the generated workflow is accepted by the typescript-sdk:
https://deploy-preview-274--openworkflow-editor.netlify.app/?path=/story/diagram-editor--component
Environment:
- Specification version used:
1.0.0
What happened:
Workflows defined through the Java SDK are serialized without the
callfield.As a result, the TypeScript SDK returns the following error:
The generated task contains this:
{ "findPetByStatus": { "with": { "document": { "endpoint": "openapi/petstore.json" }, "operationId": "findPetsByStatus", "parameters": { "status": "sold" } } } }The serialized task should also contain:
Example:
{ "findPetByStatus": { "call": "openapi", "with": { "document": { "endpoint": "openapi/petstore.json" }, "operationId": "findPetsByStatus", "parameters": { "status": "sold" } } } }What you expected to happen:
OpenAPI tasks defined through the Java SDK should be serialized with:
The resulting workflow should be valid according to the DSL and should be correctly recognized by the TypeScript SDK.
How to reproduce it:
Use the Quarkus Flow Petstore example:
https://github.com/quarkiverse/quarkus-flow/tree/main/examples/petstore-openapi
Run the
petstore-openapiexample.Open:
Open the workflow diagram by clicking the eye icon.
Observe that the diagram cannot be rendered and the TypeScript SDK reports:
Anything else we need to know?:
This deployment of the DiagramEditor can be used for a final check to test that the generated workflow is accepted by the
typescript-sdk:https://deploy-preview-274--openworkflow-editor.netlify.app/?path=/story/diagram-editor--component
Environment:
1.0.0