pyl w/ burnettk
This commit is contained in:
parent
240c2372d2
commit
3a961753db
|
@ -564,21 +564,35 @@ class ProcessInstanceProcessor:
|
|||
|
||||
bpmn_subprocess_definition_bpmn_identifiers = {}
|
||||
for bpmn_subprocess_definition in bpmn_process_subprocess_definitions:
|
||||
bpmn_process_definition_dict: dict = bpmn_subprocess_definition.properties_json
|
||||
bpmn_process_definition_dict: dict = (
|
||||
bpmn_subprocess_definition.properties_json
|
||||
)
|
||||
spiff_bpmn_process_dict["subprocess_specs"][
|
||||
bpmn_subprocess_definition.bpmn_identifier
|
||||
] = bpmn_process_definition_dict
|
||||
spiff_bpmn_process_dict["subprocess_specs"][
|
||||
bpmn_subprocess_definition.bpmn_identifier
|
||||
]['task_specs'] = {}
|
||||
bpmn_subprocess_definition_bpmn_identifiers[bpmn_subprocess_definition.id] = bpmn_subprocess_definition.bpmn_identifier
|
||||
]["task_specs"] = {}
|
||||
bpmn_subprocess_definition_bpmn_identifiers[
|
||||
bpmn_subprocess_definition.id
|
||||
] = bpmn_subprocess_definition.bpmn_identifier
|
||||
|
||||
task_definitions = TaskDefinitionModel.query.filter(
|
||||
TaskDefinitionModel.bpmn_process_definition_id.in_(bpmn_subprocess_definition_bpmn_identifiers.keys()) # type: ignore
|
||||
TaskDefinitionModel.bpmn_process_definition_id.in_( # type: ignore
|
||||
bpmn_subprocess_definition_bpmn_identifiers.keys()
|
||||
)
|
||||
).all()
|
||||
for task_definition in task_definitions:
|
||||
bpmn_subprocess_definition_bpmn_identifier = bpmn_subprocess_definition_bpmn_identifiers[task_definition.bpmn_process_definition_id]
|
||||
spiff_bpmn_process_dict["subprocess_specs"][bpmn_subprocess_definition_bpmn_identifier]['task_specs'][task_definition.bpmn_identifier] = task_definition.properties_json
|
||||
bpmn_subprocess_definition_bpmn_identifier = (
|
||||
bpmn_subprocess_definition_bpmn_identifiers[
|
||||
task_definition.bpmn_process_definition_id
|
||||
]
|
||||
)
|
||||
spiff_bpmn_process_dict["subprocess_specs"][
|
||||
bpmn_subprocess_definition_bpmn_identifier
|
||||
]["task_specs"][
|
||||
task_definition.bpmn_identifier
|
||||
] = task_definition.properties_json
|
||||
|
||||
@classmethod
|
||||
def _get_bpmn_process_dict(cls, bpmn_process: BpmnProcessModel) -> dict:
|
||||
|
|
Loading…
Reference in New Issue