Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Is there a way to programmatically create BPMN 2.0 via a Java API?
I'm aware that I can use a graphical modeling tool or create the BPMN XML by hand but I'm looking for a way to create it dynamically at run-time.
In my case, the BPMN will be executed through jBPM. The jBPM docs say you can use their API to define processes but they don't recommend its use "to shield yourself from internal APIs". It would be great if there were an API that wasn't tied to a specific vendor.
EasyBPMN is one option. There is no "vendor neutral" way in that Java doesn't have a standard API for the concept (unlike, say generic XML manipulation), but this would be an option which would be more portable between workflow engines and modeling tools.
the whole idea about the BPMN2 spec is to be vendor neutral, inside jBPM5 you have the fluent API that in some way allow you to create BPMN2 models that you can export. I'm not sure if it's up-to-date with the latest features that are supported in the XML but I'm pretty sure that you can create your own processes with it.
Cheers
BPMN2 model is based on EMF model (org.eclipse.bpmn2 project, model folder, BPMN20.ecore file). You can use EMF Java Api to create, read or modify BPMN2 models.
You can use the library from activiti.
here there's a blog post of one of the people behind activiti.
I did a compiler that modifies a process based on this and it works.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
We are at the starting point of a GUI focused webapplication. Business logic will be in the background. The web GUI will have multiple languages and will also contain complex charts. Chart data will be calculated via the webservice in the background, accessed via REST interface. All input fields should get validated on entering new values. The application must also run well on tablets. What is the best Java Scripts Frameworks or any combination of framework recommanded for this approach. Is Dojo the choice or better GWT? What is your experiance, other better recommendations?
Too many possible answers. Personally I like GWT. It's very flexible. But also I'm a Java developer and I don't like Javascript, and GWT saves you (mostly) from the pain and torture of writing Javascript.
Anton,
Really a matter of choice and personal taste, however, if you want to adopt a mvvm approach where your client objects are syncronised automatically, I'd suggest knockoutjs. This framework is eveolving daily and takes a remarkable amount of grunt out of complex work. Take a wander over to it:
http://knockoutjs.com/
Quote from the page:
By encapsulating data and behavior into a view model, you get a clean, extensible foundation on which to build sophisticated UIs without getting lost in a tangle of event handlers and manual DOM updates.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a java framework for handling RDF data in a graph database. The main purpose is to manage several versions of a RDF graph and all versions must be accessible all the time. So version tracking is an important feature I need. Is there any tool that supports this out of the box without to develop it from scratch?
The only tool I found related to this topic is OpenAnzo, but the website is no longer available.
To add a timestamp to the nodes should not be the problem, but also an easy access via SPARQL or another query language should be possible.
You might be interested in the Alibaba Auditing Repository and Auditing SAIL, which are Sesame extensions for RDF data change tracking and provenance (disclosure: I'm on the Sesame development team).
I don't know of any existing database solutions which provide versioning out of the box. Your best bet is to work on a custom scheme for your application over an existing database. For example, you could put different versions of the data into named graphs and use those as the versioning structure, then using from/from named in your query be able to query some or all different versions of your data. You could also try and works something up with reification which would give similar results.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I need tools to:
Conveniently parse Java source code and easily access given elements.
Easily generate source code files, to easily transform data structures into code
Any good tips, libraries, frameworks, tools? Thank you for help.
If you need to parse existing source code, use JavaParser. It gives you visitor-based access to the AST. You can write new code, but many things are a pain (e.g. referencing other classes)
If you need to generate source code use CodeModel. It lets you programmatically create classes, packages, methods etc, and it's very easy to use. However, I don't think it can import existing code.
Both are pretty awesome in their respective domains.
Since Java 6, the compiler has an API included in the JDK. Through it you can access the results of the Java parser through the javax.lang.model APIs. The same functionality was present with JDK5 in the form of the Mirror API. There's a good introductory article here.
The best code generation tool I've seen is CodeModel. It has a very simple API and can generate multiple Java source files at once.
Our DMS Software Reengineering Toolkit and its Java Front End can do this. They are designed to enable the construction of custom analyzers and code generators.
DMS provides generic parsing, abstract-syntax tree (with comments) and symbol table building, tree navigation/inspection/modification facilities, and the ability to regenerate the complete source code from the modified tree. Additional facilities includes source-to-source transformation rules ("if you see this syntax, replace it with that syntax"), and patterns (used to build or recognize subtree), attribute grammar evaluators, control and data flow analysis, and call-graph construction. The Java Front End specializes DMS to do all of this for Java 1.4-1.6 with 1.7 nearby.
(EDIT May 2016: Now handles Java 1.8)
DMS is also designed to handle scale: it is often used to process many compilation-units (source files) at the same time, enabling analysis and transformations that cross file boundaries. It can also handle multiple languages at the same time; DMS has front ends for a wide variety of languages.
Check out Antlr. One of its examples is a Java grammar.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm interested in open-source Java/C/C++ framework for pipes-and-filters (like described in that book) paradigm.
Can you recommend some?
EDIT: I'm looking for as much "pure" (or lightweight) frameworks as possible: frameworks which encourage programming in "pipes-and-filters" technique, without reliance on any standards, such as XML or JMS, but on language only.
If you look at chapter 6 of the book you link to, you'll notice it has samples for JMS. A quick visit at Google leads us to a list of open source implementations of JMS: http://java-source.net/open-source/jms
I know you asked about Java/C/C++, but thought I'd add:
In .NET, the WCF Channel model works like this.
W3C XML Pipline spec, XProc is kind of pipes and filters.
There's a java implementation here. XProc comprises a number of processors (XSLT transforms, XPath selects, serializing/deserializing to file) i.e. filters - and these are connected by ports carrying XML data - basically pipes.
I just discovered Spring integration framework. Looks like the sample of what I was asking for.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
do you know any good reverse engineering tool that creates UML diagrams from Java code and Hibernate mappings across multiple projects, in Eclipse or Maven (not in the Javadoc)?
Thanks
Visual Paradigm creates recursively class diagramms from a source tree (navigatable) multiple projects are handled by adding muliple sources.
Db reengineering isn't that strong on large db schemas.
I doubt that Paradigm has support for hibernate mappings.
It sounds little bit like you're trying to catch up design after things get complicated ;-)
Try also Eclipse MoDisco, although it has no support for Hibernate as far as I know, but it allows extensible reverse engineering and is built on top of the EMF project.
Hibernate is possible just type "jpa annotation uml" into google and select one of the tool.
Standard Java without annotation is supported by almost all UML tools such RSA, MAgicDraw, eUML, Omondo etc...