-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(converter): transform bpmn model into algorithms model #20
feat(converter): transform bpmn model into algorithms model #20
Conversation
c971707
to
c59575c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍
This tool start to do things!!!!
|
||
bpmnElements.getSequenceFlows().stream() | ||
.map(seqFlow -> new Edge(getId(seqFlow.getSourceRef()), getId(seqFlow.getTargetRef()))) | ||
.forEach(diagram::edge); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 easy to understand
@Test | ||
public void main_generates_svg_output_file() throws Exception { | ||
String outputPath = outputPath("A.2.0_with_diagram.bpmn.svg"); | ||
generateToSvg(inputPath("A.2.0.bpmn.xml"), outputPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ IMO splitting logic of the App in 2 would help to make theses test more readable:
- Having on one part logic to parse options of the app and read the file given
- Having in another class logic to take the content of the BPMN and outputting the layout.
We should do that at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the App class is a mess, it is a little bit better in #25
i didn't want to work on it for now, but for sure, there is a lot to improve here 😺
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just putting my though here for the next steps :). But yep! this can be merged as soon as the other is merged.
c59575c
to
a4bfc9c
Compare
I took the liberty to rebase it on master! |
Depends on #22: to get the AsciiExporter
This PR let you load a BPMN file, pass data through the algorithm and export the result to an ASCII or SVG file.
The BPMN output export will be manage in another PR as it requires extra conversion from internal model to BPMN.
Notice that this is the initial support for BPMN load, there is no management of lane or laneset. This should only work with process without such elements.
Here is the SVG render when loading the A.2.0.bpmn file from BPMN-MIWG
Covers #13