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

Test runner reports all tasks as executed preventing correct UI examination #124

Closed
fcastill opened this issue Sep 26, 2017 · 2 comments
Closed

Comments

@fcastill
Copy link
Collaborator

Following the UI issue in project-flogo/flogo-web#421

When a flow is test-run the state service is reporting all the tasks in the flow instead of only the ones that were executed. Because of that the web UI cannot properly highlight the tasks that were executed.

I'm attaching a file with sequence of calls to the services and the flogo.json generated by the UI.
But the problem seems to be in the status reported to the state service, it returns something like the following json where entry with taskId "4" shouldn't be present as that task is linked to a branch with a condition that evals to false.

  {  
    "steps":[  
      {  
         "flow": {...},
          "id":"1",
          "taskId":"root",
          "tasks":null
      },
      {  
          "flow": { ... },
          "id":"2",
          "taskId":"2",
          "tasks":null
      },
      {  
          "flow":{ ... },
          "id":"3",
          "taskId":"5",
          "tasks":null
      },
      {  
          "flow":{ ... },
          "id":"4",
          "taskId":"4",
          "tasks":null
      },
      {  
          "flow":{ ... },
          "id":"5",
          "taskId":"3",
          "tasks":null
      }
    ]
  }

Calls sequence and flogo.json:

flogo-steps-issue.zip

@mellistibco
Copy link
Collaborator

@fcastill this is no longer an issue, right?

@fcastill
Copy link
Collaborator Author

Not an issue anymore.

Fixed by TIBCOSoftware/flogo-services#14 and project-flogo/flogo-web#421

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

No branches or pull requests

4 participants