mike cullerton
f900279a02
include workflow.user_id in the WorkflowApi Model
2022-12-01 12:24:08 -05:00
Dan
2249965ade
Paginator arguments changed slightly in latest releases of SQLAlchemy
...
Spiffworkflow 1.2: Top Level Imports moved to appropriate modules
- replace 'from SpiffWorkflow import WorkflowException' to 'from SpiffWorkflow.exceptions import WorkflowException'
- replace 'from SpiffWorkflow import TaskState' to 'from SpiffWorkflow.task import TaskState'
- replace 'from SpiffWorkflow import Task' to 'from SpiffWorkflow.task import Task'
SpiffWorkflow 1.2: Navigation code removed completely. Proved to be of little use to folks, was super complex and difficult to maintain.
SpiffWorkflow 1.2: When inserting custom functions into the PythonExecutionEngine - be aware that the task data will act as the full context for execution, and will contain global functions and methods during the exec call.
SpiffWorkflow 1.2: All Task Specs now have a spec_type attribute, containing a descriptive string of the type, such as "User Task", "Script Task", "Start Event" etc...
2022-10-07 14:58:08 -04:00
Dan
4305b36b74
Removed total_tasks and completed_tasks - as they are no longer used by the front end, and were dubious as hell to begin with.
...
Upraded SpiffWorkflow and now use th new get_subprocess_specs
updated the calculate_stats in the workflow processor - as the serialization had changed drastically, and needed to debug some performance issues.
Added a get_navigation method that will calcuate a basic navigation list MUCH faster than using the get_flat_nav_list in Spiffworkflows Navigation object.
Modified a hellton of tests because we don't have total_task and completed_task counts, or a complex nested navigation list anymore.
2022-07-20 12:10:23 -04:00
mike cullerton
6f393f712d
Store doc_code information for email message attachments
...
- create table `email_doc_codes`
- create relationship with `email` table
- create schema for the new table
2022-06-15 15:15:40 -04:00
Dan Funk
d434602f55
Merge pull request #551 from sartography/chore/current-user-changes-755
...
Chore/current user changes #755 and lane permissions #737
2022-06-03 15:45:49 -04:00
mike cullerton
963880ed9a
Better wording
2022-06-03 15:06:53 -04:00
mike cullerton
8d504c7550
add impersonator
attribute to UserModelSchema
2022-05-31 15:00:27 -04:00
mike cullerton
0887fec9e2
Merge branch 'chore/unlock-admin-sandbox-739' of https://github.com/sartography/cr-connect-workflow into chore/unlock-admin-sandbox-739
2022-05-26 13:36:43 -04:00
mike cullerton
d07df26103
Remove unused method
2022-05-26 13:35:47 -04:00
Dan
289b4b0ae8
Merge branch 'dev' into chore/unlock-admin-sandbox-739
2022-05-26 11:53:16 -04:00
mike cullerton
4a1300f101
Add test that checks the is_admin_workflow attribute on WorkflowApi
...
Add `from_workflow_model` helper method to the WorkflowApi class in api_models
2022-05-25 14:29:14 -04:00
mike cullerton
2c083f73a8
Add is_admin_workflow
attribute to WorkflowApi and WorkflowApiSchema
...
Set is_admin_workflow when we instantiate WorkflowApi in WorkflowService.processor_to_workflow_api
2022-05-24 15:57:08 -04:00
mike cullerton
4c24fde952
Code cleanup after file refactor
2022-05-20 10:47:14 -04:00
Dan Funk
0431a6f17a
Merge pull request #535 from sartography/chore/unlock-admin-sandbox-720
...
Chore/unlock admin sandbox #720
2022-05-10 09:49:30 -04:00
mike cullerton
8c92c7870c
allow null values
2022-05-09 16:27:33 -04:00
mike cullerton
598a9b3ef1
Add progress_status to update study schema
2022-05-09 16:02:00 -04:00
mike cullerton
650c63f268
Unused
2022-05-09 10:26:42 -04:00
mike cullerton
8169014869
Allow None values for state (which is a string, not a mapping)
2022-05-09 10:07:43 -04:00
mike cullerton
c3919c6112
clean up: spacing
2022-05-09 08:42:39 -04:00
mike cullerton
312d338068
Merge branch 'dev' into chore/unlock-admin-sandbox-720
2022-05-09 08:35:13 -04:00
mike cullerton
3d2ba971f2
Include the state message
2022-05-09 08:31:46 -04:00
mike cullerton
8cac4e2f95
Change state from enum to string
2022-05-06 17:22:11 -04:00
mike cullerton
b13aac84e7
Change workflow_state to state
2022-05-06 14:02:11 -04:00
mike cullerton
e8c5ec1af5
Add is_locked to Task API object
2022-05-06 08:54:57 -04:00
mike cullerton
5e7f226b4e
Add workflow_state to Workflow and WorkflowApi models/schemas
2022-05-06 08:51:37 -04:00
mike cullerton
edd53fccb0
Add workflow_state to WorkflowMetadata
2022-04-29 17:41:52 -04:00
mike cullerton
7d29ac75de
add workflow_state column to WorkflowModel
2022-04-29 17:30:38 -04:00
Dan Funk
6cd8d3d27b
Merge pull request #528 from sartography/document-history-695
...
document history fix #695
2022-04-29 12:56:31 -04:00
mike cullerton
05b7bd33a5
We don't have a modified date here, so use the creation date
2022-04-28 16:43:00 -04:00
mike cullerton
4e4c36bb50
Add name
to the EmailModelSchema
2022-04-28 15:18:03 -04:00
Dan Funk
c0e17c13c9
Merge pull request #526 from sartography/feature/better_errors
...
Re-add value expression, ad the default-value is not good enough. so…
2022-04-27 16:18:49 -04:00
Dan
f5c0008b1b
Merge remote-tracking branch 'origin/dev' into new-progress-status
2022-04-27 16:16:38 -04:00
Dan
7e1de883df
Re-add value expression, ad the default-value is not good enough. sometimes we want to change value depending on other fields, which is not a 100% overlap with a default value.
2022-04-26 16:08:04 -04:00
mike cullerton
bcd2e32036
Add finance_in_progress
to ProgressStatus
2022-04-26 15:17:31 -04:00
mike cullerton
56fe0bb606
Add name
column to email
table
2022-04-25 15:36:47 -04:00
mike cullerton
39e005dc24
Include user_uid
and archived
attributes with File and FileSchema
2022-04-21 17:12:29 -04:00
mike cullerton
cf68367085
remove unused code
...
cleanup imports
2022-04-20 11:16:07 -04:00
mike cullerton
fea9c969c2
document => file
...
file_refactor => file
2022-04-20 10:39:19 -04:00
mike cullerton
f75c932194
DocumentModel => FileModel
...
document_id => file_id
prep for migration
2022-04-19 15:10:05 -04:00
mike cullerton
061d55d231
Prep for final migration
2022-04-19 11:38:51 -04:00
mike cullerton
11f9a4dfc2
Add size column back in
2022-04-19 11:35:19 -04:00
mike cullerton
fb5731ff23
Merge branch 'dev' into file-refactor-705
...
# Conflicts:
# crc/scripts/delete_task_data.py
# crc/services/workflow_processor.py
# tests/base_test.py
# tests/files/test_delete_task_data.py
2022-04-19 08:19:52 -04:00
mike cullerton
69e4679667
add data_store records to from_document_model method
2022-04-19 07:43:25 -04:00
Dan
5e54c90b47
"Reset" should not mean "re-start". Calling the reset_workflow script will now set the workflow to an "unstarted" state with no outstanding tasks, no json-state structure stored. The workflow is not yet running.
...
Also:
* Assured that arguments are consistent (we always seem to use workflow_spec_id, so I made sure we use that consistently.
* Don't require named parameters - so it's cool to call it like: reset_workflow('my_workflow_id')
* Task Actions (ie create, assign, etc...) are now an enumeration in the models, and not static variables on Workflow Service, so we can reference them consistently from anywhere.
* Removed some repetitive code
* Always try to validate as much as possible in the scripts to save folks time debugging.
*
2022-04-15 15:36:23 -04:00
mike cullerton
9097851ae1
We now store type as a string, not an Enum
2022-04-15 10:23:00 -04:00
mike cullerton
389d2b413e
More work on igrations
2022-04-14 18:06:08 -04:00
mike cullerton
efc37ee59f
Prepare for migrating data_stores
2022-04-13 08:52:22 -04:00
mike cullerton
a32f9a9458
Fix url link
...
This is a temporary fix. Unsure where it will end up
2022-04-13 08:51:33 -04:00
mike cullerton
bee58ec6d7
Coding style stuff
2022-04-12 13:38:38 -04:00
mike cullerton
0e3b467091
Modified FileSchema to match the new File
2022-04-12 13:38:12 -04:00