2022-10-12 10:22:22 -04:00
|
|
|
openapi: "3.0.2"
|
|
|
|
info:
|
|
|
|
version: 1.0.0
|
2022-10-20 16:00:12 -04:00
|
|
|
title: spiffworkflow-backend
|
2022-10-12 10:22:22 -04:00
|
|
|
license:
|
|
|
|
name: MIT
|
|
|
|
servers:
|
|
|
|
- url: http://localhost:5000/v1.0
|
2022-10-20 16:00:12 -04:00
|
|
|
# this is handled in flask now
|
|
|
|
security: []
|
2022-10-12 10:22:22 -04:00
|
|
|
|
|
|
|
paths:
|
|
|
|
/login:
|
|
|
|
parameters:
|
|
|
|
- name: redirect_url
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
summary: redirect to open id authentication server
|
|
|
|
operationId: spiffworkflow_backend.routes.user.login
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Redirects to authentication server
|
|
|
|
/login_return:
|
|
|
|
parameters:
|
|
|
|
- name: code
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: state
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: session_state
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.user.login_return
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Test Return Response
|
|
|
|
/logout:
|
|
|
|
parameters:
|
|
|
|
- name: id_token
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: redirect_url
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.user.logout
|
|
|
|
summary: Logout authenticated user
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Logout Authenticated User
|
|
|
|
/logout_return:
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.user.logout_return
|
|
|
|
summary: Logout authenticated user
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Logout Authenticated User
|
|
|
|
|
2023-02-13 11:57:31 -05:00
|
|
|
/login_with_access_token:
|
|
|
|
parameters:
|
|
|
|
- name: access_token
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
|
|
|
operationId: spiffworkflow_backend.routes.user.login_with_access_token
|
|
|
|
summary: Authenticate user for API access with an openid token already posessed.
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: "Returns ok: true if user successfully logged in."
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-10-12 10:22:22 -04:00
|
|
|
/login_api:
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.user.login_api
|
|
|
|
summary: Authenticate user for API access
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Redirects to authentication server
|
|
|
|
/login_api_return:
|
|
|
|
parameters:
|
|
|
|
- name: code
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: state
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: session_state
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.user.login_api_return
|
|
|
|
tags:
|
|
|
|
- Authentication
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Test Return Response
|
|
|
|
|
|
|
|
/status:
|
|
|
|
get:
|
2022-12-29 18:12:41 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.health_controller.status
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Returns 200 if the server is Responding
|
|
|
|
tags:
|
|
|
|
- Liveness
|
|
|
|
- Status
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The server is running.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2023-04-27 11:13:11 -04:00
|
|
|
/debug/test-raise-error:
|
2023-05-22 13:50:32 -04:00
|
|
|
post:
|
2023-04-27 11:13:11 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.debug_controller.test_raise_error
|
2023-04-27 11:05:24 -04:00
|
|
|
summary: Returns an unhandled exception that should notify sentry, if sentry is configured
|
|
|
|
tags:
|
|
|
|
- Status
|
|
|
|
responses:
|
|
|
|
"500":
|
|
|
|
description: The server raises a test error as expected.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2023-05-12 17:07:53 -04:00
|
|
|
/debug/version-info:
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.debug_controller.version_info
|
|
|
|
summary: Returns information about the version of the application
|
|
|
|
tags:
|
|
|
|
- Status
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Returns version info if it exists.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
2023-04-27 11:05:24 -04:00
|
|
|
|
2023-05-03 17:36:43 -04:00
|
|
|
/active-users/updates/{last_visited_identifier}:
|
|
|
|
parameters:
|
|
|
|
- name: last_visited_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The identifier for the last visited page for the user.
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-05-22 13:50:32 -04:00
|
|
|
post:
|
2023-05-03 17:36:43 -04:00
|
|
|
tags:
|
|
|
|
- Active User
|
|
|
|
operationId: spiffworkflow_backend.routes.active_users_controller.active_user_updates
|
|
|
|
summary: An SSE (Server Sent Events) endpoint that returns what users are also currently viewing the same page as you.
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of users
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/User"
|
|
|
|
|
|
|
|
/active-users/unregister/{last_visited_identifier}:
|
|
|
|
parameters:
|
|
|
|
- name: last_visited_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The identifier for the last visited page for the user.
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-05-22 13:50:32 -04:00
|
|
|
post:
|
2023-05-03 17:36:43 -04:00
|
|
|
tags:
|
|
|
|
- Active User
|
|
|
|
operationId: spiffworkflow_backend.routes.active_users_controller.active_user_unregister
|
|
|
|
summary: Unregisters a user from a page. To be used when the /active-users/updates endpoint is closed.
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The current user has unregistered.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-10-12 10:22:22 -04:00
|
|
|
/process-groups:
|
|
|
|
parameters:
|
2022-11-11 08:05:38 -05:00
|
|
|
- name: process_group_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Optional parameter to filter by a single group
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-10-12 10:22:22 -04:00
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The number of groups to show per page. Defaults to page 10.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_groups_controller.process_group_list
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: get list
|
|
|
|
tags:
|
|
|
|
- Process Groups
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: An array of process groups
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-10-12 10:22:22 -04:00
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_groups_controller.process_group_create
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Add process group
|
|
|
|
tags:
|
|
|
|
- Process Groups
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-10-12 10:22:22 -04:00
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: Processs Group
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-10-12 10:22:22 -04:00
|
|
|
|
2022-11-09 15:45:12 -05:00
|
|
|
/process-groups/{modified_process_group_id}:
|
2022-10-12 10:22:22 -04:00
|
|
|
parameters:
|
2022-11-09 15:45:12 -05:00
|
|
|
- name: modified_process_group_id
|
2022-10-12 10:22:22 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process group.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
# process_group_show
|
|
|
|
get:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_groups_controller.process_group_show
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Returns a single process group
|
|
|
|
tags:
|
|
|
|
- Process Groups
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Processs Group.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-10-12 10:22:22 -04:00
|
|
|
delete:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_groups_controller.process_group_delete
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Deletes a single process group
|
|
|
|
tags:
|
|
|
|
- Process Groups
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The process group was deleted.
|
|
|
|
put:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_groups_controller.process_group_update
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Updates a single process group
|
|
|
|
tags:
|
|
|
|
- Process Groups
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-10-12 10:22:22 -04:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Process group updated successfully
|
|
|
|
content:
|
2022-11-19 13:24:40 -05:00
|
|
|
application/json:
|
|
|
|
schema:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-11-19 13:24:40 -05:00
|
|
|
|
2022-11-21 07:21:46 -05:00
|
|
|
/process-groups/{modified_process_group_identifier}/move:
|
2022-11-19 13:24:40 -05:00
|
|
|
parameters:
|
2022-11-21 07:21:46 -05:00
|
|
|
- name: modified_process_group_identifier
|
2022-11-19 13:24:40 -05:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process group.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: new_location
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
description: the new location, as an existing process group id
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
put:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_groups_controller.process_group_move
|
2022-11-19 13:24:40 -05:00
|
|
|
summary: returns the new group
|
|
|
|
tags:
|
|
|
|
- Process Groups
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Process Group
|
|
|
|
content:
|
2022-10-12 10:22:22 -04:00
|
|
|
application/json:
|
|
|
|
schema:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-10-12 10:22:22 -04:00
|
|
|
|
|
|
|
/process-models:
|
|
|
|
parameters:
|
|
|
|
- name: process_group_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The group containing the models we want to return
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-11-22 09:05:33 -05:00
|
|
|
- name: recursive
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Get all sub process models recursively if true
|
|
|
|
schema:
|
2022-11-22 16:21:16 -05:00
|
|
|
type: boolean
|
|
|
|
- name: filter_runnable_by_user
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Get only the process models that the user can run
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2022-12-09 11:23:18 -05:00
|
|
|
- name: include_parent_groups
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Get the display names for the parent groups as well
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2022-10-12 10:22:22 -04:00
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The number of models to show per page. Defaults to page 10.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_list
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Return a list of process models for a given process group
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Successfully return the requested models
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
2022-11-15 17:35:16 -05:00
|
|
|
|
|
|
|
/process-models/{modified_process_group_id}:
|
2022-11-21 07:21:46 -05:00
|
|
|
parameters:
|
|
|
|
- name: modified_process_group_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: modified id of an existing process group
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-10-12 10:22:22 -04:00
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_create
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Creates a new process model with the given parameters.
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: Process model created successfully.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
|
2023-05-22 14:58:51 -04:00
|
|
|
/process-model-natural-language/{modified_process_group_id}:
|
2022-12-30 16:30:52 -05:00
|
|
|
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_models_controller.process_model_create_with_natural_language
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Creates a new process model with the given parameters.
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: Process model created successfully.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
|
2023-05-22 17:36:07 -04:00
|
|
|
/process-model-tests/{modified_process_model_identifier}:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The process_model_id, modified to replace slashes (/)
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: test_case_file
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The name of the test case file to run
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: test_case_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The name of the test case file to run
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_test_run
|
|
|
|
summary: Run a test for a process model
|
|
|
|
tags:
|
|
|
|
- Process Model Tests
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
multipart/form-data:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: Metadata about the uploaded file, but not the file content.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/File"
|
|
|
|
|
2022-12-05 16:35:20 -05:00
|
|
|
/process-models/{modified_process_model_identifier}/files:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
2022-12-05 16:35:20 -05:00
|
|
|
- name: modified_process_model_identifier
|
2022-11-01 16:48:04 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The process_model_id, modified to replace slashes (/)
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_file_create
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Add a new workflow spec file
|
|
|
|
tags:
|
|
|
|
- Process Model Files
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
multipart/form-data:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: Metadata about the uploaded file, but not the file content.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/File"
|
|
|
|
|
|
|
|
/process-models/{modified_process_model_identifier}:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: the modified process model id
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-01-10 14:28:14 -05:00
|
|
|
- name: include_file_references
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: include all file references in the return
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2022-11-01 16:48:04 -04:00
|
|
|
get:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_show
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Returns a single process model
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Workflow spec.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
put:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_update
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Modifies an existing process model with the given parameters.
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Process model updated successfully.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
delete:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_delete
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Removes an existing process model
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The process model has been removed.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
2022-11-15 17:35:16 -05:00
|
|
|
|
2022-11-19 14:46:50 -05:00
|
|
|
/process-models/{modified_process_model_identifier}/move:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: the modified process model id
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: new_location
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
description: the new location for the process model, as a process group id
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
put:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_move
|
2022-11-19 14:46:50 -05:00
|
|
|
summary: returns the new model
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Process Model
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
|
2023-05-19 12:26:16 -04:00
|
|
|
/process-model-publish/{modified_process_model_identifier}:
|
2022-12-06 15:31:03 -05:00
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: the modified process model id
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: branch_to_update
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: the name of the branch we want to merge into
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-12-08 12:28:23 -05:00
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_publish
|
2022-12-06 15:31:03 -05:00
|
|
|
summary: Merge changes from this model to another branch.
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The process model was published.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2022-12-08 09:26:10 -05:00
|
|
|
type: string
|
2022-11-19 14:46:50 -05:00
|
|
|
|
2023-06-23 02:15:23 -04:00
|
|
|
/processes/callers/{bpmn_process_identifiers}:
|
2023-04-19 18:07:15 -04:00
|
|
|
parameters:
|
2023-06-23 02:15:23 -04:00
|
|
|
- name: bpmn_process_identifiers
|
|
|
|
in: path
|
2023-04-19 18:07:15 -04:00
|
|
|
required: true
|
2023-06-23 02:15:23 -04:00
|
|
|
description: the bpmn process identifiers/ids (not the names with spaces and not the process model identifiers)
|
2023-04-19 18:07:15 -04:00
|
|
|
schema:
|
2023-06-23 02:15:23 -04:00
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
minItems: 1
|
2023-04-19 18:07:15 -04:00
|
|
|
get:
|
2023-04-27 07:20:52 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_caller_list
|
2023-04-19 18:07:15 -04:00
|
|
|
summary:
|
|
|
|
Return a list of information about all processes that call the provided process id
|
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Successfully return the requested calling processes
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Process"
|
|
|
|
|
|
|
|
|
2022-11-14 21:54:13 -05:00
|
|
|
/processes:
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_list
|
2022-11-18 15:50:20 -05:00
|
|
|
summary:
|
|
|
|
Return a list of all processes (not just primary process of a process model)
|
|
|
|
useful for finding processes for call activites.
|
2022-11-14 21:54:13 -05:00
|
|
|
tags:
|
|
|
|
- Process Models
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Successfully return the requested processes
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Process"
|
2022-11-01 16:48:04 -04:00
|
|
|
|
2022-12-08 23:55:01 -05:00
|
|
|
/github-webhook-receive:
|
|
|
|
post:
|
|
|
|
operationId: spiffworkflow_backend.routes.process_api_blueprint.github_webhook_receive
|
|
|
|
summary: receives push webhooks from github so we can keep our process model repo up to date
|
2022-12-09 15:01:55 -05:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-12-08 23:55:01 -05:00
|
|
|
tags:
|
|
|
|
- git
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Success
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-12-19 16:16:27 -05:00
|
|
|
/process-instances/for-me:
|
2022-10-12 10:22:22 -04:00
|
|
|
parameters:
|
|
|
|
- name: process_model_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The unique id of an existing process model.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
2023-04-25 17:21:38 -04:00
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_list_for_me
|
2022-12-19 16:16:27 -05:00
|
|
|
summary: Returns a list of process instances that are associated with me.
|
2022-10-12 10:22:22 -04:00
|
|
|
tags:
|
|
|
|
- Process Instances
|
2023-04-28 10:07:21 -04:00
|
|
|
requestBody:
|
|
|
|
description: Report dictionary to use.
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessInstanceReport"
|
2022-10-12 10:22:22 -04:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Workflow.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
|
|
|
/process-instances:
|
|
|
|
parameters:
|
|
|
|
- name: process_model_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The unique id of an existing process model.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
2023-04-25 17:21:38 -04:00
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_list
|
2022-12-19 16:16:27 -05:00
|
|
|
summary: Returns a list of process instances.
|
2022-10-12 10:22:22 -04:00
|
|
|
tags:
|
|
|
|
- Process Instances
|
2023-04-28 10:07:21 -04:00
|
|
|
requestBody:
|
|
|
|
description: Report dictionary to use.
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessInstanceReport"
|
2022-10-12 10:22:22 -04:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Workflow.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-15 09:31:19 -05:00
|
|
|
/process-models/{modified_process_model_identifier}/script-unit-tests:
|
2022-10-12 10:22:22 -04:00
|
|
|
parameters:
|
2022-12-15 09:31:19 -05:00
|
|
|
- name: modified_process_model_identifier
|
2022-10-12 10:22:22 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process model.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
2022-12-29 17:13:44 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.script_unit_tests_controller.script_unit_test_create
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Create script unit test based on given criteria
|
|
|
|
tags:
|
|
|
|
- Script Unit Test
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Script Unit Test Result
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-15 09:31:19 -05:00
|
|
|
/process-models/{modified_process_model_identifier}/script-unit-tests/run:
|
2022-10-12 10:22:22 -04:00
|
|
|
parameters:
|
2022-12-15 09:31:19 -05:00
|
|
|
- name: modified_process_model_identifier
|
2022-10-12 10:22:22 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process model.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
2022-12-29 17:13:44 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.script_unit_tests_controller.script_unit_test_run
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Run a given script unit test.
|
|
|
|
tags:
|
|
|
|
- Script Unit Test
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Script Unit Test Result
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-05 16:35:20 -05:00
|
|
|
/process-instances/{modified_process_model_identifier}:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
2022-12-05 16:35:20 -05:00
|
|
|
- name: modified_process_model_identifier
|
2022-11-01 16:48:04 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process model.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_create
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Creates an process instance from a process model and returns the instance
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: Workflow generated successfully
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-19 17:11:39 -05:00
|
|
|
/process-instances/for-me/{modified_process_model_identifier}/{process_instance_id}/task-info:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: process_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The identifier of the process to use for the diagram. Useful for displaying the diagram for a call activity.
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-03-08 13:06:25 -05:00
|
|
|
- name: most_recent_tasks_only
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: If true, this wil return only the most recent tasks.
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2023-03-20 16:51:29 -04:00
|
|
|
- name: bpmn_process_guid
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The guid of the bpmn process to get the tasks for.
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-03-20 17:29:53 -04:00
|
|
|
- name: to_task_guid
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Get the tasks only up to the given guid.
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-12-19 17:11:39 -05:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_task_list_without_task_data_for_me
|
2022-12-19 17:11:39 -05:00
|
|
|
summary: returns the list of all user tasks associated with process instance without the task data
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of tasks
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
|
2022-12-16 11:39:07 -05:00
|
|
|
/process-instances/{modified_process_model_identifier}/{process_instance_id}/task-info:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: process_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The identifier of the process to use for the diagram. Useful for displaying the diagram for a call activity.
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-03-08 13:06:25 -05:00
|
|
|
- name: most_recent_tasks_only
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: If true, this wil return only the most recent tasks.
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2023-03-20 16:51:29 -04:00
|
|
|
- name: bpmn_process_guid
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The guid of the bpmn process to get the tasks for.
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-03-20 17:29:53 -04:00
|
|
|
- name: to_task_guid
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Get the tasks only up to the given guid.
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-12-16 11:39:07 -05:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_task_list_without_task_data
|
2022-12-16 11:39:07 -05:00
|
|
|
summary: returns the list of all user tasks associated with process instance without the task data
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of tasks
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
|
2022-12-19 16:16:27 -05:00
|
|
|
/process-instances/for-me/{modified_process_model_identifier}/{process_instance_id}:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: process_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The identifier of the process to use for the diagram. Useful for displaying the diagram for a call activity.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_show_for_me
|
2022-12-19 16:16:27 -05:00
|
|
|
summary: Show information about a process instance that is associated with me
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One Process Instance
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2023-01-05 14:59:59 -05:00
|
|
|
/process-instances/find-by-id/{process_instance_id}:
|
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_find_by_id
|
|
|
|
summary: Find a process instance based on its id only
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One Process Instance
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-05 16:06:08 -05:00
|
|
|
/process-instances/{modified_process_model_identifier}/{process_instance_id}:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
2022-12-12 15:08:09 -05:00
|
|
|
- name: process_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The identifier of the process to use for the diagram. Useful for displaying the diagram for a call activity.
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-11-01 16:48:04 -04:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_show
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Show information about a process instance
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One Process Instance
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
2022-12-05 16:06:08 -05:00
|
|
|
delete:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_delete
|
2022-12-05 16:06:08 -05:00
|
|
|
summary: Deletes a single process instance
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The process instance was deleted.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
2022-10-12 10:22:22 -04:00
|
|
|
|
2022-11-22 13:01:08 -05:00
|
|
|
/process-instances/{modified_process_model_identifier}/{process_instance_id}/run:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: do_engine_steps
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Defaults to true, can be set to false if you are just looking at the workflow not completeing it.
|
|
|
|
schema:
|
|
|
|
type: boolean
|
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_run
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Run a process instance
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Returns details about the workflows state and current task
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-19 12:55:25 -05:00
|
|
|
/process-instance-terminate/{modified_process_model_identifier}/{process_instance_id}:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_terminate
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Terminate a process instance
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Empty ok true response on successful termination.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-12-19 12:55:25 -05:00
|
|
|
/process-instance-suspend/{modified_process_model_identifier}/{process_instance_id}:
|
2022-10-12 10:22:22 -04:00
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_suspend
|
2022-10-20 16:44:08 -04:00
|
|
|
summary: Suspend a process instance
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Empty ok true response on successful suspension.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-12-19 12:55:25 -05:00
|
|
|
/process-instance-resume/{modified_process_model_identifier}/{process_instance_id}:
|
2022-10-20 16:44:08 -04:00
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_resume
|
2022-10-20 16:44:08 -04:00
|
|
|
summary: Resume a process instance
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Empty ok true response on successful resume.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2023-03-22 09:44:13 -04:00
|
|
|
/process-instance-reset/{modified_process_model_identifier}/{process_instance_id}/{to_task_guid}:
|
2022-12-29 15:26:29 -05:00
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The modified process model id
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
2023-03-22 09:44:13 -04:00
|
|
|
- name: to_task_guid
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: Get the tasks only up to the given guid.
|
2022-12-29 15:26:29 -05:00
|
|
|
schema:
|
2023-03-22 09:44:13 -04:00
|
|
|
type: string
|
2022-12-29 15:26:29 -05:00
|
|
|
post:
|
2022-12-30 09:13:03 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_reset
|
2022-12-29 15:26:29 -05:00
|
|
|
summary: Reset a process instance to an earlier step
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-05-19 10:50:55 -04:00
|
|
|
description: Empty ok true response on successful reset.
|
2022-12-29 15:26:29 -05:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-11-08 09:26:42 -05:00
|
|
|
/process-instances/reports:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_report_list
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Returns all process instance reports for process model
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
2023-04-28 10:07:21 -04:00
|
|
|
- Process Instances Reports
|
2022-11-01 16:48:04 -04:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-04-28 10:07:21 -04:00
|
|
|
description: Process Instance Report
|
2022-11-01 16:48:04 -04:00
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
2023-04-28 10:07:21 -04:00
|
|
|
$ref: "#/components/schemas/ProcessInstanceReport"
|
2022-10-12 10:22:22 -04:00
|
|
|
post:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_report_create
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Returns all process instance reports for process model
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: The process instance report was created.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-11-29 17:32:29 -05:00
|
|
|
/process-instances/reports/columns:
|
2023-03-24 17:54:37 -04:00
|
|
|
parameters:
|
|
|
|
- name: process_model_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The process model identifier to filter by
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-11-29 17:32:29 -05:00
|
|
|
get:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_report_column_list
|
2023-03-24 17:54:37 -04:00
|
|
|
summary: Returns all available columns for a process instance report, including custom metadata
|
2022-11-29 17:32:29 -05:00
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Workflow.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2023-04-27 15:19:02 -04:00
|
|
|
/process-instances/report-metadata:
|
2023-04-27 07:28:06 -04:00
|
|
|
parameters:
|
|
|
|
- name: report_hash
|
2023-04-27 15:19:02 -04:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The hash of a query that has been searched before.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: report_id
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The unique id of an existing report.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: report_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Specifies the identifier of a report to use, if any
|
2023-04-27 07:28:06 -04:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
2023-04-27 15:19:02 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_report_show
|
|
|
|
summary: Returns the metadata associated with a given report key. This favors report_hash over report_id and report_identifier.
|
2023-04-27 07:28:06 -04:00
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Workflow.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-02 10:32:40 -05:00
|
|
|
/process-instances/reports/{report_id}:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
2022-12-02 10:32:40 -05:00
|
|
|
- name: report_id
|
2022-11-01 16:48:04 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing report
|
|
|
|
schema:
|
2022-12-02 10:32:40 -05:00
|
|
|
type: integer
|
2022-11-01 16:48:04 -04:00
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
2022-10-12 10:22:22 -04:00
|
|
|
put:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_report_update
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Updates a process instance report
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The process instance report was updated.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
delete:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.process_instance_report_delete
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Delete a process instance report
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The process instance report was delete.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-12-05 16:35:20 -05:00
|
|
|
/process-models/{modified_process_model_identifier}/files/{file_name}:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
2022-12-05 16:35:20 -05:00
|
|
|
- name: modified_process_model_identifier
|
2022-11-01 16:48:04 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The modified process model id
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: file_name
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The id of the spec file
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_file_show
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Returns metadata about the file
|
|
|
|
tags:
|
|
|
|
- Process Model Files
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Returns the file information requested.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/File"
|
|
|
|
put:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_file_update
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: save the contents to the given file
|
2023-05-02 16:31:29 -04:00
|
|
|
parameters:
|
|
|
|
- name: file_contents_hash
|
|
|
|
in: query
|
2023-05-02 17:09:29 -04:00
|
|
|
required: false
|
2023-05-02 16:31:29 -04:00
|
|
|
description: The hash of the file contents that originally came with the file.
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-11-01 16:48:04 -04:00
|
|
|
tags:
|
|
|
|
- Process Model Files
|
|
|
|
requestBody:
|
|
|
|
description: Log Pagination Request
|
|
|
|
required: false
|
|
|
|
content:
|
|
|
|
multipart/form-data:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
format: binary
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Metadata about the uploaded file, but not the file content.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
delete:
|
2022-12-29 15:24:39 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.process_models_controller.process_model_file_delete
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: Removes an existing process model file
|
|
|
|
tags:
|
|
|
|
- Process Model Files
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The process model has been removed.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-10-12 10:22:22 -04:00
|
|
|
/tasks:
|
|
|
|
parameters:
|
2023-01-13 14:31:12 -05:00
|
|
|
- name: process_instance_id
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The process instance id to search by.
|
|
|
|
schema:
|
|
|
|
type: integer
|
2022-10-12 10:22:22 -04:00
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Tasks
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_list_my_tasks
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: returns the list of ready or waiting tasks for a user
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of tasks
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
|
2022-11-10 17:30:27 -05:00
|
|
|
/tasks/for-my-open-processes:
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_list_for_my_open_processes
|
2022-11-10 17:30:27 -05:00
|
|
|
summary: returns the list of tasks for given user's open process instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of tasks
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
|
2022-11-14 12:06:39 -05:00
|
|
|
/tasks/for-me:
|
2022-11-11 16:31:48 -05:00
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_list_for_me
|
2022-11-14 12:06:39 -05:00
|
|
|
summary: returns the list of tasks for given user's open process instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of tasks
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
|
|
|
|
/tasks/for-my-groups:
|
|
|
|
parameters:
|
2022-12-20 16:02:27 -05:00
|
|
|
- name: user_group_identifier
|
2022-12-12 12:21:37 -05:00
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The identifier of the group to get the tasks for
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-11-14 12:06:39 -05:00
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_list_for_my_groups
|
2022-11-11 16:31:48 -05:00
|
|
|
summary: returns the list of tasks for given user's open process instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of tasks
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
|
2023-01-04 16:11:52 -05:00
|
|
|
/users/search:
|
|
|
|
parameters:
|
|
|
|
- name: username_prefix
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
description: The prefix of the user
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Users
|
|
|
|
operationId: spiffworkflow_backend.routes.users_controller.user_search
|
|
|
|
summary: Returns a list of users that the search param
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of users
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/User"
|
|
|
|
|
2023-03-20 10:53:23 -04:00
|
|
|
/users/exists/by-username:
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- Users
|
|
|
|
operationId: spiffworkflow_backend.routes.users_controller.user_exists_by_username
|
|
|
|
summary: Returns a true if user exists by username.
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/User"
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: true if user exists
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-12-12 13:19:27 -05:00
|
|
|
/user-groups/for-current-user:
|
2022-12-12 12:21:37 -05:00
|
|
|
get:
|
|
|
|
tags:
|
2023-01-04 16:11:52 -05:00
|
|
|
- User Groups
|
|
|
|
operationId: spiffworkflow_backend.routes.users_controller.user_group_list_for_current_user
|
2022-12-12 12:21:37 -05:00
|
|
|
summary: Group identifiers for current logged in user
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of user groups
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
|
2023-03-20 17:05:15 -04:00
|
|
|
/task-data/{modified_process_model_identifier}/{process_instance_id}/{task_guid}:
|
2022-10-12 10:22:22 -04:00
|
|
|
parameters:
|
2022-12-05 16:35:20 -05:00
|
|
|
- name: modified_process_model_identifier
|
2022-11-21 07:21:46 -05:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The modified id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-10-12 10:22:22 -04:00
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
2023-03-20 17:05:15 -04:00
|
|
|
- name: task_guid
|
2023-02-23 15:59:19 -05:00
|
|
|
in: path
|
|
|
|
required: true
|
2023-03-23 14:28:20 -04:00
|
|
|
description: The unique id of the task.
|
2022-11-02 14:34:59 -04:00
|
|
|
schema:
|
2023-03-20 17:05:15 -04:00
|
|
|
type: string
|
2022-10-12 10:22:22 -04:00
|
|
|
get:
|
2023-02-23 15:59:19 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_data_show
|
2023-03-23 16:33:30 -04:00
|
|
|
summary: Get task data for a single task.
|
2022-10-12 10:22:22 -04:00
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of tasks
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-02-23 15:59:19 -05:00
|
|
|
$ref: "#/components/schemas/Task"
|
2022-12-05 16:35:20 -05:00
|
|
|
put:
|
2023-03-23 14:28:20 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_data_update
|
2022-12-05 16:35:20 -05:00
|
|
|
summary: Update the task data for requested instance and task
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Task Updated Successfully
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2023-07-12 10:14:01 -04:00
|
|
|
/task-assign/{modified_process_model_identifier}/{process_instance_id}/{task_guid}:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The modified id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: task_guid
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of the task.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_assign
|
|
|
|
summary: Assign a given task to a list of additional users
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/User"
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: "ok: true"
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2022-12-27 11:45:42 -05:00
|
|
|
/process-data/{modified_process_model_identifier}/{process_instance_id}/{process_data_identifier}:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The modified id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: process_data_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The identifier of the process data.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_data_show
|
|
|
|
summary: Fetch the process data value.
|
|
|
|
tags:
|
|
|
|
- Data Objects
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Fetch succeeded.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2023-02-02 14:44:37 -05:00
|
|
|
/process-data-file-download/{modified_process_model_identifier}/{process_instance_id}/{process_data_identifier}:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The modified id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: process_data_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The identifier of the process data.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.process_api_blueprint.process_data_file_download
|
|
|
|
summary: Download the file referneced in the process data value.
|
|
|
|
tags:
|
|
|
|
- Data Objects
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Fetch succeeded.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-18 10:44:42 -05:00
|
|
|
/send-event/{modified_process_model_identifier}/{process_instance_id}:
|
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The modified id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of the process instance
|
|
|
|
schema:
|
2023-05-04 11:20:38 -04:00
|
|
|
type: integer
|
2022-12-18 10:44:42 -05:00
|
|
|
post:
|
2023-05-04 11:20:38 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.send_bpmn_event
|
2022-12-18 10:44:42 -05:00
|
|
|
summary: Send a BPMN event to the process
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Event Sent Successfully
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2023-03-23 14:28:20 -04:00
|
|
|
/task-complete/{modified_process_model_identifier}/{process_instance_id}/{task_guid}:
|
2022-12-18 10:44:42 -05:00
|
|
|
parameters:
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The modified id of an existing process model
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of the process instance
|
|
|
|
schema:
|
2023-07-12 10:14:01 -04:00
|
|
|
type: integer
|
2023-03-23 14:28:20 -04:00
|
|
|
- name: task_guid
|
2022-12-18 10:44:42 -05:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of the task.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
2023-03-23 14:28:20 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.manual_complete_task
|
2022-12-18 10:44:42 -05:00
|
|
|
summary: Mark a task complete without executing it
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Event Sent Successfully
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2022-12-05 16:35:20 -05:00
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
|
|
|
/service-tasks:
|
2022-10-12 10:22:22 -04:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Service Tasks
|
2022-12-29 18:23:45 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.service_tasks_controller.service_task_list
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Gets all available service task connectors
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: All service task connectors
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ServiceTask"
|
|
|
|
|
2022-10-18 16:41:10 -04:00
|
|
|
/authentications:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Authentications
|
2022-12-29 18:23:45 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.service_tasks_controller.authentication_list
|
2022-10-18 16:41:10 -04:00
|
|
|
summary: Gets all available authentications from connector proxy
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: All authentications
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ServiceTask"
|
|
|
|
|
2022-10-19 15:17:17 -04:00
|
|
|
/authentication_callback/{service}/{auth_method}:
|
|
|
|
parameters:
|
|
|
|
- name: service
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The name of the service
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: auth_method
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The method
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: response
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
description: The response
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: token
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
description: The response
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Authentications
|
2022-12-29 18:23:45 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.service_tasks_controller.authentication_callback
|
2022-10-19 15:17:17 -04:00
|
|
|
summary: Callback to backend
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: All authentications
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ServiceTask"
|
2023-05-03 17:36:43 -04:00
|
|
|
|
2023-04-14 15:44:59 -04:00
|
|
|
/tasks/{process_instance_id}:
|
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
Feature/interstitial summary part 3 (#367)
* throw an error if backend gives a 500 from interstitial page w/ burnettk
* turn unexpected errors for the interstitial page into event stream responses to avoid error misdirection
* pyl
* raise the api_error from the original and make the render_data method private
* Feature/interstitial summary (#337)
* * Process instance logs and messages are now components rather than pages, and are included within tabs on the process instance page, along with the diagram.
* Removed the Zoom and Move modules when showing the readonly
Diagram. Assured this readonly view is resized to fit the space when possible.
* Checkbox Widget no longer displays a duplicate label.
* CSS Tweaks
* All pages are limited to a max display width of 1440, with auto margins to center the main content on the page.
* "Show" pages, like ProcessInstanceShow, TaskShow have the primary content limited to 1000, also with auto-margins.
* Paragraphs, headings, blockquotes, list items are limited to a width of 640.
* Reduced margin bottom on all breadcrumbs.
* Slightly reduced the width and margin of tiles
* ordered lists and unordered lists show numbers and bullets now.
* End user Instructions component can, optionally, auto-collapse, so that only a portion is displayed, along with a toggle. This is how it is set up for the ProcessInstanceShow page.
* Greatly reduced the lag in the interstitial page when doing a re-direct.
* run_pyl
* kill console
* wait for permissionsLoaded too since we are using ability.can
* Previous change removed the top level Messages page - this re-adds it.
* I am always, ALWAYS shocked at how I can not wrap my head around when and where to use "useEffect".
This should cause the show/hide Instructions toggle to only show when useful.
* Minor cleanup on the process instance properties display.
* linting
---------
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
* Fix a linting error.
* minor permissions related fixes for the new ui.
* Revert "Revert "Feature/better subworkflow management (#331)""
This reverts commit 48dcde8faf00241201c515b54444fe9fb373c7f4.
* do not execute tasks from the process instance show page w/ burnettk
* pyl w/ burnettk
* Very minor UI tweak to resolve a number of issues mentioned in SPIFF-316 Notion Ticket:
* Markdown links now open in a new window
* Tables on the home pages are now contained within Grids to better align them with the other content that is in a grid.
* Right aligned the "process instance list link" button to it is flush right with the table underneath
* Gave a little more breathing room the content on the info/metadata in the process instance view .
* updated docker image build action to contain the appropriate version info w/ burnettk
* properly resize to the available columns depending on s/m/l
---------
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
Co-authored-by: Dan Funk <daniel.h.funk@gmail.com>
Co-authored-by: burnettk <burnettk@users.noreply.github.com>
2023-07-03 01:24:54 -04:00
|
|
|
- name: execute_tasks
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: Execute ready tasks on the process instance.
|
|
|
|
schema:
|
|
|
|
type: boolean
|
2023-04-14 15:44:59 -04:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Tasks
|
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.interstitial
|
|
|
|
summary: An SSE (Server Sent Events) endpoint that returns what tasks are currently active (running, waiting, or the final END event)
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One task
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
|
2023-03-23 14:28:20 -04:00
|
|
|
/tasks/{process_instance_id}/{task_guid}:
|
2022-10-12 10:22:22 -04:00
|
|
|
parameters:
|
2023-03-23 14:28:20 -04:00
|
|
|
- name: task_guid
|
2022-10-12 10:22:22 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process group.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Tasks
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_show
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Gets one task that a user wants to complete
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One task
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- Tasks
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_submit
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Update the form data for a tasks
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2023-06-01 15:10:01 -04:00
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
2022-10-12 10:22:22 -04:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One task
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
"202":
|
|
|
|
description: "ok: true"
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2023-06-26 08:56:56 -04:00
|
|
|
/tasks/{process_instance_id}/{task_guid}/save-draft:
|
|
|
|
parameters:
|
|
|
|
- name: task_guid
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process group.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of an existing process instance.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- Tasks
|
|
|
|
operationId: spiffworkflow_backend.routes.tasks_controller.task_save_draft
|
|
|
|
summary: Update the draft form for this task
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessGroup"
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One task
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
"202":
|
|
|
|
description: "ok: true"
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/OkTrue"
|
|
|
|
|
2023-06-29 00:06:47 -04:00
|
|
|
# NOTE: this should probably be /process-instances instead
|
2023-05-04 11:20:38 -04:00
|
|
|
/tasks/{process_instance_id}/send-user-signal-event:
|
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The unique id of the process instance
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
post:
|
|
|
|
operationId: spiffworkflow_backend.routes.process_instances_controller.send_user_signal_event
|
|
|
|
summary: Send a BPMN event to the process
|
|
|
|
tags:
|
|
|
|
- Process Instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Event Sent Successfully
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-10-12 10:22:22 -04:00
|
|
|
/messages:
|
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: the id of the process instance
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The number of models to show per page. Defaults to page 10.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Messages
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.messages_controller.message_instance_list
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Get a list of message instances
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One task
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2023-02-23 13:53:03 -05:00
|
|
|
/messages/{message_name}:
|
2022-10-12 10:22:22 -04:00
|
|
|
parameters:
|
2023-02-23 13:53:03 -05:00
|
|
|
- name: message_name
|
2022-10-12 10:22:22 -04:00
|
|
|
in: path
|
|
|
|
required: true
|
2023-02-23 13:53:03 -05:00
|
|
|
description: The unique name of the message.
|
2022-10-12 10:22:22 -04:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- Messages
|
2023-01-06 16:21:29 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.messages_controller.message_send
|
2023-02-23 13:53:03 -05:00
|
|
|
summary: Instantiate and run a given process model with a message start event matching given name
|
2022-10-12 10:22:22 -04:00
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: One task
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
|
2022-12-05 16:06:08 -05:00
|
|
|
/logs/{modified_process_model_identifier}/{process_instance_id}:
|
2022-11-01 16:48:04 -04:00
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: the id of the process instance
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The number of items to show per page. Defaults to page 10.
|
|
|
|
schema:
|
|
|
|
type: integer
|
2023-04-25 15:30:26 -04:00
|
|
|
- name: events
|
2022-12-06 12:38:25 -05:00
|
|
|
in: query
|
|
|
|
required: false
|
2023-04-25 15:30:26 -04:00
|
|
|
description: Show the events view, which includes all log entries
|
2022-12-06 12:38:25 -05:00
|
|
|
schema:
|
|
|
|
type: boolean
|
2023-04-18 12:36:45 -04:00
|
|
|
- name: bpmn_name
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The bpmn name of the task to search for.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: bpmn_identifier
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The bpmn identifier of the task to search for.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: task_type
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The task type of the task to search for.
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: event_type
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The type of the event to search for.
|
|
|
|
schema:
|
|
|
|
type: string
|
2022-11-01 16:48:04 -04:00
|
|
|
get:
|
|
|
|
tags:
|
2023-04-17 17:26:05 -04:00
|
|
|
- Process Instance Events
|
|
|
|
operationId: spiffworkflow_backend.routes.process_instance_events_controller.log_list
|
2022-11-01 16:48:04 -04:00
|
|
|
summary: returns a list of logs associated with the process instance
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of logs
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessInstanceLog"
|
|
|
|
|
2023-04-25 15:30:26 -04:00
|
|
|
/logs/typeahead-filter-values/{modified_process_model_identifier}/{process_instance_id}:
|
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: the id of the process instance
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The process_model_id, modified to replace slashes (/)
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: task_type
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The task type of the typehead filter values to get.
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-04-17 17:26:05 -04:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instance Events
|
2023-04-25 15:30:26 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instance_events_controller.typeahead_filter_values
|
2023-04-17 17:26:05 -04:00
|
|
|
summary: returns a list of task types and event typs. useful for building log queries.
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of types
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessInstanceLog"
|
|
|
|
|
2023-04-19 13:56:00 -04:00
|
|
|
/event-error-details/{modified_process_model_identifier}/{process_instance_id}/{process_instance_event_id}:
|
|
|
|
parameters:
|
|
|
|
- name: process_instance_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: the id of the process instance
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: modified_process_model_identifier
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The process_model_id, modified to replace slashes (/)
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: process_instance_event_id
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: the id of the process instance event
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- Process Instance Events
|
2023-04-25 15:30:26 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.process_instance_events_controller.error_detail_show
|
2023-04-19 13:56:00 -04:00
|
|
|
summary: returns the error details for a given process instance event.
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of types
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/ProcessInstanceLog"
|
|
|
|
|
2022-10-12 10:22:22 -04:00
|
|
|
/secrets:
|
|
|
|
parameters:
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The number of items to show per page. Defaults to page 10.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
post:
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.secrets_controller.secret_create
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Create a secret for a key and value
|
|
|
|
tags:
|
|
|
|
- Secrets
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Secret"
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: Secret created successfully
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: number
|
|
|
|
get:
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.secrets_controller.secret_list
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Return list of all secrets
|
|
|
|
tags:
|
|
|
|
- Secrets
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: list of secrets
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Secret"
|
|
|
|
|
|
|
|
/secrets/{key}:
|
|
|
|
parameters:
|
|
|
|
- name: key
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The key we are using
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
get:
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.secrets_controller.secret_show
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Return a secret value for a key
|
|
|
|
tags:
|
|
|
|
- Secrets
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: We return a secret
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Secret"
|
|
|
|
delete:
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.secrets_controller.secret_delete
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Delete an existing secret
|
|
|
|
tags:
|
|
|
|
- Secrets
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: The secret is deleted
|
|
|
|
"401":
|
|
|
|
description: Unauthorized to delete secret
|
|
|
|
"404":
|
|
|
|
description: Secret does not exist
|
|
|
|
put:
|
2022-12-29 15:45:34 -05:00
|
|
|
operationId: spiffworkflow_backend.routes.secrets_controller.secret_update
|
2022-10-12 10:22:22 -04:00
|
|
|
summary: Modify an existing secret
|
|
|
|
tags:
|
|
|
|
- Secrets
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Secret"
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Secret updated successfully
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Secret"
|
|
|
|
"401":
|
|
|
|
description: Unauthorized to update secret
|
|
|
|
"404":
|
|
|
|
description: Secret does not exist
|
|
|
|
|
2022-10-20 16:00:12 -04:00
|
|
|
/permissions-check:
|
|
|
|
post:
|
|
|
|
operationId: spiffworkflow_backend.routes.process_api_blueprint.permissions_check
|
|
|
|
summary: Checks if current user has access to given list of target uris and permissions.
|
|
|
|
tags:
|
|
|
|
- Permissions
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Secret"
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: Result of permission check
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: "#/components/schemas/Secret"
|
|
|
|
|
2023-04-25 15:30:26 -04:00
|
|
|
/connector-proxy/typeahead/{category}:
|
2023-04-05 14:27:20 -04:00
|
|
|
parameters:
|
|
|
|
- name: category
|
|
|
|
in: path
|
|
|
|
required: true
|
2023-04-25 15:30:26 -04:00
|
|
|
description: The category for the typeahead search
|
2023-04-05 14:27:20 -04:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: prefix
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
description: The prefix to search for
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: limit
|
|
|
|
in: query
|
|
|
|
required: true
|
|
|
|
description: The maximum number of search results
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
2023-04-25 15:30:26 -04:00
|
|
|
operationId: spiffworkflow_backend.routes.connector_proxy_controller.typeahead
|
2023-04-05 14:27:20 -04:00
|
|
|
summary: Return type ahead search results
|
|
|
|
tags:
|
|
|
|
- Type Ahead
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: We return type ahead search results
|
|
|
|
#content:
|
|
|
|
# - application/json
|
|
|
|
|
Feature/view data stores (#388)
* * Added /data-stores/ endpoint accessible by privileged users that will return a list of all data stores known to the system.
* Added a /data-stores/[type]/[name] endpoint that will return a list of all data stored within a data-store.
* Granted users with "elevated permissions" the right to access the data store.
* Added a "Data Store" link to the navigation bar beside messages.
* And a few useful tests.
* Still a little front end work to do to get it all looking pretty.
* Added a Data Store List component that, well, displays, you guessed it! A list of data stores and their contents.
Also, Carbon's paginator doesn't care how many pages you have, it's going to build the mother of all drop down lists - you got 60,000,000 records? Showing 5 at a time? It's going to be a dropdown list that contains all numbers between 1 and 12,000,000, because that makes sense! So, yea, not doing that, cutting it off at 1000 pages - you got more pages than that, the paginator can't take you there. As you can show 100 items per page, that means you can access 100,000 items instantly.
* renaming data_store_items_list => data_store_item_list
2023-07-13 11:24:10 -04:00
|
|
|
/data-stores:
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.data_store_controller.data_store_list
|
|
|
|
summary: Return a list of the data store objects.
|
|
|
|
tags:
|
|
|
|
- Data Stores
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: The list of currently defined data store objects
|
|
|
|
/data-stores/{data_store_type}/{name}:
|
|
|
|
parameters:
|
|
|
|
- name: data_store_type
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The type of datastore, such as "typeahead"
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: name
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
description: The name of the datastore, such as "cities"
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
- name: per_page
|
|
|
|
in: query
|
|
|
|
required: false
|
|
|
|
description: The page number to return. Defaults to page 1.
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
get:
|
|
|
|
operationId: spiffworkflow_backend.routes.data_store_controller.data_store_item_list
|
|
|
|
summary: Returns a paginated list of the contents of a data store.
|
|
|
|
tags:
|
|
|
|
- Data Stores
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: A list of the data stored in the requested data store.
|
|
|
|
|
|
|
|
|
2022-10-12 10:22:22 -04:00
|
|
|
components:
|
|
|
|
securitySchemes:
|
|
|
|
jwt:
|
|
|
|
type: http
|
|
|
|
scheme: bearer
|
|
|
|
bearerFormat: JWT
|
|
|
|
x-bearerInfoFunc: spiffworkflow_backend.routes.user.verify_token
|
|
|
|
x-scopeValidateFunc: spiffworkflow_backend.routes.user.validate_scope
|
|
|
|
|
|
|
|
oAuth2AuthCode:
|
|
|
|
type: oauth2
|
|
|
|
description: authenticate with openid server
|
|
|
|
flows:
|
|
|
|
authorizationCode:
|
|
|
|
authorizationUrl: /v1.0/login_api
|
|
|
|
tokenUrl: /v1.0/login_api_return
|
|
|
|
scopes:
|
|
|
|
read_email: read email
|
|
|
|
x-tokenInfoFunc: spiffworkflow_backend.routes.user.get_scope
|
|
|
|
|
|
|
|
schemas:
|
|
|
|
OkTrue:
|
|
|
|
properties:
|
|
|
|
ok:
|
|
|
|
type: boolean
|
|
|
|
example: true
|
|
|
|
User:
|
|
|
|
properties:
|
|
|
|
uid:
|
|
|
|
type: string
|
|
|
|
email_address:
|
|
|
|
type: string
|
|
|
|
display_name:
|
|
|
|
type: string
|
|
|
|
affiliation:
|
|
|
|
type: string
|
|
|
|
eppn:
|
|
|
|
type: string
|
|
|
|
first_name:
|
|
|
|
type: string
|
|
|
|
last_name:
|
|
|
|
type: string
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
DataModel:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
ProcessModelDiffList:
|
|
|
|
properties:
|
|
|
|
workflow_spec_id:
|
|
|
|
type: string
|
|
|
|
example: top_level_workflow
|
|
|
|
created_at_in_seconds:
|
|
|
|
type: integer
|
|
|
|
location:
|
|
|
|
type: string
|
|
|
|
example: remote
|
|
|
|
new:
|
|
|
|
type: boolean
|
|
|
|
example: false
|
|
|
|
ProcessModelFilesList:
|
|
|
|
properties:
|
|
|
|
file_model_id:
|
|
|
|
type: integer
|
|
|
|
example: 171
|
|
|
|
workflow_spec_id:
|
|
|
|
type: string
|
|
|
|
example: top_level_workflow
|
|
|
|
filename:
|
|
|
|
type: string
|
|
|
|
example: data_security_plan.dmn
|
|
|
|
created_at_in_seconds:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
example: dmn
|
|
|
|
primary:
|
|
|
|
type: boolean
|
|
|
|
example: false
|
|
|
|
content_type:
|
|
|
|
type: string
|
|
|
|
example: text/xml
|
|
|
|
primary_process_id:
|
|
|
|
type: string
|
|
|
|
example: null
|
|
|
|
md5_hash:
|
|
|
|
type: string
|
|
|
|
example: f12e2bbd-a20c-673b-ccb8-a8a1ea9c5b7b
|
|
|
|
|
|
|
|
ProcessModelFilesDiff:
|
|
|
|
properties:
|
|
|
|
filename:
|
|
|
|
type: string
|
|
|
|
example: data_security_plan.dmn
|
|
|
|
created_at_in_seconds:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
example: dmn
|
|
|
|
primary:
|
|
|
|
type: boolean
|
|
|
|
example: false
|
|
|
|
content_type:
|
|
|
|
type: string
|
|
|
|
example: text/xml
|
|
|
|
primary_process_id:
|
|
|
|
type: string
|
|
|
|
example: null
|
|
|
|
md5_hash:
|
|
|
|
type: string
|
|
|
|
example: f12e2bbd-a20c-673b-ccb8-a8a1ea9c5b7b
|
|
|
|
location:
|
|
|
|
type: string
|
|
|
|
example: remote
|
|
|
|
new:
|
|
|
|
type: boolean
|
|
|
|
example: false
|
|
|
|
ProcessModelAll:
|
|
|
|
properties:
|
|
|
|
workflow_spec_id:
|
|
|
|
type: string
|
|
|
|
example: acaf1258-43b4-437e-8846-f612afa66811
|
|
|
|
created_at_in_seconds:
|
|
|
|
type: integer
|
|
|
|
md5_hash:
|
|
|
|
type: string
|
|
|
|
example: c30fd597f21715018eab12f97f9d4956
|
|
|
|
Study:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
example: 1234
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
example: The impact of fried pickles on beer consumption in bipedal software developers.
|
|
|
|
updated_at_in_seconds:
|
|
|
|
type: string
|
|
|
|
format: date_time
|
|
|
|
example: "2019-12-25T09:12:33.001Z"
|
|
|
|
user_uid:
|
|
|
|
type: string
|
|
|
|
example: dhf8r
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
enum: ["in_progress", "hold", "open_for_enrollment", "abandoned"]
|
|
|
|
example: done
|
|
|
|
sponsor:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
example: "Sartography Pharmaceuticals"
|
|
|
|
ind_number:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
example: "27b-6-42"
|
|
|
|
StudyAssociate:
|
|
|
|
properties:
|
|
|
|
uid:
|
|
|
|
type: string
|
|
|
|
example: "dhf8r"
|
|
|
|
access:
|
|
|
|
type: boolean
|
|
|
|
example: False
|
|
|
|
role:
|
|
|
|
type: string
|
|
|
|
example: "TODO"
|
|
|
|
DocumentDirectory:
|
|
|
|
properties:
|
|
|
|
level:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
example: "Ancillary Document"
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
example: "Documents that are ancillary to the study"
|
|
|
|
file:
|
|
|
|
$ref: "#/components/schemas/File"
|
|
|
|
x-nullable: true
|
|
|
|
expanded:
|
|
|
|
type: boolean
|
|
|
|
example: False
|
|
|
|
filecount:
|
|
|
|
type: integer
|
|
|
|
example: 1
|
|
|
|
children:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/File"
|
|
|
|
DataStore:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
example: 1234
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
example: MyKey
|
|
|
|
workflow_id:
|
|
|
|
type: integer
|
|
|
|
x-nullable: true
|
|
|
|
example: 12
|
|
|
|
user_id:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
example: dhf8r
|
|
|
|
task_id:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
example: MyTask
|
|
|
|
process_model_id:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
example: My Spec Name
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
x-nullable: true
|
|
|
|
example: Some Value
|
2022-11-14 21:54:13 -05:00
|
|
|
Process:
|
|
|
|
properties:
|
|
|
|
identifier:
|
|
|
|
type: string
|
|
|
|
display_name:
|
|
|
|
type: string
|
|
|
|
process_group_id:
|
|
|
|
type: string
|
|
|
|
process_model_id:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
file_name:
|
|
|
|
type: string
|
|
|
|
has_lanes:
|
|
|
|
type: boolean
|
|
|
|
is_executable:
|
|
|
|
type: boolean
|
|
|
|
is_primary:
|
|
|
|
type: boolean
|
2022-10-12 10:22:22 -04:00
|
|
|
ProcessModel:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
display_name:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
primary_process_id:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
2023-06-01 15:10:01 -04:00
|
|
|
ProcessGroup:
|
2022-10-12 10:22:22 -04:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
display_name:
|
|
|
|
type: string
|
|
|
|
File:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
example: "random_fact.bpmn"
|
|
|
|
version:
|
|
|
|
type: integer
|
|
|
|
updated_at_in_seconds:
|
|
|
|
type: string
|
|
|
|
format: date_time
|
|
|
|
example: "2019-12-25T09:12:33.001Z"
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
primary:
|
|
|
|
type: boolean
|
|
|
|
content_type:
|
|
|
|
type: string
|
|
|
|
example: "application/xml"
|
|
|
|
workflow_spec_id:
|
|
|
|
type: string
|
|
|
|
example: "random_fact"
|
|
|
|
x-nullable: true
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
Workflow:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
readOnly: true
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
enum: ["new", "user_input_required", "waiting", "complete"]
|
|
|
|
navigation:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/NavigationItem"
|
|
|
|
next_task:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
workflow_spec_id:
|
|
|
|
type: string
|
|
|
|
spec_version:
|
|
|
|
type: string
|
|
|
|
is_latest_spec:
|
|
|
|
type: boolean
|
|
|
|
num_tasks_total:
|
|
|
|
type: integer
|
|
|
|
num_tasks_complete:
|
|
|
|
type: integer
|
|
|
|
num_tasks_incomplete:
|
|
|
|
type: integer
|
|
|
|
|
|
|
|
example:
|
|
|
|
id: 291234
|
|
|
|
status: "user_input_required"
|
|
|
|
workflow_spec_id: "random_fact"
|
|
|
|
spec_version: "v1.1 [22,23]"
|
|
|
|
is_latest_spec: True
|
|
|
|
next_task:
|
|
|
|
id: study_identification
|
|
|
|
name: Study Identification
|
|
|
|
title: IRB Review
|
|
|
|
documentation: "# Heading 1\n\nMarkdown documentation text goes here"
|
|
|
|
type: form
|
|
|
|
state: ready
|
|
|
|
Task:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
readOnly: true
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
form:
|
|
|
|
$ref: "#/components/schemas/Form"
|
|
|
|
documentation:
|
|
|
|
type: string
|
|
|
|
data:
|
|
|
|
type: object
|
|
|
|
multi_instance_type:
|
|
|
|
type: string
|
|
|
|
enum: ["none", "looping", "parallel", "sequential"]
|
|
|
|
multi_instance_count:
|
|
|
|
type: number
|
|
|
|
multi_instance_index:
|
|
|
|
type: number
|
|
|
|
process_name:
|
|
|
|
type: string
|
|
|
|
properties:
|
|
|
|
type: object
|
|
|
|
example:
|
|
|
|
id: study_identification
|
|
|
|
name: Study Identification
|
|
|
|
title: IRB Review
|
|
|
|
documentation: "# Heading 1\n\nMarkdown documentation text goes here"
|
|
|
|
type: form
|
|
|
|
state: ready
|
|
|
|
form:
|
|
|
|
"key": "irb_review_form"
|
|
|
|
"fields":
|
|
|
|
- "id": "irb_review_type"
|
|
|
|
"type": "enum"
|
|
|
|
"label": "Select IRB Review Type"
|
|
|
|
"options":
|
|
|
|
- id: "emergency_use"
|
|
|
|
name: "Emergency Use"
|
|
|
|
- id: "humanitarian_device"
|
|
|
|
name: "Humanitarian Device"
|
|
|
|
- id: "non_human"
|
|
|
|
name: "Non-Human"
|
|
|
|
- id: "non_uva_agent"
|
|
|
|
name: "Non-UVA Agent"
|
|
|
|
- id: "exempt"
|
|
|
|
name: "Exempt"
|
|
|
|
- id: "non_engaged"
|
|
|
|
name: "Non-Engaged"
|
|
|
|
- id: "expedited"
|
|
|
|
name: "Expedited"
|
|
|
|
- id: "full_board"
|
|
|
|
name: "Full Board"
|
|
|
|
"default_value": "Full Board"
|
|
|
|
"validation":
|
|
|
|
- name: "required"
|
|
|
|
config: "true"
|
|
|
|
"properties":
|
|
|
|
- id: "description"
|
|
|
|
value: "Description text goes here"
|
|
|
|
- id: "help"
|
|
|
|
value: "# Heading 1\n\nMarkdown help text goes here"
|
|
|
|
- id: "required_expression"
|
|
|
|
value: "model.my_boolean_field_id && model.my_enum_field_value !== 'something'"
|
|
|
|
- id: "hide_expression"
|
|
|
|
value: "model.my_enum_field_value === 'something'"
|
|
|
|
PaginatedTaskLog:
|
|
|
|
properties:
|
|
|
|
code:
|
|
|
|
example: "email_sent"
|
|
|
|
type: string
|
|
|
|
level:
|
|
|
|
example: "warning"
|
|
|
|
type: string
|
|
|
|
user:
|
|
|
|
example: "email_sent"
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
example: 0
|
|
|
|
per_page:
|
|
|
|
type: integer
|
|
|
|
example: 10
|
|
|
|
sort_column:
|
|
|
|
type: string
|
|
|
|
example: "timestamp"
|
|
|
|
sort_reverse:
|
|
|
|
type: boolean
|
|
|
|
example: false
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/TaskLog"
|
|
|
|
has_next:
|
|
|
|
type: boolean
|
|
|
|
example: true
|
|
|
|
has_prev:
|
|
|
|
type: boolean
|
|
|
|
example: false
|
|
|
|
TaskLog:
|
|
|
|
properties:
|
|
|
|
level:
|
|
|
|
type: string
|
|
|
|
example: "info"
|
|
|
|
code:
|
|
|
|
example: "email_sent"
|
|
|
|
type: string
|
|
|
|
message:
|
|
|
|
example: "Approval email set to Jake in Accounting"
|
|
|
|
type: string
|
|
|
|
workflow_id:
|
|
|
|
example: 42
|
|
|
|
type: integer
|
|
|
|
user_uid:
|
|
|
|
example: "dhf8r"
|
|
|
|
type: string
|
|
|
|
timestamp:
|
|
|
|
type: string
|
|
|
|
format: date_time
|
|
|
|
example: "2021-01-07T11:36:40.001Z"
|
|
|
|
TaskEvent:
|
|
|
|
properties:
|
|
|
|
workflow:
|
|
|
|
$ref: "#/components/schemas/Workflow"
|
|
|
|
study:
|
|
|
|
$ref: "#/components/schemas/Study"
|
|
|
|
workflow_sec:
|
|
|
|
$ref: "#/components/schemas/ProcessModel"
|
|
|
|
spec_version:
|
|
|
|
type: string
|
|
|
|
action:
|
|
|
|
type: string
|
|
|
|
task_id:
|
|
|
|
type: string
|
|
|
|
task_type:
|
|
|
|
type: string
|
|
|
|
task_lane:
|
|
|
|
type: string
|
|
|
|
form_data:
|
|
|
|
type: object
|
|
|
|
mi_type:
|
|
|
|
type: string
|
|
|
|
mi_count:
|
|
|
|
type: integer
|
|
|
|
mi_index:
|
|
|
|
type: integer
|
|
|
|
process_name:
|
|
|
|
type: string
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
Form:
|
|
|
|
properties:
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
fields:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/Field"
|
|
|
|
example:
|
|
|
|
"key": "irb_review_form"
|
|
|
|
"fields":
|
|
|
|
- "id": "irb_review_type"
|
|
|
|
"type": "enum"
|
|
|
|
"label": "Select IRB Review Type"
|
|
|
|
"options":
|
|
|
|
- id: "emergency_use"
|
|
|
|
name: "Emergency Use"
|
|
|
|
- id: "humanitarian_device"
|
|
|
|
name: "Humanitarian Device"
|
|
|
|
- id: "non_human"
|
|
|
|
name: "Non-Human"
|
|
|
|
- id: "non_uva_agent"
|
|
|
|
name: "Non-UVA Agent"
|
|
|
|
- id: "exempt"
|
|
|
|
name: "Exempt"
|
|
|
|
- id: "non_engaged"
|
|
|
|
name: "Non-Engaged"
|
|
|
|
- id: "expedited"
|
|
|
|
name: "Expedited"
|
|
|
|
- id: "full_board"
|
|
|
|
name: "Full Board"
|
|
|
|
"default_value": "Full Board"
|
|
|
|
"validation":
|
|
|
|
- name: "required"
|
|
|
|
config: "true"
|
|
|
|
"properties":
|
|
|
|
- id: "description"
|
|
|
|
value: "Description text goes here"
|
|
|
|
- id: "help"
|
|
|
|
value: "# Heading 1\n\nMarkdown help text goes here"
|
|
|
|
- id: "required_expression"
|
|
|
|
value: "model.my_boolean_field_id && model.my_enum_field_value !== 'something'"
|
|
|
|
- id: "hide_expression"
|
|
|
|
value: "model.my_enum_field_value === 'something'"
|
|
|
|
Field:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
enum: ["string", "long", "boolean", "date", "enum"]
|
|
|
|
readOnly: true
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
options:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/EnumFieldOption"
|
|
|
|
readOnly: true
|
|
|
|
default_value:
|
|
|
|
type: string
|
|
|
|
readOnly: true
|
|
|
|
validation:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/FieldValidation"
|
|
|
|
readOnly: true
|
|
|
|
"properties":
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: "#/components/schemas/FieldProperty"
|
|
|
|
readOnly: true
|
|
|
|
EnumFieldOption:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
FieldValidation:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
config:
|
|
|
|
type: string
|
|
|
|
FieldProperty:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
example:
|
|
|
|
id: "required_expression"
|
|
|
|
value: "model.should_require"
|
|
|
|
Error:
|
|
|
|
required:
|
|
|
|
- code
|
|
|
|
- message
|
|
|
|
properties:
|
|
|
|
code:
|
|
|
|
type: string
|
|
|
|
format: string
|
|
|
|
example: "access_denied"
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
example: "You do not have permission to view the requested study."
|
|
|
|
Script:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
format: string
|
|
|
|
example: "random_fact"
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
example: "Returns a random fact about a topic. Provide an argument of either 'cat', 'norris', or 'buzzword'"
|
|
|
|
LookupItem:
|
|
|
|
properties:
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
format: string
|
|
|
|
example: "1000"
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
example: "Chuck Norris"
|
|
|
|
data:
|
|
|
|
type: string
|
|
|
|
NavigationItem:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
format: integer
|
|
|
|
example: 5
|
|
|
|
task_id:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
example: "1234123uuid1234"
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
example: "Task_Has_bananas"
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
example: "Has Bananas?"
|
|
|
|
backtracks:
|
|
|
|
type: boolean
|
|
|
|
example: false
|
|
|
|
level:
|
|
|
|
type: integer
|
|
|
|
example: 1
|
|
|
|
indent:
|
|
|
|
type: integer
|
|
|
|
example: 2
|
|
|
|
child_count:
|
|
|
|
type: integer
|
|
|
|
example: 4
|
|
|
|
state:
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
[
|
|
|
|
"FUTURE",
|
|
|
|
"WAITING",
|
|
|
|
"READY",
|
|
|
|
"CANCELLED",
|
|
|
|
"COMPLETED",
|
|
|
|
"LIKELY",
|
|
|
|
"MAYBE",
|
|
|
|
]
|
|
|
|
readOnly: true
|
|
|
|
is_decision:
|
|
|
|
type: boolean
|
|
|
|
example: False
|
|
|
|
readOnly: true
|
|
|
|
task:
|
|
|
|
$ref: "#/components/schemas/Task"
|
|
|
|
Approval:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
format: integer
|
|
|
|
example: 5
|
|
|
|
ApprovalCounts:
|
|
|
|
properties:
|
|
|
|
PENDING:
|
|
|
|
type: number
|
|
|
|
format: integer
|
|
|
|
example: 5
|
|
|
|
APPROVED:
|
|
|
|
type: number
|
|
|
|
format: integer
|
|
|
|
example: 5
|
|
|
|
DECLINED:
|
|
|
|
type: number
|
|
|
|
format: integer
|
|
|
|
example: 5
|
|
|
|
CANCELED:
|
|
|
|
type: number
|
|
|
|
format: integer
|
|
|
|
example: 5
|
|
|
|
AWAITING:
|
|
|
|
type: number
|
|
|
|
format: integer
|
|
|
|
example: 5
|
|
|
|
ServiceTask:
|
|
|
|
properties:
|
|
|
|
items:
|
|
|
|
type: array
|
|
|
|
$ref: "#/components/schemas/ServiceTaskConnector"
|
|
|
|
readOnly: true
|
|
|
|
ServiceTaskConnector:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
example: xero/CreateInvoice
|
|
|
|
parameters:
|
|
|
|
type: array
|
|
|
|
$ref: "#/components/schemas/ServiceTaskOperatorParameter"
|
|
|
|
readOnly: true
|
|
|
|
ServiceTaskOperatorParameter:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
example: client_id
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
example: str
|
|
|
|
required:
|
|
|
|
type: boolean
|
|
|
|
example: false
|
|
|
|
GitRepo:
|
|
|
|
properties:
|
|
|
|
# remote:
|
|
|
|
# type: string
|
|
|
|
# example: sartography/crconnect-workflow-specs
|
|
|
|
directory:
|
|
|
|
type: string
|
|
|
|
example: /home/cr-connect/sync_files
|
|
|
|
branch:
|
|
|
|
type: string
|
|
|
|
example: dev
|
|
|
|
merge_branch:
|
|
|
|
type: string
|
|
|
|
example: staging
|
|
|
|
changes:
|
|
|
|
type: array
|
|
|
|
example: ["file_1.txt", "file_2.txt"]
|
|
|
|
untracked:
|
|
|
|
type: array
|
|
|
|
example: ["a_file.txt", "b_file.txt"]
|
|
|
|
Secret:
|
|
|
|
properties:
|
|
|
|
key:
|
|
|
|
description: The key of the secret we want to use
|
|
|
|
type: string
|
|
|
|
example: my_secret_key
|
|
|
|
nullable: false
|
|
|
|
value:
|
|
|
|
description: The value associated with the key
|
|
|
|
type: string
|
|
|
|
example: my_super_secret_value
|
|
|
|
nullable: false
|
2022-10-25 14:12:32 -04:00
|
|
|
user_id:
|
|
|
|
description: The id of the logged in user that updated this secret
|
2022-10-12 10:22:22 -04:00
|
|
|
type: number
|
|
|
|
example: 1
|
|
|
|
nullable: false
|
|
|
|
ProcessInstanceLog:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
description: The id of the log
|
|
|
|
type: number
|
|
|
|
example: 1
|
|
|
|
nullable: false
|
|
|
|
process_instance_id:
|
|
|
|
description: The id of the associated process instance
|
|
|
|
type: number
|
|
|
|
example: 2
|
|
|
|
nullable: false
|
|
|
|
bpmn_process_identifier:
|
|
|
|
description: The id of the bpmn process element
|
|
|
|
type: string
|
|
|
|
example: Process_SimpleProcess
|
|
|
|
nullable: false
|
|
|
|
task:
|
|
|
|
description: The task identifier
|
|
|
|
type: number
|
|
|
|
example: 1234567890
|
|
|
|
nullable: false
|
|
|
|
message:
|
|
|
|
description: The msg returned in the log
|
|
|
|
type: string
|
|
|
|
example: Some message returned in the log
|
|
|
|
nullable: true
|
|
|
|
timestamp:
|
|
|
|
description: The timestamp returned in the log
|
|
|
|
type: number
|
|
|
|
example: 123456789.12345
|
2023-04-28 10:07:21 -04:00
|
|
|
|
|
|
|
ProcessInstanceReport:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
nullable: true
|
|
|
|
identifier:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
nullable: true
|
|
|
|
report_metadata:
|
|
|
|
nullable: false
|
|
|
|
$ref: "#/components/schemas/ReportMetadata"
|
|
|
|
ReportMetadata:
|
|
|
|
properties:
|
|
|
|
columns:
|
|
|
|
type: array
|
|
|
|
nullable: false
|
|
|
|
$ref: "#/components/schemas/ReportMetadataColumn"
|
|
|
|
filter_by:
|
|
|
|
type: array
|
|
|
|
nullable: false
|
|
|
|
$ref: "#/components/schemas/FilterValue"
|
|
|
|
order_by:
|
|
|
|
type: array
|
|
|
|
nullable: false
|
|
|
|
ReportMetadataColumn:
|
|
|
|
properties:
|
|
|
|
Header:
|
|
|
|
type: string
|
|
|
|
nullable: false
|
|
|
|
accessor:
|
|
|
|
type: string
|
|
|
|
nullable: false
|
|
|
|
fiilterable:
|
|
|
|
type: boolean
|
|
|
|
nullable: true
|
|
|
|
FilterValue:
|
|
|
|
properties:
|
|
|
|
field_name:
|
|
|
|
type: string
|
|
|
|
nullable: false
|
|
|
|
field_value:
|
|
|
|
type: string
|
|
|
|
nullable: false
|
|
|
|
fiilterable:
|
|
|
|
type: string
|
|
|
|
nullable: false
|