debugging function

This commit is contained in:
burnettk 2023-09-11 16:56:27 -04:00
parent 0db323e603
commit d935def567
2 changed files with 6 additions and 0 deletions

View File

@ -21,3 +21,4 @@ node_modules
*null-ls_*
/local_wheels/*.whl
/some_cache_dir
/process.json

View File

@ -1728,6 +1728,11 @@ class ProcessInstanceProcessor:
return task
return None
# for debugging, get the full json representation into a file on disk
def dump_to_disk(self, filename: str = "process.json") -> None:
with open(filename, "w") as f:
f.write(json.dumps(self.serialize(), indent=2))
def remove_spiff_tasks_for_termination(self) -> None:
start_time = time.time()
deleted_tasks = self.bpmn_process_instance.cancel() or []