debugging function
This commit is contained in:
parent
0db323e603
commit
d935def567
|
@ -21,3 +21,4 @@ node_modules
|
|||
*null-ls_*
|
||||
/local_wheels/*.whl
|
||||
/some_cache_dir
|
||||
/process.json
|
||||
|
|
|
@ -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 []
|
||||
|
|
Loading…
Reference in New Issue