add license, update readme, add more docs in the file.

This commit is contained in:
Dan 2022-06-07 15:30:55 -04:00
parent 886daf9363
commit 8a244e5dc9
3 changed files with 27 additions and 11 deletions

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Sartography
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -36,7 +36,7 @@ import IoModule from 'bpmn-js-spiffworkflow/lib/io';
var bpmnJS = new BpmnModeler({
additionalModules: [
IoModule
spiffworkflow
]
});
```

View File

@ -12,6 +12,11 @@ var HIGH_PRIORITY = 1500;
* the diagram, it assures that a place exists for the new Data object to go, and it places it there.
* There were a number of paces where I had to patch things in to get it to work correctly:
* * Create a InputOutputSpecification on the BPMN Moddle if it doesn't exist.
* * Correctly connect a new DI (display element in BPMN xml) for the input/output element.
* * Create a new DataInput/DataOutput Object (maybe incorrectly)
* Also handles delete, where it removes the objects from the BPMN Moddle (both the actual input/output and the DI)
* fixme: Assure that we need to create a new DataInput object here, already in IoPalette's call to ElementFactory
* fixme: If all inputs and outputs are deleted, remove the InputOutputSpecification completely.
*/
export default class IoInterceptor extends CommandInterceptor {
constructor(eventBus, bpmnFactory, bpmnUpdater) {
@ -31,7 +36,6 @@ export default class IoInterceptor extends CommandInterceptor {
dataIO.$parent = ioSpec;
di.businessObject = dataIO;
di.bpmnElement = dataIO;
context.shape.width = 36; // Default width is wrong.
di.id = dataIO.id + 'DI';
bpmnUpdater.updateBounds(context.shape);
if (type == 'bpmn:DataInput') {
@ -95,15 +99,6 @@ function assureIOSpecificationExists(process, bpmnFactory) {
});
ioSpecification.$parent = process;
process.ioSpecification = ioSpecification;
/*
let inputSet = bpmnFactory.create('bpmn:InputSet', {
dataInputRefs: [],
name: 'Inputs'
});
inputSet.$parent = ioSpecification;
*/
// collectionAdd(ioSpecification.get('inputSets'), inputSet);
}
return ioSpecification;
}