WstępStrona zawiera dokładna instrukcję tworzenia projektu wdrożeniowego, bazującego na systemie PlusWorkflow 3.1.
WymaganiaŚrodowisko przygotowane zgodnie z instrukcją zawartą na stronie:
Utworzenie projektu Maven w środowisku EclipsePierwszym krokiem jest stworzenie nowego projektu typu Maven. W tym celu należy wywołać menu File -> New -> Project: W nowo otwartym oknie zaznaczamy opcję "Create a simple project..." i przechodzimy do następnej strony klawiszem Next. Teraz należy nadać odpowiednie atrybuty projektu.
Klikamy przycisk Finish aby zakończyć tworzenie projektu. Konfiguracja pliku pom.xmlStworzony projekt powinien mieć następującą strukturę: Plik pom.xml zawiera podstawowe atrybuty projektu (nazwa, wersja) oraz definicję wymaganych zależności. Jedyną wymaganą zależnością jest com.suncode:plusworkflow-web:war:
Komunikacja z systemem PlusWorkflow musi odbywać się za pomocą Java API. W tym celu musimy zdefiniować odpowiednią zależność, co pozwoli nam na używanie klas API w naszym projekcie:
Dodanie projektu do serweraProjekt dodajemy do naszego serwera Tomcat - przechodzimy do zakładki Servers, a następnie klikamy prawym przyciskiem myszy na serwer i wybieramy Add and Remove Przenosimy nowy projekt na prawą stronę, po czym klikamy przycisk Finish. W zakładce Project Explorer klikamy prawym przyciskiem myszy na nasz projekt. Z podręcznego menu wybieramy Maven -> Update project... W nowym oknie zaznaczamy Force Update of Snapshots/Releases po czym klikamy OK. Uruchomienie projektuAby uruchomić projekt zakładce Servers wybieramy serwer i klikamy Start lub Debug FAQZbiór najczęściej zadawanych pytań: 1. Eclipse nie widzi klasy DBManagement:Wszystkie zależności projektu zdefiniowane są w pliku pom.xml. Należy dowiedzieć się, z jakiego moduły pochodzi interesująca nas klasa i zadeklarować odpowiednią zależność. W przypadku klasy DBManagement jest to:
2. Eclipse nie widzi klas z CUF:Wszystkie zależności projektu zdefiniowane są w pliku pom.xml. Należy dowiedzieć się, z jakiego moduły pochodzi interesująca nas klasa i zadeklarować odpowiednią zależność. W przypadku klas c CUF jest to:
|
IntroductionThis page contains detailed instructions for creating an implementation project based on PlusWorkflow 3.1.
RequirementsEnvironment prepared according to the instructions on the page:
Creating a Maven project in the Eclipse environmentThe first step is to create a new Maven project. To do this, call the File -> New -> Project menu: In the newly opened window, select "Create a simple project..." and move to the next page by clicking Next. Now you need to give the appropriate attributes to the project.
Click the Finish button to finish creating the project. Configuration of pom.xml fileThe created project should have the following structure: The pom.xml file contains the basic attributes of the project (name, version) and the definition of the required dependencies. The only required dependency is com.suncode:plusworkflow-web:war:
Communication with the PlusWorkflow system must be done by using the Java API. For this, you need to define the appropriate dependency, which allows you to use API classes in your project:
Adding a project to a serverAdd the project to the Tomcat server - go to the Servers tab, then right-click on the server and select Add and Remove. Move the new project to the right side, then click Finish. In the Project Explorer tab, right-click on the project. From the pop-up menu, select Maven -> Update project.... In the new window, select Force Update of Snapshots/Releases then click OK. Starting the projectTo start the project on the Servers tab, select the server and click Start or Debug. FAQ1. Eclipse does not see the DBManagement class:All project dependencies are defined in the pom.xml file. You need to find out which module the class you are interested in comes from and declare the corresponding dependency. In the case of the DBManagement class, this is:
2. Eclipse can't see classes with CUF:All project dependencies are defined in the pom.xml file. It is necessary to find out which module the class of interest comes from and declare the corresponding dependency. In the case of c CUF classes, this is:
|