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

Extract process models with pm4py #564

Open
abrichr opened this issue Feb 19, 2024 · 1 comment · May be fixed by #852
Open

Extract process models with pm4py #564

abrichr opened this issue Feb 19, 2024 · 1 comment · May be fixed by #852
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@abrichr
Copy link
Member

abrichr commented Feb 19, 2024

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
@abrichr
Copy link
Member Author

abrichr commented Jul 8, 2024

Each process log entry should contain at least the following:

  • window title
  • action name (e.g. "click", "type", etc.)
  • action target (for mouse events this would be the active_segment_description, for keyboard events this would just be the text property)

@abrichr abrichr assigned KrishPatel13 and unassigned AvidEslami Jul 8, 2024
@KrishPatel13 KrishPatel13 linked a pull request Jul 14, 2024 that will close this issue
7 tasks
@KrishPatel13 KrishPatel13 linked a pull request Jul 20, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants