Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
16 replies
Subscribers
5 subscribers
Views
6858 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, I'm trying to add a custom data type to my smart service. Wit
olivierl
over 12 years ago
Hi,
I'm trying to add a custom data type to my smart service. Without CDT declaration, I can install the smart service but if I add it, I get this message in the application-server.log :
com.atlassian.plugin.PluginException: com.appiancorp.type.config.pojo.PojoTypeImportException: Could not generate XSDs for the classes [class com.solypse.etde.etde_import]. Cause: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions (APNX-1-4166-001)
I just added the "netbean" cdt example, it's my first test and I'm not so good with Java so excuse me if the answer is obvious.
I'm using Appian 7 and jre 1.6
Thanks,
Olivier
appian-plugin.xml :
---------------------------------
...
<datatype key="et_importDTin" name="Et Import Data Type">
<class>com.solse.et.et_import</class>
</datatype>
<smart-service name="et_import" key="et_import"
class="com.solse.et.et_import" />
</appian-plugin>
---------------------...
OriginalPostID-57953
OriginalPostID-57953
Discussion posts and replies are publicly visible
Parents
0
Michael Chirlin
Appian Employee
over 12 years ago
I was more saying that it is simpler to pass primitives into a smart service, do some calculations, return those primitives, and then assign the result to fields in a cdt - if that is what you are trying to do. Genenrally, creating CDT's with java is not really necessary unless you are building in a lot of functionality into the class - not just using the class as a holder for variables.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Michael Chirlin
Appian Employee
over 12 years ago
I was more saying that it is simpler to pass primitives into a smart service, do some calculations, return those primitives, and then assign the result to fields in a cdt - if that is what you are trying to do. Genenrally, creating CDT's with java is not really necessary unless you are building in a lot of functionality into the class - not just using the class as a holder for variables.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data