Skip to content

Extract process models with pm4py #564

Open
@abrichr

Description

@abrichr

Feature request

We would like to convert a recording of one or more workflow iterations into a repeatable and versionable process representation, i.e. a process model.

https://pm4py.fit.fraunhofer.de/static/assets/api/2.7.9/api.html#llm-integration-pm4py-llm

We wish to extract process logs from Screenshot and ActionEvents in order to generate a process log, e.g.

select r.id as case_id, 
	we.title as activity, 
    -- ae."timestamp" as timestamp,	
    datetime(ae."timestamp", 'unixepoch', 'localtime') AS "timestamp",
	COALESCE(ae."timestamp" - LAG(ae."timestamp") OVER (ORDER BY ae."timestamp"), 0) as costs,
	ae.name	as resource
from recording r
inner join action_event ae on r."timestamp" = ae.recording_timestamp 
inner join window_event we on r."timestamp" = we.recording_timestamp and we."timestamp" = ae.window_event_timestamp
where r.id = 1
order by r.id, ae."timestamp";

Replaces #545

Motivation

Extract process logs to generate process model that can serve as replay state machine in model prompt.

image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions