Commit Graph

262 Commits

Author SHA1 Message Date
Dan 9e2a8f3848 minor tweak for adding data objects to lanes/participants. 2023-03-03 14:25:06 -05:00
Elizabeth Esswein ada919e59d add a few tests on data object visibility 2023-03-03 13:06:58 -05:00
Elizabeth Esswein 627e771d4f allow subprocesses to inherit data objects 2023-03-02 22:45:08 -05:00
Dan 887f318f79 Minor cleanup of display in bpmn-js 2023-03-02 16:05:15 -05:00
Dan a547888ef1 run_pyl 2023-02-23 14:17:22 -05:00
Dan 53378437d0 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 f1f008e3e3 fixing a bug in the bpmn editor that was attempting to create the wrong element. 2023-02-13 12:27:45 -05:00
Dan aca23dc56e Fixes several bugs in the editor related to Data Objects:
1) Correctly position the label on new data objects
2) When a Data Object is removed, remove all its references as well.
3) Avoid duplicate names showing up in the Data Objects list.
4) Allow non-words in data object names.
2022-11-24 14:59:09 -05:00
Dan 05660e95a1 Per bug list we went over today, fixing a deep irritation with data object renaming, hopefully this feels better. 2022-11-17 14:58:28 -05:00
Dan e92f48da7c minor fixes to the Bpmn-js-subworkflow spec. 2022-11-16 16:31:47 -05:00
Dan 9207ef45a1 Minor tweak, in the hopes of getting a text box to update correctly. 2022-11-16 15:36:12 -05:00
Dan 084f46464c Fixing a bug in the Call Activity's handing of an update. 2022-11-14 12:23:22 -05:00
Dan c90359945c Return the event bus when calling a search. 2022-11-14 11:22:06 -05:00
Dan 4f23f860f8 add a search button to the call activity to allow finding a process id through some sort of admin interface. 2022-11-11 11:02:29 -05:00
Dan 24c2cc3606 don't flake out when no dmn options are returned. 2022-11-09 11:39:57 -05:00
Dan 84593aee1e remove launch button for call activities. 2022-11-07 12:53:57 -05:00
Dan b285696872 fixing a bug in SpiffScript Group 2022-11-02 14:08:44 -04:00
Dan e12e27ed5f fixing a bug in SpiffScript Group 2022-11-02 12:40:47 -04:00
Dan 7b4ca1919b Merge branch 'main' into feature/more_launch_buttons_and_dropdowns 2022-11-01 21:24:22 -04:00
Dan 38b23ae4e4 No reason to force _files on there, when this could work for any set of options. 2022-11-01 20:35:29 -04:00
Dan 1e75ff7b53 Standardize all Event Names, and document in README.
Fix the SpiffExtensions so they work consistently with both nested Extension Properties, and as single extensions depending on the namespace.
Add a Spiff Extension Text Area.
Everything that is within the body of tag can be referenced with ".value" -- there was a lot of pointless inconsistency in the moddle json file.
2022-11-01 20:24:28 -04:00
Dan aeeaf1596e DMN selection should be from a dropdown, not by hand entering a process id. 2022-11-01 14:41:21 -04:00
Dan ecb175d727 Add Launch Editor buttons for Json files. (fires 'file.editor.launch', with a fileName) 2022-11-01 10:35:07 -04:00
jasquat ff9a4fd28f
Merge pull request #22 from sartography/bug/pre_post_script_launch_button
Pre/Post Script Launch
2022-10-31 17:01:22 -04:00
jasquat 1fd817a8f7 no need to pass element back from the calling launch script event w/ burnettk danfunk 2022-10-31 16:50:25 -04:00
Dan 6467e967b8 Adding a Launch Button for Call Activity
Json files are now a selection list, not a text field -- see app.json for usage.
New SpiffExtensionSelect can be used to add select boxes anywhere you want.
2022-10-31 16:20:05 -04:00
Dan 3d77111f92 Hooks, and an example for setting up a Markdown editor for markdown content. 2022-10-29 15:10:17 -04:00
Dan 2cdae0ca6e Display User Instructions for Manual Tasks and End Events as well. 2022-10-29 13:56:37 -04:00
Dan 3f2abb73ab fixes a minor bug that prevented the editor from opening if no script was yet entered in the Script Task. 2022-10-29 12:25:44 -04:00
Dan c78afceb37 Allow pre-script and post-script's "Launch Editor" button to work correctly.
use commandStack to update Moddle Properties.
Providing a working example of using a code editor with this library, so it's clear how the integration would work.
Rename titles of various components -- don't call sections "SpiffWorkflow", but maybe we find a way to more gently call out these extensions later on.
2022-10-29 10:36:25 -04:00
burnettk 4ed985f4a2 kill console 2022-10-28 13:51:03 -04:00
Dan a185cce56a * For Correlation Properties, should use messagePath and not formalExpression for the name.
* When all data input and outputs are removed, the ioSpecification should be removed as well
* If an ioSpecification is present, then there shoud be a at least one dataInputset and at least one dataoutputset.
2022-10-24 16:13:11 -04:00
Dan 6fe36aeb0e Minor fixes. 2022-10-19 16:12:04 -04:00
Dan d21cb75fb4 Assure we aren't setting the properties on every service task to the same thing. 2022-10-19 15:56:31 -04:00
Dan f28a3f89e4 Deleting any data object reference caused the associated data object to get deleted.
Fixes this so that only if you delete all references, wii the data object be removed.
Also assures that a new data object is not created when adding to a participant in a collaboration (an edge case bug(.
2022-10-19 14:58:52 -04:00
Dan Funk e7be00a6e1
Merge pull request #18 from sartography/feature/service_result
Allow setting the variable that will contain the result of a service call
2022-10-11 10:25:40 -04:00
burnettk 2db50cb738 minor cleanup 2022-09-30 16:16:16 -04:00
Dan 9de648c5c6 Allow setting the variable that will contain the result of a service call, and add a quick sanity test on the Service Task properties panel. 2022-09-30 12:53:12 -04:00
burnettk 5c91a2d0fd Merge remote-tracking branch 'origin/main' into feature/script_unit_tests 2022-09-30 10:18:45 -04:00
burnettk 65070fbba0 this class is used by bootstrap and has been the thing screwing up our margins 2022-09-29 23:19:04 -04:00
jasquat 19cc2e3961 fixes to add and update script unit tests w/ burnettk 2022-09-27 17:40:12 -04:00
jasquat 28eccc0d00 merged in main and resolved conflicts w/ burnettk 2022-09-27 10:31:45 -04:00
Dan dd34b6182b Undoing mistakes from yesterday and today. 2022-09-23 14:32:25 -04:00
Dan bd9d530a50 prep for release. 2022-09-21 13:44:10 -04:00
Dan a2824cb8ec A little more clean up of code and examples. 2022-09-21 09:10:34 -04:00
Dan 00c9b7638a Moving file operations into a seperate javscript file to help clean up the example. 2022-09-20 16:18:59 -04:00
jasquat cfb2badc72 remove all related messageRefs when removing a message 2022-09-20 09:35:58 -04:00
burnettk 4ce085017d Merge remote-tracking branch 'origin/main' into feature/script_unit_tests 2022-09-19 14:05:18 -04:00
jasquat 1f86a459eb show placeholder help message if no correlation keys exist when editing a property w/ burnettk 2022-09-19 11:17:56 -04:00
jasquat 5b155c040f update the prop panel when selecting a correlation key for a property w/ burnettk 2022-09-19 11:04:30 -04:00
jasquat 4b377a80aa started adding tests 2022-09-15 14:00:47 -04:00
jasquat 9926fb900f unit tests can be added and deleted from script tasks w/ burnettk 2022-09-12 17:14:26 -04:00
jasquat 58e3e7c158 some initial work to support script unit tests w/ burnettk 2022-09-12 15:31:01 -04:00
jasquat a9196834ff some minor cleanup w/ burnettk cullerton 2022-09-08 16:23:06 -04:00
jasquat c4f46a4d52 added support for call activities w/ burnettk cullerton 2022-09-06 15:43:04 -04:00
Dan 44e3680df8 fixing tests. 2022-09-06 13:06:11 -04:00
jasquat 1b7973ade5 fixed setting updating message properties and removed service_tasks since that is handled as an extension now 2022-09-02 14:35:21 -04:00
jasquat 4e68e61781 added ability to add instructions to manual task w/ burnettk 2022-09-01 17:34:32 -04:00
jasquat e17c9c8d01 sort service task lists w/ burnettk 2022-08-31 17:10:58 -04:00
jasquat 7ea8891f5c use id instead of name for service task parameters w/ burnettk 2022-08-31 12:41:49 -04:00
jasquat 70d7ae8491 store the service task parameter values so we can remember when switching between operators w/ burnettk 2022-08-31 12:23:53 -04:00
jasquat f89104742b a little refactor for service tasks w/ burnettk 2022-08-31 12:06:53 -04:00
jasquat 8407ead54b we can add service operator from scratch as well w/ burnettk 2022-08-31 11:55:01 -04:00
jasquat 2f04b9a172 we can update the service task operator w/ burnettk 2022-08-31 11:51:27 -04:00
jasquat 0208ee7dfb we can modify the service task parameter value w/ burnettk 2022-08-31 11:05:27 -04:00
jasquat d3598f39da call the group items from the serve properties file w/ burnettk 2022-08-30 17:31:52 -04:00
jasquat bdeb584485 some support to communicate service tasks with the app using the event bus w/ burnettk 2022-08-30 17:04:31 -04:00
jasquat 2a15c5e004 use index in property names and not a value that could change to avoid losing focus when typing 2022-08-26 08:57:35 -04:00
jasquat 5ac68f8e52 we can add and update condition expressions w/ burnettk jbirddog 2022-08-25 12:45:08 -04:00
jasquat ca2cd90e70 Merge remote-tracking branch 'origin/main' into feature/gateway_condition_expressions 2022-08-25 12:25:21 -04:00
jasquat c6d4d300c3 do not show properties in dropdown that are already associated with the message w/ burnettk jbirddog 2022-08-25 12:19:19 -04:00
jasquat aa866412d8 we can add and remove properties from messages w/ burnettk 2022-08-25 11:23:05 -04:00
burnettk 880fdf75ce simplify one-liner 2022-08-24 22:29:24 -04:00
jasquat fcd6bd8638 we can select a property for message w/ burnettk cullerton 2022-08-24 18:17:03 -04:00
jasquat cab4fb10fc we can remove correlation properties w/ burnettk cullerton 2022-08-24 17:33:04 -04:00
jasquat 60e515f868 we can add correlation properties w/ burnettk cullerton 2022-08-24 17:27:49 -04:00
jasquat 22cb81feee allow assigning keys to properties w/ burnettk cullerton 2022-08-24 15:59:08 -04:00
jasquat a6cb4e2aaa we can remove correlation keys w/ burnettk cullerton 2022-08-24 12:38:47 -04:00
jasquat 51aa461a04 we can delete messages w/ burnettk cullerton 2022-08-24 12:22:41 -04:00
jasquat feb1d64a5a added ability to create new messages w/ burnettk cullerton 2022-08-24 12:04:47 -04:00
jasquat 5ecb49e9f5 some initial work to support adding condition expressions to gateway 2022-08-24 09:33:06 -04:00
jasquat 125f4c2716 merged in main and resolved conflicts w/ burnettk cullerton 2022-08-23 16:44:20 -04:00
burnettk c242f687f1 update name based on feedback 2022-08-23 14:06:12 -04:00
burnettk 9afa58257f use xml element body rather than attribute for business rule task since that is more conventional 2022-08-22 18:31:35 -04:00
jasquat 85c2e03b88 correlation key names can be edited w/ burnettk cullerton 2022-08-17 16:01:33 -04:00
jasquat f5ce011f50 added ability to add new correlation keys w/ burnettk cullerton 2022-08-17 15:04:14 -04:00
jasquat cdde899f2e renamed message correlation array to correlation properties w/ burnettk cullerton 2022-08-17 14:24:37 -04:00
jasquat 857226f660 added basic message bpmn w/ burnettk cullerton 2022-08-17 14:09:39 -04:00
burnettk b1e98dc719 avoid fetching favicon that does not exist for this test site 2022-08-17 14:08:20 -04:00
jasquat 797886a401 disable setting variable payload if a message is not selected w/ burnettk cullerton 2022-08-17 14:05:59 -04:00
jasquat 1c5e0630ee we can set message variable w/ burnettk cullerton 2022-08-17 13:05:46 -04:00
jasquat 395004c696 added message variable but need to fix setting it and payload w/ burnettk cullerton 2022-08-17 12:55:14 -04:00
jasquat 15dce19da0 display message info for only message throw events and send tasks w/ burnettk cullerton 2022-08-16 16:41:37 -04:00
jasquat 123e4301c7 display message correlations for throw events w/ burnettk cullerton 2022-08-16 16:21:30 -04:00
jasquat cac15d7b5f throw event can show payload as well w/ burnettk cullerton 2022-08-16 16:11:46 -04:00
jasquat 501519e864 throw events can set meesages w/ burnettk cullerton 2022-08-16 16:00:53 -04:00
jasquat 66884b3706 remove camunda message from throw events w/ burnettk cullerton 2022-08-16 15:11:35 -04:00
jasquat c6af750012 fixed getting a send task without a message selected w/ burnettk cullerton 2022-08-16 14:30:45 -04:00
jasquat 9471a6b7bd displaying a simple entry for collaboration keys w/ burnettk cullerton 2022-08-16 14:17:55 -04:00
jasquat c31d85b81c some correlation keys are displaying in the collaboration prop panel w/ burnettk cullerton 2022-08-16 13:02:14 -04:00
mike cullerton 04175a7516 Committing to share w/the machine 2022-08-16 11:11:16 -04:00
mike cullerton 265191220c Display expression instead of name 2022-08-12 17:02:15 -04:00
Dan 9b57e49695 get mesage correlation array working 2022-08-12 16:02:59 -04:00
mike cullerton 20e32f2060 Commit for Dan to play with 2022-08-12 15:46:53 -04:00
mike cullerton 9bc92b54f6 include correlationProperty id (the key) with the expression 2022-08-12 13:59:35 -04:00
mike cullerton f0d29750d8 Fix getMessagePayloadObject to use new location of messagePayload 2022-08-12 12:51:39 -04:00
mike cullerton d5777c53ea cleanup wording 2022-08-11 14:30:14 -04:00
mike cullerton df606f2feb message correlations start 2022-08-11 14:27:42 -04:00
jasquat 89436f3e9c send task can edit payload w/ cullerton 2022-08-09 12:26:52 -04:00
jasquat 069cb405a0 we can set values on the send task now w/ cullerton 2022-08-09 11:22:08 -04:00
mike cullerton 6cf70d5eaf start message select get and set methods 2022-08-09 10:19:29 -04:00
Dan 098a9cd326 adding the ability to see a list of messages that can be associated with a Send Task. (wip!) 2022-08-08 16:08:44 -04:00
jasquat f4ed179c84 display correlation property name w/ cullerton 2022-08-05 16:05:30 -04:00
jasquat 016515c85f we can display correlation keys w/ cullerton 2022-08-05 14:57:30 -04:00
jasquat d1b336ea36 ignoring some react lints for now 2022-08-05 09:46:13 -04:00
jasquat defcc1f191 added some linting stuff for vim autocorrect 2022-08-05 09:35:26 -04:00
jasquat 17c59d8939 the message collaboration prop panel now shows 2022-08-04 17:26:39 -04:00
Dan 8b3ee43232 work in progress, adding collaboration properties panel. 2022-08-04 16:38:40 -04:00
Dan c73cff8a63 refactor - just reorganizing the properties panel so it is chunked under different topic areas rather than all in one giant file. 2022-08-04 15:57:15 -04:00
jasquat 34d3127d18 Merge branch 'main' of github.com:sartography/bpmn-js-spiffworkflow 2022-07-13 16:44:01 -04:00
jasquat dcefd45dad inject eventBus into DataObjectRules w/ burnettk cullerton 2022-07-13 16:43:57 -04:00
Dan 6d2918b2a2 When a data object is removed, change the name of it's Data References to "???" 2022-07-13 15:29:58 -04:00
Dan ec0c6ab905 Provide a Data Object editor for Participants as well as Processes.
Added a DataObjectRenderer that will change DataObjectReferences to red if they are not connected to a Data Object.
2022-07-13 15:23:45 -04:00
Dan c680eeafd5 Merge branch 'main' of github.com:sartography/bpmn-js-spiffworkflow into main 2022-07-13 11:49:33 -04:00
Dan cf52f56ac6 Minor fix 2022-07-13 11:49:29 -04:00
jasquat bb3968e038 place property tags under properties in xml - tests are not fully working yet w/ burnettk 2022-07-13 10:52:43 -04:00
jasquat 5e1e1a88fb added called decision tag to the properties panel for business rules 2022-07-12 17:51:23 -04:00
Dan b9bfbca159 So saying tagAlias: lowercase is very bad idea. 2022-07-12 16:30:45 -04:00
jasquat 1198f2bae5 Merge remote-tracking branch 'origin/main' into chore/bug_fixes 2022-07-12 12:15:20 -04:00
jasquat 9f819eff74 changed JSONSchema and UISchema to be more descriptive w/ burnettk 2022-07-12 11:59:03 -04:00
Dan 1874c5b689 Some minor bug fixes that needed squashing:
1. When you rename a DataObject in the properties panel for a process, the labels of all the references should update.
2. Sub-processes should have their own independent list of data objects in the properties panel.
2022-07-11 17:29:41 -04:00
Dan 4441e2894a fixing a bug in the Extension Text Input.
Adding the ability to upload a BPMN file to test out in the default index.html
2022-07-11 13:57:12 -04:00
Dan 1fee4a6dfc Merge branch 'feature/prescript_postscript' into feature/user_forms 2022-07-11 13:11:17 -04:00
Dan e365124b49 We had findDataObject(s) methods all over the place, so consolidating this logic. 2022-07-11 13:09:25 -04:00
Dan 3f2ae54f62 1. Fixed the URI for spifflworkflow
2. When injecting something, I realized how important having lowercase names in the imports can be. So changed the index.js files to refer to lower case names always.
3. Added a test for the DataObjectRules.
2022-07-11 13:01:50 -04:00
Dan 5774d030f1 fixing a few names, adding some comments, correcting some comments. 2022-07-11 11:51:23 -04:00
Dan 35dde7f46d Spiff Specific aspects should include SpiffWorkflow in the name, in the properties pannel." 2022-07-11 11:44:01 -04:00
Dan 2d6f24bb38 Merge branch 'feature/prescript_postscript' of github.com:sartography/bpmn-js-spiffworkflow into feature/prescript_postscript 2022-07-11 11:27:29 -04:00
Dan 270a3deb59 cleaning up the naming of groups and sections so it is clear when we are doing thing internal to BPMN, vs adding SpiffWorkflow specific items. 2022-07-11 11:27:16 -04:00
Dan 291a093a38 Adding the ability to set the form files for React Json Forms, using a very generic properties setting in the Spiffworkflow extensions.
Moved the test bpmn files into a sub-directory to keep things a little cleaner.
2022-07-11 11:00:19 -04:00
burnettk 525bfa0695 fix typo 2022-07-09 00:21:34 -04:00
Dan ea56f270bc fixing a bug that was preventing the dropping of components in some situtations.
Adding new data object rules that will prevent you from moving a DataObject from one process to a sub-process.
Fixing the Selection of Data Objects to properly use the command stack.
2022-07-08 10:30:21 -04:00
Dan d20c7e8677 Don't create new data objects each time you add a data reference, rather, use the first data object you can find. If no data objects exist, add one. 2022-07-07 11:20:43 -04:00
Dan a582fa6b55 Ability to add and delete data objects (not just data object references)
Adding and removing these objects through the event bus / command stack to enable undo.
2022-07-06 13:25:53 -04:00
Dan 13a00d1762 fixes to the Data Object model - some serious cleanup of names so things make a little more sense. 2022-07-05 13:44:02 -04:00
Dan 4c413c4907 merged reverse of pre/post scripts
updated spiffworkflow moddle to use "script" rather than "text" - to match up with bpmn.io's script task.
Added some ability to change what a DataObjectReference, references.  But more work needed here.
Fixed a bug in the script task that prevented you from writing text in that script object.
2022-07-05 10:27:38 -04:00
Dan Funk b9ed7363f3
Merge pull request #5 from sartography/fix/reverse-pre-post-tags
fix reverse pre/postscript tags
2022-07-05 10:23:14 -04:00
Dan 2527bf2823 Added ability to select which data object is associated with a data object reference. 2022-07-01 13:01:52 -04:00
Elizabeth Esswein 97bd3e9abb fix reverse pre/postscript tags 2022-06-30 17:07:06 -04:00
Dan 84be279476 More test refactoring - lots of crazy hell going on in helpers.js -- but the actual tests are now very clean and simple, and should be easy to extend and replicate as this thing grows. 2022-06-30 14:02:38 -04:00