This commit is contained in:
mike cullerton 2022-11-21 07:21:46 -05:00
parent dc13c1c1ca
commit 1d14ea5da5
2 changed files with 17 additions and 4 deletions

View File

@ -238,9 +238,9 @@ paths:
schema:
$ref: "#/components/schemas/ProcessModelCategory"
/process-groups/{modified_process_group_id}/move:
/process-groups/{modified_process_group_identifier}/move:
parameters:
- name: modified_process_group_id
- name: modified_process_group_identifier
in: path
required: true
description: The unique id of an existing process group.
@ -301,6 +301,13 @@ paths:
$ref: "#/components/schemas/ProcessModel"
/process-models/{modified_process_group_id}:
parameters:
- name: modified_process_group_id
in: path
required: true
description: modified id of an existing process group
schema:
type: string
post:
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_model_create
summary: Creates a new process model with the given parameters.
@ -1045,6 +1052,12 @@ paths:
/process-instances/{modified_process_model_id}/{process_instance_id}/tasks:
parameters:
- name: modified_process_model_id
in: path
required: true
description: The modified id of an existing process model
schema:
type: string
- name: process_instance_id
in: path
required: true

View File

@ -235,11 +235,11 @@ def process_group_show(
def process_group_move(
modified_process_group_id: str, new_location: str
modified_process_group_identifier: str, new_location: str
) -> flask.wrappers.Response:
"""process_group_move."""
original_process_group_id = un_modify_modified_process_model_id(
modified_process_group_id
modified_process_group_identifier
)
new_process_group = ProcessModelService().process_group_move(
original_process_group_id, new_location