59 Commits

Author SHA1 Message Date
jasquat
8593d54742
pyl passes w/ burnettk 2023-03-23 15:16:39 -04:00
jasquat
c63483b171
updated manual task with subprocess bpmn w/ burnettk 2023-03-22 10:45:40 -04:00
jasquat
63369387c6
pyl 2023-03-21 13:34:59 -04:00
jasquat
d6684124fd
use task table for process instance show page. spiff steps are not working yet and neither is data w/ burnettk 2023-03-20 16:51:29 -04:00
jasquat
8dc7c5fb2f
added bpmn_name columns to definition tables and added test for simple logs as well 2023-03-17 10:00:59 -04:00
jasquat
3415caa969
added loop to task test bpmn file w/ burnettk 2023-03-10 17:15:27 -05:00
jasquat
d500360cc0
added subprocess and call activity to task data bpmn file and the test is passing now 2023-03-10 10:46:40 -05:00
burnettk
486a49b6f6
Merge remote-tracking branch 'origin/main' into feature/save_tasks_one_at_a_time 2023-03-09 22:07:11 -05:00
jasquat
9aea8ea51f
the primary test is passing now but subprocesses and call activities are probably broken w/ burnettk 2023-03-09 17:16:44 -05:00
Dan
300af1abae Adding a new test for error handing to assure this doesn't break in the future, and cleaning up the message call event.
Will also need to update the error handling BPMN process so it provides correlation keys.  We should add a task that will
alert you when you create a message object without setting correlation keys - as they are required per the specification.
2023-03-09 15:27:35 -05:00
jasquat
3cc0ad1fb8
Merge remote-tracking branch 'origin/main' into feature/script_get_last_user_completing_task 2023-02-27 14:28:23 -05:00
jasquat
df17c51453
added script to get process initiator w/ burnettk 2023-02-27 14:28:19 -05:00
jasquat
9ce870274c
script to get last user completing a task is working w/ burnettk 2023-02-27 12:08:07 -05:00
burnettk
610fd2e777
wip for get_last_user_completing_task script task 2023-02-25 23:31:23 -05:00
Dan
8c673c4fb6 BPMN.io -- Just show the message names not the ids - to assure we are only exposing the names.
SpiffWorkflow -
    - start_messages function should return message names, not ids.
    - don't catch external thrown messages within the same workflow process
    - add an expected value to the Correlation Property Model so we can use this well defined class as an external communication tool (rather than building an arbitrary dictionary)
    - Added a "get_awaiting_correlations" to an event, so we can get a list of the correlation properties related to the workflows currently defined correlation values.
    - workflows.waiting_events() function now returns the above awaiting correlations as the value on returned message events
 Backend
    - Dropping MessageModel and MessageCorrelationProperties - at least for now.  We don't need them to send / receive messages though we may eventually want to track the messages and correlations defined across the system - these things (which are ever changing) should not be directly connected to the Messages which may be in flux - and the cross relationships between the tables could cause unexpected and unceissary errors.  Commented out the caching logic so we can turn this back on later.
    - Slight improvement to API Errors
    - MessageInstances are no longer in a many-to-many relationship with Correlations - Each message instance has a unique set of message correlations specific to the instance.
    - Message Instances have users, and can be linked through a "counterpart_id" so you can see what send is connected to what recieve.
    - Message Correlations are connected to  recieving message instances.  It is not to a process instance, and not to a message model.  They now include the expected value and retrieval expression required to validate an incoming message.
    - A process instance is not connected to message correlations.
    - Message Instances are not always tied to a process instance (for example, a Send Message from an API)
    - API calls to create a message use the same logic as all other message catching code.
    - Make use of the new waiting_events() method to check for any new recieve messages in the workflow (much easier than
    churning through all of the tasks)
    - One giant mother of a migration.
2023-02-23 13:53:03 -05:00
Dan
7b16625cff run_pyl 2023-02-20 12:34:42 -05:00
Dan
28ac9ef872 * Re-work message tests so I could wrap my simple head around what was happening - just needed an example that made sense to me.
* Clear out complex get_message_instance_receive how that many-to-many works.
* Create decent error messages when correlations fail
* Move correlation checks into the MessageInstance class
* The APIError could bomb out ugly if it hit a workflow exception with not Task Spec.
2023-02-18 13:09:58 -05:00
Dan
948deb97bc work in progress -
* Link between message instance and correlations is now a link table and many-to-many relationships as recommended by SQLAlchemy
* Use the correlation keys, not the process id when accepting api messages.
2023-02-17 10:45:01 -05:00
jasquat
cea7f746f6 use our json encoder to dump the user for get_current_user script w/ burnettk 2023-02-06 14:11:15 -05:00
burnettk
408759d122 show that hiding nested fields works as well 2023-02-03 15:47:35 -05:00
burnettk
c3cb288875 make form schema and form ui schema both dicts, add support for hiding fields based on task data 2023-02-03 15:40:14 -05:00
jasquat
00164b1089 tests are passing now w/ burnettk 2023-01-27 13:20:22 -05:00
Dan
b59cca0212 Merge remote-tracking branch 'origin/main' into feature/jinja_errors 2023-01-25 15:38:52 -05:00
Dan
c4ba9f398d Making sure we create informative messages when encountering jinja2 syntax errors. 2023-01-25 14:13:21 -05:00
jasquat
7ca6a703f2 removed uniqueness constraint from human task so we can loopback to a previous task with a gateway w/ burnettk 2023-01-24 11:03:55 -05:00
jasquat
46c7e25494
Merge pull request #105 from sartography/feature/avoid_logs_when_call_activity_waiting
do not write to logs when a task is inheriting data from the parent w…
2023-01-19 11:08:51 -05:00
jasquat
1d717cff6b skip failing xml test on windows w/ burnettk 2023-01-18 10:38:43 -05:00
jasquat
baf60e9cc9 use the correct windows path separator in test file 2023-01-18 09:43:19 -05:00
jasquat
336fb1d8d2 do not resolve entities when parsing xml w/ burnettk 2023-01-17 14:58:54 -05:00
jasquat
8fa5866f94 do not write to logs when a task is inheriting data from the parent w/ burnettk 2023-01-17 12:23:51 -05:00
jasquat
beac471886 fixed failing tests 2023-01-10 13:23:09 -05:00
jasquat
957d66da8b some updates to validate xml when uploading and saving w/ burnettk 2023-01-10 12:16:24 -05:00
Elizabeth Esswein
3d84c7ca83 Merge branch 'main' into feature/process-navigation 2022-12-29 12:09:47 -05:00
jasquat
208d922602 save the process instance even if it fails to run all the way w/ burnettk 2022-12-28 14:37:04 -05:00
jasquat
c999edeba0 added ability to view data objects from the process instance show page w/ burnettk 2022-12-27 11:45:42 -05:00
jasquat
41c18ea4ec added test to check only privileged users can call refresh_permissions w/ burnettk 2022-12-22 17:12:21 -05:00
Elizabeth Esswein
01fed4758d add integration tests for process nav endpoints 2022-12-19 11:33:48 -05:00
jasquat
ebcc523871 added support to order reports by given column and metadata headers w/ burnettk 2022-12-05 10:59:27 -05:00
burnettk
92bdbf8761 test for automatic saving of process instance metadata on instance save 2022-12-04 22:35:16 -05:00
burnettk
c1373f521e remove dup test process model 2022-12-04 14:40:34 -05:00
jasquat
0268d279e3 some basics to add metadata to reports w/ burnettk cullerton 2022-11-28 17:03:00 -05:00
jasquat
d12e606c84 added script to save process instance metadata and fixed permissions issue w/ burnettk cullerton 2022-11-28 15:26:50 -05:00
mike cullerton
cf09b2258b precommit 2022-11-18 15:50:20 -05:00
jasquat
d319e2a623 fixed failing tests w/ burnettk 2022-11-14 17:38:44 -05:00
burnettk
d25c37153a pyl 2022-11-11 11:39:15 -05:00
mike cullerton
9679720b5a Delete groups now checks for running instances in nested models
also, pyl
2022-11-10 16:44:27 -05:00
mike cullerton
fdbe8ade6e Merge branch 'main' into feature/nested-groups
# Conflicts:
#	spiffworkflow-backend/src/spiffworkflow_backend/api.yml
#	spiffworkflow-backend/src/spiffworkflow_backend/models/process_instance_report.py
#	spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py
#	spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py
#	spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_spec_file_service.py
#	spiffworkflow-frontend/src/routes/ProcessInstanceList.tsx
#	spiffworkflow-frontend/src/routes/ProcessInstanceReportList.tsx
#	spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx
#	spiffworkflow-frontend/src/routes/ProcessModelShow.tsx
2022-11-08 14:09:03 -05:00
Dan
3a9b7661e0 Merge commit '39f9dcba4d497b121ef7f24e58e735b62b0e03d4' into main 2022-11-07 14:35:45 -05:00
mike cullerton
23517b8953 Merge branch 'main' into feature/nested-groups
# Conflicts:
#	spiffworkflow-backend/src/spiffworkflow_backend/models/process_model.py
#	spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py
#	spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_process_api.py
2022-11-07 10:56:37 -05:00
mike cullerton
aeea99c0ff started test for test_script_unit_test_run 2022-11-07 10:34:14 -05:00