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
6 subscribers
Views
2410 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
My process is supposed to be started/trigger by receiving a JMS message from an
yangs
over 11 years ago
My process is supposed to be started/trigger by receiving a JMS message from an external queue. The process worked OK when I tried with the simple TextMessage. However, it didn't really work if I pass in an objectMessage. This is what I did:
1. I defined a CDT in Appian called Person, which has age, firstName and lastName as attributes. In my java test, with JMS API, I created an objectMessage with a Person object (an object of a Java Person class, with the same atrributes as Appian CDT).
2. In the startEvents, after receiving the "External to Process" message, I assigned msg!Body to a process varible (pPersonVar) ,which has the Person CDT type.
3. Then I created a form to display age, firstName and lastName (e.g. pv!pPersonVar.age). It didn't work. Nothing was displyed. The process was OK since I was able to pass a TextMessage thru and be displayed.
Please shed lights on how I should approach this. I checked all the documents that I can find an...
OriginalPostID-80777
OriginalPostID-80777
Discussion posts and replies are publicly visible
0
yangs
over 11 years ago
...d no results.
Thank you,
---Yang
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Siva
Certified Lead Developer
over 11 years ago
You can serialize your input and pass the serialized string to Appian. At Appian deserialize the received string using internalize() function and save into CDT variable. More about the function here is the link
forum.appian.com/.../Conversion_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
yangs
over 11 years ago
Thank you sivashankarik. I will give that a try. I was thinking that if Appian could interact with a JMS implementation, sending/receiving an ObjectMessage directly should be natually supported. Support TextMessage only seems to be a feature incomplete. Let me try what you suggested and report back. Thank you again.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
yangs
over 11 years ago
the internalize() only returns a Text type. I an need object of Person (i.e. the CDT that I created).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Siva
Certified Lead Developer
over 11 years ago
Can you check the serialized data in both Java and Appian. Serialize the Person object in both Appian and Java and compare the serialized string to see if they match. Make sure that serialized string is received in the Receive Message event.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel