Hi,
I found this article https://dzone.com/articles/activeobjects-easier-java-orm which describes how to put some business logic in an AO. The example is
@Implementation(CompanyImpl.class) public interface Company extends Entity { // ... } public class CompanyImpl { private Company company; public CompanyImpl(Company company) { this.company = company; } public void setName(String name) { company.setName(name); name = name.trim(); if (name.length() > 4) { company.setTickerSymbol(name.substring(0, 4).toUpperCase()); } else { company.setTickerSymbol(name.toUpperCase()); } } }
in which Company is an Active Object that contains getName(..) and setName(..). Should this also work with Atlassian Active Objects? Is there another way how I can put some business logic in an Atlassian AO?
Thanks!
Yes . It should work with AO.
You can refer this https://community.atlassian.com/t5/Answers-Developer-Questions/Active-Objects-how-to-get-sorted-entities/qaq-p/483380
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.