How can I change the back-end code?

Confluence User - 13 Dec, 2016

Hi,I have create a new app in the Joget Workflow Community v5,

Now I want to change the back-end code of the new app,so which file should I access ?

Does anyone have experience in this ?

I am a new user in Joget. Thanks in advance!

server

22


13 Dec, 2016
confluenceUser
confluenceUser

Hi there,

You can access the source code at Joget Workflow Source Code to go through the source.
For the app related queries, I guess you can look at AppUtil class.

Can you please be a little more specific about your use case?

Thanks!

13 Dec, 2016
confluenceUser
confluenceUser

I want to create a travel request form APP. But the hyperlink in datalist cannot asscess activity id ,So I try to change the back-end code for accessing the activity id. I have go through the Joget Workflow Source Code,now I meet a problem at step 5(Build Project)

13 Dec, 2016
confluenceUser
confluenceUser

This the Error I meet when I come to the fifth step(Build Project)

13 Dec, 2016
confluenceUser
confluenceUser

There are some JUnit test failures. Can you scroll-up to see which tests failed? Or you can try building using `mvn clean install -Dmaven.test.skip=true`. But it's better to rectify the errors. Did you configure the build to use an existing database setup?

13 Dec, 2016
confluenceUser
confluenceUser

I don't think you need to change the source code of the platform to build a travel expenses app. Did you try the one in the marketplace? https://marketplace.joget.org/jw/web/userview/mp/mpp/_/vad?id=travel-request-v1

15 Dec, 2016
confluenceUser
confluenceUser

Hi Ashutosh,For the "configure the build to use an existing database setup" can you show me some details? Thanks in advance!

15 Dec, 2016
confluenceUser
confluenceUser

This the failure I meet when I build the project.

15 Dec, 2016
confluenceUser
confluenceUser

Make sure you've created the datasource files in the wflow directory and have configured a running database instance having the initial database schema set-up. Follow the steps in https://dev.joget.org/community/display/KBv5/Joget+Workflow+Source+Code#JogetWorkflowSourceCode-4.ConfigureDatasourceforTestCase to make sure you get the required database for your build.

15 Dec, 2016
confluenceUser
confluenceUser

Hi,sorry to ask again,I follow the step four.as your recommended website. First I create a jdbc database. I have inserted the screenshot in following answer. second I wflow\app_datasource-default.properties (please kindly see the screenshot) would I must to download the wflow.zip under "C:\Users\yourusername\" Is it fix or I should change the property under joget-v5/wflow/app_datasource-default what' more for the "workflowPassword=root" part ,MySQL password is "password" ,should I use "password" instead of "root" When I finished all the prooces I mention above. But I still meet the previous problem(please see the below picture in the next answer), I think some steps may have mistakes, thank you in advance

15 Dec, 2016
confluenceUser
confluenceUser

15 Dec, 2016
confluenceUser
confluenceUser

Okay, so I believe your database credentials are root/password. You should then use this same password in workflowPassword property of the app_datasource-default.properties. These settings are used to connect to your database. You should also run the jwdb-empty.sql in your database before you try to run the build. These are the required tables & stuff that would be needed. Also it would be great if you share the exact error you're getting while building the source and not just the build reactor summary!

16 Dec, 2016
confluenceUser
confluenceUser

16 Dec, 2016
confluenceUser
confluenceUser

Hi Ashutosh,I make some screenshots about the warnings and problems when I build the project. The 10 pictures in the below another. I have no idea about these problems,thanks in advance!

16 Dec, 2016
confluenceUser
confluenceUser

Actually,I don't want to create a new project.I have already create a "One Travel Request" app in Joget Community v5(please kindly see the screenshot). So I just want to change siome code behind this app,I don't know how to do this,how can I get the back-end code of this app.

16 Dec, 2016
confluenceUser
confluenceUser

16 Dec, 2016
confluenceUser
confluenceUser

You will need to follow what Ashutosh Tripathi posted yesterday at 4:48 AM Make sure you've created the datasource files in the wflow directory and have configured a running database instance having the initial database schema set-up. Follow the steps in https://dev.joget.org/community/display/KBv5/Joget+Workflow+Source+Code#JogetWorkflowSourceCode-4.ConfigureDatasourceforTestCase to make sure you get the required database for your build.

16 Dec, 2016
confluenceUser
confluenceUser

It's not a good idea to post screenshots like this, can hardly see anything. Better to post actual output. In any case, as Walter and Ashutosh mentioned, you need to make sure your database configuration is correct before attempting to run the tests.

16 Dec, 2016
confluenceUser
confluenceUser

Okay,I try to go through the five steps again,when I come to the third step "Obtain Source Code" I meet this problem.

16 Dec, 2016
confluenceUser
confluenceUser

This is the problem I meet when I process the "Obtain Source Code" step

16 Dec, 2016
confluenceUser
confluenceUser

Please help me why I cannot clone the source code in Git(Please see the screenshot in answer).Thanks in advance!

16 Dec, 2016
confluenceUser
confluenceUser

But When I run this code in git-cmd,it works Does it have the same effect?

16 Dec, 2016
confluenceUser
confluenceUser

HI,Walter I have tried to do the "ConfigureDatasourcefor TestCase" ButI fail,I show the problems I meet at yesterday 9:26AM, I really follow the step. But I donnot know which process I wrong. Thanks in advance!

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print