From e8c5ec1af5ee051aaaece19dce9d0e0b1f4723ad Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Fri, 6 May 2022 08:54:57 -0400 Subject: [PATCH] Add is_locked to Task API object --- crc/models/api_models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crc/models/api_models.py b/crc/models/api_models.py index 5e6eb87a..c8397eb9 100644 --- a/crc/models/api_models.py +++ b/crc/models/api_models.py @@ -93,7 +93,7 @@ class Task(object): def __init__(self, id, name, title, type, state, lane, form, documentation, data, multi_instance_type, multi_instance_count, multi_instance_index, - process_name, properties): + process_name, properties, is_locked=False): self.id = id self.name = name self.title = title @@ -108,6 +108,7 @@ class Task(object): self.multi_instance_index = multi_instance_index # And the index of the currently repeating task. self.process_name = process_name self.properties = properties # Arbitrary extension properties from BPMN editor. + self.is_locked = is_locked @classmethod def valid_property_names(cls):