process-analytics / bpmn-visualization-pm4py

Example of integration between bpmn-visualization and pm4py
GNU General Public License v3.0
10 stars 5 forks source link

[BUG] add error handling on buttons #5

Open assynour opened 1 year ago

assynour commented 1 year ago

Describe the bug When clicking on "Discover BPMN" or "Compute conformance" buttons, a request is sent to the backend even if there's no file uploaded.

To Reproduce Two possible ways:

  1. click on the buttons without uploading files
  2. click on "Compute conformance" without discovering a BPMN

bug

Expected behavior For "discover BPMN" button: check if the file is uploaded. If not, show a popup message asking the user to upload an event log For "Compute conformance": Two checks must be performed:

In both cases, show a popup message to explain to the the user.