Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo crud

A CRUD using jBPM

Here's one interesting thing: everything gets better with jBPM. Even a CRUD (which does not exactly represent a business process) can be quickly created and you can have a much better overview of what's going on without having to read any line of code. In this post, I am going to show you a CRUD I created using the JPA Work Item Handler from my last post . The CRUD business process The CRUD actions are based on an Object of type Person created using the Data Modeller tool: The object used in our CRUD. It was created using the data modeller  The business process to create the CRUD make use of human tasks to get users input. A human task is responsible for creating an application menu for the user, the other tasks read users provided data. See the process diagram: A jBPM CRUD Diagram The box with text "Select Contact" is a reusable subprocess which goal is let users select one of the existing contacts (Person): User can select a contact fr...

JavaFX CRUD: The Client Side

Beta post In my last post I showed a JEE application to make CRUD operation on a domain object called Framework, which represents an application framework. In this post we will show the client part, the technologies that were used and how simple is to create JavaFX applications using FXML and pure Java. The view I had the honor of being one of the first "bloggers" to test JavaFX Scene Builder . Using this tool you can drag and drop interface elements and a XML will be generated and it has the .fxml extension. This FXML can be loaded in a JavaFX application and the view elements can be inject in a controller class using the @FXML annotation. Screenshots from the application are in a previous post . Then, in Java side, we have a class called  CrudframeworksPresenter . This class is linked with the FXML and it the presenter, which updates the view and handle the CRUD actions. See the FXML source code first line where I refer to the controller class. I tell the con...

Testing Afterburner.fx in a CRUD Application using JavaFX and FXML

It's been a few months without any new post on this blog :( I was preparing an application using Infinispan, NoSQL and JavaFX and unfortunately I lost my data in the disc... That would an epic post! In this post I'm going to show you a good old CRUD using FXML, JavaFX and the recent framework called Afterburner.fx , created by Adam Bien . About Afterburner.fx   Afterburner.fx is a minimalistic (2 classes) JavaFX MVP framework based on Convention over Configuration. It's not me saying this, it's on afterburner.fx web page. What I can say I like the idea of this simple framework. I can say that it will not solve all issues, but it brings DI and the conventions saves  from writing repetitive code. What is FXML? It's a declarative way to build JavaFX interfaces using XML. FXMLs declare elements using XML and you can relate it to a controller that will handle the view for you. The controller can have the view elements injected where you will be able to retrie...