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

Activity does not produce a starting/started event before faulting #65

Closed
JBBianchi opened this issue May 5, 2022 · 2 comments
Closed
Assignees
Labels
app: server Concerns the server priority: medium Indicates an average priority issue type: bug Something isn't working weight: 2 An issue with a low development impact
Projects

Comments

@JBBianchi
Copy link
Member

JBBianchi commented May 5, 2022

What happened:
On the WebSocket stream, an activity of type action doesn't seem to start, it's faulted and executed directly:

image

(Fault cause: An error occured while evaluting the specified expression: 'jq.exe' is not recognized as an internal or external command,\r\noperable program or batch file.)

What you expected to happen:
The activity to be started before being faulted/executed

How to reproduce it:
Deploy & run the following workflow:

{
  "id": "order-dog",
  "version": "1.0.0",
  "specVersion": "0.8",
  "name": "Order pet",
  "description": "A workflow used to order a pet on the Swagger pet store",
  "functions": [
    {
      "name": "get-user-by-name",
      "type": "rest",
      "operation": "https://petstore.swagger.io/v2/swagger.json#getUserByName"
    },
    {
      "name": "login-user",
      "type": "rest",
      "operation": "https://petstore.swagger.io/v2/swagger.json#loginUser"
    },
    {
      "name": "get-pets-by-status",
      "type": "rest",
      "operation": "https://petstore.swagger.io/v2/swagger.json#findPetsByStatus"
    },
    {
      "name": "create-order",
      "type": "rest",
      "operation": "https://petstore.swagger.io/v2/swagger.json#findPetsByStatus"
    }
  ],
  "states": [
    {
      "name": "PlaceOrder",
      "type": "operation",
      "actions": [
        {
          "name": "Get User Info",
          "functionRef": {
            "refName": "get-user-by-name",
            "arguments": {
              "username": "${ .username }"
            }
          },
          "actionDataFilter": {
            "toStateData": "${ .user }"
          }
        },
        {
          "name": "Login",
          "functionRef": {
            "refName": "login-user",
            "arguments": {
              "username": "${ .username }",
              "password": "${ .password }"
            }
          }
        },
        {
          "name": "Get Dog To Order",
          "functionRef": {
            "refName": "get-pets-by-status",
            "arguments": {
              "status": "available"
            }
          },
          "actionDataFilter": {
            "toStateData": "${ .dogToOrder }"
          }
        },
        {
          "name": "Place order",
          "functionRef": {
            "refName": "create-order",
            "arguments": {
              "petId": "${ .dogToOrder.id }",
              "quantity": "${ .quantityToOrder }",
              "complete": true
            }
          },
          "actionDataFilter": {
            "toStateData": "${ .order }"
          }
        }
      ],
      "end": true
    }
  ]
}
@JBBianchi JBBianchi added the app: server Concerns the server label May 5, 2022
@cdavernas
Copy link
Member

@JBBianchi I'll investigate ASAP, but this might be due to an error during the activity's initialization, which therefore won't start

@cdavernas cdavernas added the type: bug Something isn't working label Aug 19, 2022
@cdavernas cdavernas added this to To do in Server via automation Aug 19, 2022
@cdavernas cdavernas added this to the 0.2.0 milestone Aug 19, 2022
@cdavernas cdavernas added priority: medium Indicates an average priority issue weight: 2 An issue with a low development impact labels Aug 19, 2022
@cdavernas cdavernas modified the milestones: v0.2.0, v0.3.0 Sep 26, 2022
@cdavernas cdavernas changed the title Action faulting before starting? Activity does not produce a starting/started event before faulting Sep 26, 2022
@cdavernas cdavernas removed this from the v0.3.0 milestone Nov 4, 2022
@cdavernas
Copy link
Member

cdavernas commented May 26, 2024

@JBBianchi I was right, the bug appeared during initialisation.
This has been resolved by upcoming 1.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app: server Concerns the server priority: medium Indicates an average priority issue type: bug Something isn't working weight: 2 An issue with a low development impact
Projects
No open projects
Server
To do
Development

No branches or pull requests

2 participants