use workflow_spec to match task_spec naming w/ burnettk

This commit is contained in:
jasquat 2023-03-01 17:21:24 -05:00
parent 0fbe7a3e76
commit a88002ec87
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -271,7 +271,7 @@ class Task(object, metaclass=DeprecatedMetaTask):
def log_info(self, dct=None):
extra = dct or {}
extra.update({
'workflow': self.workflow.spec.name,
'workflow_spec': self.workflow.spec.name,
'workflow_name': self.workflow.spec.description,
'task_spec': self.task_spec.name,
'task_name': self.task_spec.description,

View File

@ -83,7 +83,7 @@ class Workflow(object):
def log_info(self, dct=None):
extra = dct or {}
extra.update({
'workflow': self.spec.name,
'workflow_spec': self.spec.name,
'workflow_name': self.spec.description,
'task_spec': '-',
'task_type': None,

View File

@ -212,7 +212,7 @@ class DBHandler(logging.Handler):
# if we do not have a process instance id then do not log and assume we are running a script unit test
# that initializes a BpmnWorkflow without a process instance
if record and record.process_instance_id: # type: ignore
bpmn_process_identifier = record.workflow # type: ignore
bpmn_process_identifier = record.workflow_spec # type: ignore
bpmn_process_name = record.workflow_name # type: ignore
spiff_task_guid = str(record.task_id) # type: ignore
bpmn_task_identifier = str(record.task_spec) # type: ignore