pm4py/pm4py-core

dfg created using dfg_visualizer not detecting the starting activity of the process. I am using correlation miner without case id.

Ashish3080 opened this issue · 1 comments

I created a demo process flow diagram using dfg_visualizer but it is not detecting the starting activity and the final activity. As per my flow the correct starting activity should be 'open filezilla' and the correct final activity should be close filezilla. I am using correlation miner as my log file does not has case id associated with the tasks
Screenshot 2023-12-06 185811

Dear @Ashish3080

For the correlation mining, you should manually provide the start/end activities as this is not detected by the method.

You can use the method pm4py.view_dfg(dfg, sa, ea) where:

  • dfg is the directly-follows graph obtained using the correlation mining technique
  • sa is a dictionary of start activities that you manually provide (you can associate the frequency 1 to all the expected start activities)
  • ea is a dictionary of end activities that you manually provide (you can associate the frequency 1 to all the expected start activities)

The correlation mining technique could add arcs between end and start activities. Given the provided start/end activities, be sure that you remove them beforehand.