osWorkflow-1——osWorkflow official website example deployment startup simple use (version: OSWorkflow-2.8.0)
1. Preface - Preparation
1.1 Download relevant information
- First of all, this official website is no longer maintained, so it is almost impossible to obtain information from the official website, so why bother to spend time researching it? Why? Those who ask why will not see this article. Don’t ask me why, it is reasonable if it exists! Although there is no information on the official website, there is still a lot of information available for reference on the Internet. The following preparations need to be done. My information was also downloaded from csdn. Finally, I selected 2 that have great reference value to share:
-
Download reference manual, English version, but of great reference value, the download address is as follows:
Foreign OSWorkflow books, a good book for Java developers and architects!.
-
Download source code, regarding the source code, I downloaded this one, because I think they are similar, so there is no need to choose. If it doesn’t work, you can just debug it yourself.
-
The source code download address is as follows:
-
I use this because my friend has documentation, so he has actually practiced it, the source code is reliable, and the documentation reference address is:
Detailed explanation of OSWorkflow official example deployment and operation.
-
-
- I also put the two files (reference documentation + source code package) on my own network disk. You can use them if needed.Go to the network disk to download directly:
- Link:
https://pan.baidu.com/s/1yYpa86tOR2jQf2vpwe08rw?pwd=bmzm
- Copy the extraction code:
bmzm
- Link:
1.2 Install translation plug-in
- Because the above reference book is in English, friends who are not good at English may need translation tools, but I don’t know how many tools are useful for directly translating PDFs, but here is one I feel good about, you can try it:
- The translation effect is as follows (original text on the left, translation on the right):
- For the installation and use of translation plug-ins, please read the following article:
Recommend several practical Google browser plug-ins (various translations) - to achieve barrier-free reading in the AI era Various English websites.
- The translation effect is as follows (original text on the left, translation on the right):
2. Start working on the project
2.1 Unzip the .zip file
- Extract the downloaded
.zip
file directly:
2.2 Simple test (put the war package into tomcat)
- After decompression, there is a war package file inside, which can be directly placed in the webapp directory under your tomcat and then accessed directly, as follows:
- Then start your tomcat service and access it as follows:
http://localhost:8080/osworkflow-2.8.0-example/
- You can log in according to the manual, but I get an error when logging in here. This project should be made by a friend who uploaded the source code based on the official source code. It may be a packaging problem or other problems. Don’t waste your time guessing. Okay, just do it yourself. So, if you want to study, we still have to research the project, at least start running it locally!
2.3 Import the project into the IDE and configure the project running environment
2.3.1 Import the project into Eclipse
-
I haven’t used Eclipse for a long time, and I really can’t arouse the interest in using Eclipse. Friends who use Eclipse can refer to the article of the friend who uploaded this source code package. I won’t go into details here:
Detailed explanation of OSWorkflow official example deployment and operation.
2.3.2 Import project into idea
-
If you use idea, this is also very easy. For detailed steps, you can read the article below. There is nothing special about importing this project, just follow the steps.The article address is as follows:
Import the javaweb project of eclipse in idea - tomact service (nanny level).
-
Just take a screenshot to see the configuration:
-
Okay, the next step is to configure Tomcat
2.4 Start the project
2.4.1 Pay attention to tomcat port, etc.
- Because I have started a tomcat10 locally, occupying 8080, so remember to change the port, as follows:
- Access path, as short as possible:
2.4.2 Start the project
- After the above configuration is completed, it can be started. Witness the miracle moment, start access:
- After startup, it will automatically jump to the browser to access:
http://localhost:8082/osw/
2.5 Simple click - page
2.5.1 create an account
- as follows:
2.5.2 User login (don’t log in with the user you created for now!!!!)
2.5.2.1 Use the user you created to report an error! ! !
- After logging in with the user I created, I get an error when creating the process! ! ! Don't use it yet, you can check to log in using the user you just created, as follows:
- The interface after logging in is as follows:
- Clicking "New Workflow" (
New Workflow
) creates a new workflow instance and stores it in memory, so don't be afraid to experiment. - I'm not afraid. What's embarrassing is that I reported an error.
- The error is: Unable to initialize this workflow
You are restricted from initializing this workflow
- No problem using the loaded test user, keep reading!
2.5.2.2 Load user and log in
- Load user test
- Use the test user to log in (the prerequisite is loaded, otherwise this user is not in the cache and login is not allowed)
- After logging in, you can create a new process, please continue...
2.5.3 New Workflow
- Click
New Workflow
to create a workflow:
- After that, click on the anchor point (#) to view the following page:
- You can also enter a query
- I created it 3 times here, click
My Underway Workflows
to view my ongoing workflow:
- Click
Viw Live Graph
to view detailed steps:
- Click
Finish First Draft
to complete the first step in the process:
- View the detailed process here:
Okay, that’s it for the brief introduction, you can try the rest by yourself!