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
5 replies
Subscribers
5 subscribers
Views
2018 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
How to pass simple java POJO class without any JAXB annotation as an input for custom smart service appian plugin?
jonbond
over 7 years ago
Hello Team,
Ex: I have a class called SampleTest, which contains only getter & setter methods. I want to use this class as a input for the custom smart service plugin. is it possible without JAXB annotation?
Thanks
OriginalPostID-233647
Discussion posts and replies are publicly visible
0
sparshs
over 7 years ago
Are you trying to parse a xml file ? Can you please elaborate on this use case.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jonbond
over 7 years ago
Hi Sparsh,
I am trying to use the SampleTest as a custom data type, but i don't want to annotated the SampleTest class with JAXB format, is there any other option?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jonbond
over 7 years ago
Below mentioned usecase I want to achieve:
I have 2 java class called A & B. Inside A, i am using List of B class reference:
Class A{
private List<B> bObject;
getter & setter..
}
So please tell me how to make both as CDT
If possible please share some sample application with complex structure
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 7 years ago
If you're planning that to be an input in your smart service then the Appian UI needs to know what your smart service is expecting, the best way to do so is by creating the CDT somewhere, either in the plug-in or in the UI, but I don't suggest you don't use the annotated format.
It's very easy:
1. Create the CDT in the UI
2. Export the XSD
3. Right click on your Appian Plug-in project -> Import Data Type and select the CDT.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jonbond
over 7 years ago
Thanks eduardo.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel