Commit Graph

90 Commits

Author SHA1 Message Date
jasquat 1fcb75e57a
pyl w/ burnettk 2023-06-02 11:24:49 -04:00
jasquat bbb0ff30ae
synced unit tests with sample and added support for subprocesses for bpmn unit tests w/ burnettk 2023-06-02 11:20:41 -04:00
burnettk 7f19ce4a8c
lint 2023-05-23 06:38:35 -04:00
jasquat c6d2853b51
added api to run process model unit tests w/ burnettk 2023-05-22 17:36:07 -04:00
jasquat 75b6c58bed
Merge remote-tracking branch 'origin/main' into feature/process_model_unit_tests 2023-05-22 15:17:49 -04:00
jasquat 58b06751ae
fixed tests related to new permissions w/ burnettk 2023-05-22 14:58:51 -04:00
jasquat 1c0d62d366
remove api usages from script tests and pyl w/ burnettk 2023-05-22 14:09:17 -04:00
jasquat 101ed1d46f
cleaned up runner tests and rsyncd back to sample w/ burnettk 2023-05-18 17:16:58 -04:00
jasquat d00d10e79e
allow prepending test case data with process id and added better error formatting w/ burnettk 2023-05-18 15:11:30 -04:00
jasquat e8e6cac9e5
cleaned up process model tests and added support for service tasks w/ burnettk 2023-05-17 17:28:51 -04:00
jasquat b08386bf77
support call activities in process model test runner w/ burnettk 2023-05-17 16:35:04 -04:00
jasquat b4b1ef52c8
pyl 2023-05-17 10:01:11 -04:00
jasquat 66714ddeb6
added test for failing test and multiple at once w/ burnettk 2023-05-16 17:32:53 -04:00
jasquat 0235e22f39
added some framework stuff to run process model unit tests w/ burnettk 2023-05-16 17:24:22 -04:00
danfunk 9a900d0994 * BPMN Process needed a cascade delete so that deleting a subprocess would remove all the subprocesses within that subprocess
* Trying to remove the duplicate code that might be causing bugs in the manual_task_complete
* Adding a test to show that a gateway can be successfully completed manually one step at a time.
2023-05-12 06:39:25 -04:00
jasquat 2b451fee50
using the new spiff branch and tests are now passing w/ burnettk 2023-05-11 12:41:52 -04:00
Dan 2128fad5bc Test and updates to assure that when a task has a boundary event, and you return to that event, and then progress one step, you don't get stuck with a task that can't ever be completed.
Let SpiffWorkflow determine what tasks we need to update in the DB using the task_state_change date on the tasks.
2023-05-03 17:08:22 -04:00
Dan 739442d571 * Adding signal_buttons to tasks, which will prompt the frontend to display a button that when pressed will cause the signal to fire.
* This alters how the send_event endpoint responds - it originally responded with a process instance, it now responds with the next task, in keeping with how other task completion endpoints behave.
* I was forced to upgrade some of the bpmn-js libraries which fixes some of the linting errors on the front end.
* The "Return to home" button isn't always displayed.  It will not display when it is redirecting, or when the current task is running.
.
2023-05-02 13:40:41 -04:00
jasquat 3cb9b2ebf7
some pyl stuff. tests are failing w/ burnettk 2023-04-21 16:32:29 -04:00
jasquat 5a561fb833
some updates so task_show no longer needs the processor. i think it mostly works w/ burnettk 2023-04-21 15:54:31 -04:00
jasquat 19e3b7da1e
fixed test w/ burnettk 2023-04-19 15:52:11 -04:00
Dan bab5646ac0 Merge remote-tracking branch 'origin/main' into feature/interstitial 2023-04-19 15:18:10 -04:00
Dan 22d9cda529 Add a test for the interstitial endpoint.
Assure all "GO" buttons lead to the interstial page, and display differently depending on if there is anything you can actually do.
2023-04-19 13:52:29 -04:00
jbirddog 9291741209
spiff-element-units integration (#214) 2023-04-17 14:49:38 -04:00
jasquat 0a97239079
backend tests are passing with less optimized way 2023-04-06 10:30:18 -04:00
jasquat be5bf31974
added test for loopback to subprocess and fixed issue w/ burnettk 2023-03-31 10:48:16 -04:00
jasquat 3d595c3e43
Merge remote-tracking branch 'origin/main' into feature/fix_process_instance_rewind 2023-03-31 09:31:52 -04:00
jasquat 57aa8d45b1
truncate process model metadata w/ burnettk 2023-03-30 16:54:31 -04:00
jasquat c5806ee53d
fixed some failing tests except for test_send_event 2023-03-30 15:25:44 -04:00
jasquat 7d7e976b37
added an init method to task service and move a lot of code from workflow execution to it and fixed up the task running test to check things more thoroughly 2023-03-30 11:15:27 -04:00
jasquat 8bd7716d4c
some more debugging 2023-03-28 15:07:31 -04:00
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