Create a simple java script
$30-250 USD
Pagado a la entrega
I use a java webapp called Cyclos. It is a banking software with java library.
The software have a built-in schedule task for run custom script.
Every user in the system have 2 accounts. I need a script that get every user in the system and for each user, get all the transaction made until 14 days ago (if today is 14/05/2015 then the script need to get all transactions until 01/05/2015), get the total amount of the filter transactions and make a new tansfer of the amount between user accounts (account A to account B).
In the cyclos doc there is a lot of script examples: [login to view URL]
Script example:
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
import [login to view URL];
/**
* Provides a sample on getting the account information for a given user.
*/
public class GetAccountInformation {
public static void main(String[] args) throws Exception {
AccountService accountService = [login to view URL]().getProxy(
[login to view URL]);
// Get the accounts summary
UserLocatorVO user = new UserLocatorVO();
[login to view URL]("some-user");
List<AccountSummaryVO> summaries = [login to view URL](
user, null);
// For each account, we'll show the balances
for (AccountSummaryVO summary : summaries) {
CurrencyAmountDTO balance = [login to view URL]();
[login to view URL]("%s has balance of %.2f %s\n",
[login to view URL](),
[login to view URL](),
[login to view URL]());
// Also, search for the last 5 payments on each account
AccountHistoryQuery query = new AccountHistoryQuery();
[login to view URL](new AccountVO([login to view URL]()));
[login to view URL](5);
Page<AccountHistoryEntryVO> entries = accountService
.searchAccountHistory(query);
for (AccountHistoryEntryVO entry : entries) {
AccountVO relatedAccount = [login to view URL]();
AccountTypeVO relatedType = [login to view URL]();
AccountTypeNature relatedNature = [login to view URL]();
// The from or to...
String fromOrTo;
if (relatedNature == [login to view URL]) {
// ... might be the account type name if a system account
fromOrTo = [login to view URL]();
} else {
// ... or just the user name and login name
UserVO relatedUser = (UserVO) [login to view URL]();
fromOrTo = [login to view URL]() + " ("
+ [login to view URL]() + ")";
}
// Display the amount, which can be negative or positive
BigDecimal amount = [login to view URL]();
boolean debit = [login to view URL]([login to view URL]) < 0;
[login to view URL]("Date: %s\n", [login to view URL]());
[login to view URL]
.printf("%s: %s\n", debit ? "To" : "From", fromOrTo);
[login to view URL]("Amount: %.2f\n", [login to view URL]());
[login to view URL]();
}
[login to view URL]("**********");
}
}
}
Only pay by milestone once the project is complete.
Nº del proyecto: #7673577
Sobre el proyecto
11 freelancers están ofertando un promedio de $120 por este trabajo
I have 9+ years of exp in java j2ee hibernate spring webservices databases. Done multiple projects like this and almost proficient in design patterns..Checkout my reviews, all projects were completed successfully.
Hello, My name is Achouri Issam. I have over two years experience in Software Engineering and i have a good Knowledge with Java, JavaEE, Spring, Spring MVC, EJB,Struts2, C, C++ I see that you are looking for java d Más
Hi, I've 10+ years of experience in java/j2ee application development with databases like oracle, mysql, sybase etc. I can deliver this project on time with best quality.
I have good understand and experience in Java programming. I can help you do this in 3 days. please get in touch with me through instant messaging
Hi, I am a java developer with 5 years of experience. I can help you with your project. Please send me a message so we can discuss your requirements. Thanks.
Dear sir, I've read your requirement carefully. With 10 years experience in Java, I could be a good fit. Could you please give me more details requirements. "get the total amount of the filter transactions and [m Más
I have 10+ experience in large scale banking application design and development in Java. pls contact me for detail discussion