Create a simple java script

Cerrado Publicado May 14, 2015 Pagado a la entrega
Cerrado 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.

Java

Nº del proyecto: #7673577

Sobre el proyecto

11 propuestas Proyecto remoto Activo Jun 20, 2015

11 freelancers están ofertando un promedio de $120 por este trabajo

lovinagarwal21

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.

$76 USD en 3 días
(132 comentarios)
7.9
quanlitysource

i am experiment java developer

$138 USD en 2 días
(88 comentarios)
5.7
achouriissam

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

$80 USD en 3 días
(16 comentarios)
4.8
aoden

Đề xuất vẫn chưa được gửi

$150 USD en 7 días
(26 comentarios)
3.9
birendrakumarvw

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.

$155 USD en 3 días
(2 comentarios)
3.9
neo272

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

$67 USD en 3 días
(20 comentarios)
3.8
juanzapico

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.

$90 USD en 3 días
(10 comentarios)
3.4
prolinkerx

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

$100 USD en 3 días
(2 comentarios)
2.3
Pektro

A proposal has not yet been provided

$155 USD en 3 días
(0 comentarios)
0.0
hongmanbao

I have 10+ experience in large scale banking application design and development in Java. pls contact me for detail discussion

$277 USD en 7 días
(0 comentarios)
0.0
diogocunha

A proposal has not yet been provided

$35 USD en 1 día
(0 comentarios)
0.0