use workflow_spec to match task_spec naming w/ burnettk
This commit is contained in:
parent
0fbe7a3e76
commit
a88002ec87
|
@ -271,7 +271,7 @@ class Task(object, metaclass=DeprecatedMetaTask):
|
||||||
def log_info(self, dct=None):
|
def log_info(self, dct=None):
|
||||||
extra = dct or {}
|
extra = dct or {}
|
||||||
extra.update({
|
extra.update({
|
||||||
'workflow': self.workflow.spec.name,
|
'workflow_spec': self.workflow.spec.name,
|
||||||
'workflow_name': self.workflow.spec.description,
|
'workflow_name': self.workflow.spec.description,
|
||||||
'task_spec': self.task_spec.name,
|
'task_spec': self.task_spec.name,
|
||||||
'task_name': self.task_spec.description,
|
'task_name': self.task_spec.description,
|
||||||
|
|
|
@ -83,7 +83,7 @@ class Workflow(object):
|
||||||
def log_info(self, dct=None):
|
def log_info(self, dct=None):
|
||||||
extra = dct or {}
|
extra = dct or {}
|
||||||
extra.update({
|
extra.update({
|
||||||
'workflow': self.spec.name,
|
'workflow_spec': self.spec.name,
|
||||||
'workflow_name': self.spec.description,
|
'workflow_name': self.spec.description,
|
||||||
'task_spec': '-',
|
'task_spec': '-',
|
||||||
'task_type': None,
|
'task_type': None,
|
||||||
|
|
|
@ -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
|
# 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
|
# that initializes a BpmnWorkflow without a process instance
|
||||||
if record and record.process_instance_id: # type: ignore
|
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
|
bpmn_process_name = record.workflow_name # type: ignore
|
||||||
spiff_task_guid = str(record.task_id) # type: ignore
|
spiff_task_guid = str(record.task_id) # type: ignore
|
||||||
bpmn_task_identifier = str(record.task_spec) # type: ignore
|
bpmn_task_identifier = str(record.task_spec) # type: ignore
|
||||||
|
|
Loading…
Reference in New Issue