197 Commits

Author SHA1 Message Date
Dan
59490fc350 locking spiffworkflow to a branch because we will not be able to quickly upgrade it at this time. This will allow the latest camunda forms to work. 2023-03-07 15:17:31 -05:00
Dan
513d5664c1 Getting all tests passing with latest SpiffWorkflow. 2022-11-16 12:29:18 -05:00
Dan
c50c9d834b Bumping SpiffWorkflow version with bug fix. 2022-10-14 10:54:18 -04:00
Dan
a758f95fa2 updated Pipfile to point to latest SpiffWorkflow
test code was very unclear, just a quick fix to make it more readable.
2022-10-13 13:42:24 -04:00
Dan
39f2aaaf15 Point SpiffWorkflow dependency at new branch. 2022-10-07 15:47:32 -04: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
5c76c90d04 send_file's arguments changed in a 2.2 of Flask.
Spiffworkflow 1.2:  remove all references of timeit (no longer in SpiffWorkflow)
Spiffworkflow 1.2:  pythonScriptEngine._evaluate no longer accepts a task argument.
Spiffworkflow 1.2:  CancelEventDefinition was removed - please use SignalEventDefinition instead
 EX: replace bpmn_workflow.signal('cancel')  # generate a cancel signal.
              bpmn_workflow.catch(CancelEventDefinition())
 WITH: bpmn_workflow.catch(SignalEventDefinition('cancel'))
Spiffworkflow 1.2:  Task States are JUST integers and TaskSpecNames is now a public dictionary, and can be used to covert a state to human readable string
    EX:  REPLACE:  user_task.state.name
         WITH:     TaskStateNames[user_task.state]
2022-10-05 15:31:56 -04:00
Dan
4816da7aaa Bumping version of spiffworkflow. 2022-07-20 15:08:27 -04:00
Dan
a8a24b8087 Bumping version of spiffworkflow. 2022-07-20 12:20:14 -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
Dan
9ab29cf1fe Upgrade spiffworkflow - the WorkflowTaskExecException was moved - so we have to update all import statements. 2022-07-14 13:37:16 -04:00
Dan
651c59942c fixing a bug in the navigation for SpiffWorkflow 2022-07-07 15:05:53 -04:00
Dan
da10eef7c6 updating the pipfile to use the new spiffworkflow.
Fixing a slight bug in the lookup service tests, so they pass consistently.
2022-06-24 12:01:04 -04:00
Dan
0f611be529 Bumping to new version of Spiffworkflow with updates to the serializer. 2022-05-10 15:09:06 -04:00
Dan
063da419d0 updating for the last version of Spiffworkflow which deprecates the use of task.STATE values, in favor of TaskState.STATE, for example TaskState.READY 2022-05-10 12:28:55 -04:00
jasquat
d896967ffc downgrade spiff w/ burnettk 2022-05-06 14:52:31 -04:00
jasquat
a0c0a04b84 use python 3.9 w/ burnettk 2022-05-06 09:54:27 -04:00
Dan
12d717b395 Bump version of SpiffWorkflow, and inclode some additional debugging tools for size of json data in BPMN. 2022-04-25 07:55:10 -04:00
Dan
e68c95f03c New serialization code, with the ability to load from the old serlializer if needed.
pipenv insisted on updating some other libraries so slight modifications for markupsafe.
2022-04-15 10:26:23 -04:00
Dan
483d7e858b Improved Errors - Pick up on the new task_trace information in WorkflowException and pass it on through the api.
Also:  All script tasks should raise WorkflowTaskExecExceptions - NOT APIExceptions - this is because our scripts are executed by Spiff (not the other way around)  so the errors need to pass fluidly through spiff, and come back to use THEN we can convert them to APIErrors.  Otherwise we lose all kinds of good information about the error.
2022-03-14 16:00:53 -04:00
Dan
02f1e40e32 Bumping SpiffWorkflow 2022-03-09 14:56:25 -05:00
Dan
0455506e2b Loading latest chages from Spiff whic refactored the way the PythonExpressionEngine works.
This cleans up the _evaluate method which previously accepted arbitrary args and kwargs, and now requires an expression, a context to which exectute it, and, optionally, the current task being executed if the DMN is being executed as a part of a BusinessRuleTask in a BPMN diagram.

This also cleans up several bits of duplicated code.

There is also a bit of code here to assure that the current user is included when running the master workflow.
2022-03-04 15:34:36 -05:00
dependabot[bot]
c16b63a67b
Bump celery from 4.4.7 to 5.2.2
Bumps [celery](https://github.com/celery/celery) from 4.4.7 to 5.2.2.
- [Release notes](https://github.com/celery/celery/releases)
- [Changelog](https://github.com/celery/celery/blob/master/Changelog.rst)
- [Commits](https://github.com/celery/celery/compare/v4.4.7...v5.2.2)

---
updated-dependencies:
- dependency-name: celery
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-25 17:23:52 +00:00
Dan
98c0687a1f Bumping SpiffWorkflow version. 2022-02-25 10:31:03 -05:00
Dan
82a90846fc Upgrading libraries - upgrade to Flask 2.0 (previously locked at 1.1.4 because of Connexion) 2022-02-24 15:38:08 -05:00
Dan
f2b6008e5f Fixes 619 - look up models were being built incorrectly, and repeatedly, and sometimes bombed out all together.
bonus: resond with a valid error message when an invalid task_id is requested (don't just 500)
2022-02-17 11:04:50 -05:00
Dan
0ad9843569 Dealing with some changes in SpiffWorkflow's latest release. I think this gets all tests passing again, and behaving as expected. 2022-02-16 10:46:46 -05:00
Dan
093741fa90 By default the system will start up the scheduled tasks, which is usually what you want, but in development
it can be kind of irritating for this stuff to be spinning up when you are trying to debug something, so just set
PROCESS_WAITING_TASKS to false in instance/config.py and voila!!
2022-02-15 14:07:09 -05:00
mike cullerton
070c3cfd5d *** WIP ***
New API endpoints, and associated methods.
Services for the new endpoints
Minimal test
2022-02-01 10:49:35 -05:00
Dan
8f79aad7be Fixes #582 We had an issue in SpiffWorkflow that was preventing us from properly updating data in a task at the end of any sub-process (such as a call activity) 2022-01-05 13:23:19 -05:00
Dan
cffad90703 Bumping a minor fix in SpiffWorkflow that was causing an issue. 2022-01-03 16:49:14 -05:00
Dan
212be423f7 bumping spiffworkflow to support transcations and cancels properly. 2021-12-30 13:01:38 -05:00
Dan
e715980bca bumping SpiffWorkflow to account for an issue when dealing with a subprocess immediately before a looping back to a previous task. 2021-12-21 15:01:07 -05:00
Dan
eab45c363d Bumping to new version of SpiffWorkflow to deal with timer bug. 2021-12-20 13:42:26 -05:00
Dan
8bb41c864d Bouncing sartopgraphy workflow libs. 2021-12-17 13:46:09 -05:00
Dan
421e4fd9aa Fixes related to resent commit to SpiffWorkflow that provides better handling for workflows that loop back on themselves. 2021-12-15 16:00:31 -05:00
Dan
c2256cec6b fixes: 557 - through a deeper fix in SpiffWorkflow to better handle loopbacks. 2021-12-15 14:58:25 -05:00
Dan
455c1035f1 Performance upgrade to script.py - reduce the number of times we generate the augmented list of script functions for running python evals.
Performance upgrade to study_service.py - Don't query on the whole WorkflowModel, just get the status that we need.  Saves lots of complex joins.
Performance upgrade to SpiffWorkflow - don't convert to box unless we have to do so.
2021-11-29 17:48:05 -05:00
Dan
8ec58fd6d7 Assure better error messages when parsing word documents with jinja syntax.
I also have a pull request into the folks that run the python docx library to improve their error messages that we depend on here.
2021-11-23 14:38:48 -05:00
Dan
4d1f4429ff Fixing a bug in enum_label that was not working when lookup up an select list from a spreadsheet.
Assure we raise more thoughtful error messages when running getting exceptions in engine tasks.
Field Options should always be available now due to a fix in Spiffworkflow.
2021-11-22 12:26:30 -05:00
Dan
7041c2285b bumping spiffworkflow for some small fixes. 2021-11-18 14:23:55 -05:00
Dan
84fd3da99f Force celery to be <5 to deal with the increasing pain of Connexion. We should definitely kill Connexion and go a diffrent rounte. 2021-11-18 13:32:26 -05:00
Dan
8cabdd1f96 Bumping to new release of SpiffWorkflow. 2021-11-11 13:47:35 -05:00
Dan
980aafa7a1 bumping SpiffWorkflow with a fix for display order. 2021-10-19 10:55:20 -04:00
Dan
84680ea846 Fixing multiple issues that came out of Study Info, as we debugged issue #474 related to navigating back to a previous task.
There was a problem with the python script engine as well that wasn't handling the de-serialize properly and didn't correctly pick back up on the script engine, and the renaming of methods in PythonScriptEngine created some conflicts with the way we override functions.
We were not handling ldap looks up efficiently, and this was also breaking in Study Info.

Finally we had a bug in SpiffWorkflow that did not allow us to reset back to the previous task in some cases where nested call activities happen far later in the process and are currently active when the reset is created.
2021-10-06 12:17:57 -04:00
Dan
cd35c7bcfe Bumping Spiffworkflow, fixes #470 2021-09-28 13:21:56 -04:00
Dan
edb4d5abe2 bumping spiffworkflow to add support pytz. 2021-09-23 13:33:56 -04:00
Dan
9585e1f8a7 locking flask to be less than 2.0 until connexion get's it's act together. 2021-09-09 12:02:01 -04:00
Dan
dbaf5c7885 Bumping Spiffworkflow to a new version. 2021-09-09 10:07:59 -04:00
Dan
b7ff7add88 with original pipfile.lock 2021-09-09 09:58:41 -04:00