604 Commits

Author SHA1 Message Date
Dan
ce3ce4fb45 select intiator in filters when you don't have permission to search users. 2023-03-13 11:50:18 -04:00
Elizabeth Esswein
83702b6588 update process instance task list 2023-03-09 18:10:24 -05:00
Elizabeth Esswein
2ecfecb9b4 Merge branch 'main' into feature/remove-loop-reset 2023-03-09 09:55:52 -05:00
jbirddog
abc2e5aac8 Balance lock with unlock (#169) 2023-03-09 08:03:18 -05:00
jasquat
8fb62ba123 do not remove columns when clicking the filter button w/ burnettk 2023-03-08 16:57:12 -05:00
jasquat
65aeca98bc initial changes to remove loop reset with spiff w/ burnettk 2023-03-08 13:06:25 -05:00
jasquat
cc57e6c97d added some code get only the most recent tasks for a process and task, get updated times from human tasks instead of the process instance, and show the current value for the notification type w/ burnettk 2023-03-07 17:13:46 -05:00
jasquat
1febfdd024 Merge pull request #166 from sartography/feature/split_up_bpmn_json
Feature/split up bpmn json
2023-03-07 14:11:23 -05:00
jasquat
4344e015ca check if aud has any valid value when authing w/ burnettk 2023-03-07 11:58:59 -05:00
jasquat
0f23a1b4d9 Merge remote-tracking branch 'origin/main' into feature/split_up_bpmn_json 2023-03-07 10:48:37 -05:00
jasquat
762116f258 Merge pull request #167 from sartography/simple_crypt
Encrypt secrets in the db
2023-03-07 10:48:24 -05:00
Jon Herron
0fa44d3d80 Don't double encrypt when updating/add if not exists 2023-03-07 09:53:19 -05:00
jasquat
32e61027dc merged in main and resolved conflicts 2023-03-07 09:19:09 -05:00
burnettk
d5800c5a40 lint and show version control identifier on process model show 2023-03-06 23:23:10 -05:00
jasquat
20e083ddc4 Merge remote-tracking branch 'origin/main' into feature/split_up_bpmn_json 2023-03-06 14:29:44 -05:00
jasquat
b30ed8f3c1 pyl 2023-03-06 14:28:55 -05:00
Dan
dfe0280237 Minor fix to avoid an endless set of error messages if your session times out and you are using the builtin openid. 2023-03-06 12:50:18 -05:00
jasquat
4ee7b299f2 pyl and fixed cypress tests w/ burnettk 2023-03-06 11:59:33 -05:00
jasquat
6acd47e67e tests are passing with new db tables w/ burnettk 2023-03-06 11:06:03 -05:00
jbirddog
b4546e86e6 Special case file data during user form submission (#164) 2023-03-03 12:24:18 -05:00
jasquat
989c0932cd some pyl issues 2023-03-02 10:06:05 -05:00
jasquat
cf9b796e1a avoid creating new processors if it is not necessary 2023-03-02 10:00:08 -05:00
jasquat
d1b8de9ea3 pyl 2023-03-01 12:35:08 -05:00
jasquat
b54ace56a2 fixed get call activity task data w/ burnettk 2023-03-01 12:23:04 -05:00
jasquat
e2891425fc store the process instance data id on the process instance and not the other way around w/ burnettk 2023-03-01 11:39:03 -05:00
jasquat
950106fe21 most unit tests are passing now and the use of bpmn_json is almost gone in src 2023-03-01 09:22:38 -05:00
jasquat
35c93e3f7e do not return human tasks from errored process instances w/ burnettk 2023-02-27 16:11:26 -05:00
Dan
f16150b02b Merging main 2023-02-27 14:17:10 -05:00
jasquat
425cf3f8c1 skip failing test if postgres and added comment about cause w/ burnettk 2023-02-24 14:57:17 -05:00
Dan
0dc2bc3316 # SpiffWorkflow:
1) Type Safe checking on correlation properties (no more str())
2) A running workflows Correlations are once again at the key level.

# Backend
1) Both send and receive messages can have correlation_keys - and we compare these to each other to quickly assure a match (if they both exist - otherwise we fall back to comparing the properties on the receive to the sending messages payload)
2) Cleaned up the migrations to just one file
2023-02-24 14:53:22 -05:00
jasquat
7a1e712c14 avoid using task-data endpoint for task data and only use it to get tasks based on spiff step instead 2023-02-24 09:21:21 -05:00
jasquat
4651eaee94 put back the task data code when getting tasks 2023-02-23 18:32:59 -05:00
jasquat
d53b79b18a removed commented out code w/ burnettk 2023-02-23 17:09:33 -05:00
jasquat
a4c1eb96b5 removed task-data endpoints since we no longer need them w/ burnettk 2023-02-23 17:07:53 -05:00
jasquat
a9694c7678 added api to get task data and do not return from task data list anymore w/ burnettk 2023-02-23 15:59:19 -05:00
jasquat
68a5fe3f16 added comment about refactoring getting task data w/ burnettk jbirddog 2023-02-23 15:06:23 -05:00
Dan
7c12dffe41 Merge remote-tracking branch 'origin/main' into feature/message_fixes 2023-02-23 14:26:04 -05:00
Dan
0030a46938 run_pyl 2023-02-23 14:17:22 -05:00
Dan
0f3ef00d72 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
burnettk
bb6dd35bbd remove start and end events from simple logs view 2023-02-21 22:43:23 -05:00
jbirddog
01a95011ad Look in task data/script engine environment for data, not just workflow data. (#143) 2023-02-20 18:12:50 -05:00
Dan
790483a421 run_pyl 2023-02-20 12:34:42 -05:00
Dan
5f6a61c93f * SpiffWorkflow event_definitions wanted to return a message event's correlation properties mested within correlation keys. But messages are directly related to properties, not to keys - and it forced a number of conversions that made for tricky code. So Messages now contain a dictionary of correlation properties only.
* SpiffWorkflow did not serialize correlations - so they were lost between save and retrieve.

* When comparing Correlation Property values - we are storing these values as strings in the database and can't convert them back to integers later, so I'm changing everying everywhere to compare after conversion to a string.  Don't feel great about this one.
* By using an SQL Alchemy join table, there is a lot of db queries we don't need to write.
* A few handy fucntions on db models to make it easier to work with correlations.
* Updated tests because I changed some of the BPMN models we were testing against.
* Database migration to use the new constraint names with the alternate form of the join table between correlation mesages to instance messages.
2023-02-20 11:50:35 -05:00
Dan
2a800e844f * 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
ef4297331d Merge branch 'main' into feature/message_fixes 2023-02-17 12:01:38 -05:00
Dan
8e257600af 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
f5a5059ce0 Merge remote-tracking branch 'origin/main' into feature/support_local_openid_in_cypress_tests 2023-02-16 14:25:51 -05:00
burnettk
5918501083 update configs for publish feature 2023-02-16 13:47:26 -05:00
jasquat
a98892be32 added some support for using the backend openid server for cypress tests w/ burnettk 2023-02-16 12:09:44 -05:00
jasquat
641d237e83 more config updates w/ burnettk 2023-02-16 10:21:02 -05:00