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
+1
person also asked this
people also asked this
Replies
4 replies
Subscribers
8 subscribers
Views
3296 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
Will Appian process take a binary content as the process parameter which is requ
sivananthag
over 9 years ago
Will Appian process take a binary content as the process parameter which is required to start Appian business process. My requirement will be to trigger a Appian business process when I receive a Zip file from external system.
I created a process with one input parameter ( TEXT fileContents ) and exposed the process as webservice .
So my webservice operation "start" will have three parameters
String userName
String password
String fileContents
and will return process id after successful invocation of the process instance.
I read the contents of the file and set it fileContents variable and invoke the start method. The code works fine when I send text (.txt) file contents.
But when I read binary file (zip file) and set its contents into fileContents string variable and invoke the start method, the code fails with the Exception:
Caused by: org.apache.cxf.binding.soap.SoapFault: Error fulfilling request
at org.apache.cxf.binding.soap.interceptor.Soa...
OriginalPostID-148606
OriginalPostID-148606
Discussion posts and replies are publicly visible
0
sivananthag
over 9 years ago
...p11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.jjava:75)
Since Appian does not support byte[] as process/ smart service input parameter, Is there any work around to pass binary content to Appian for triggering a business process?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
akshayan
Certified Lead Developer
over 9 years ago
You have to encode the binary content in base64 format and decode back to binary in the process. There was a plugin available on appian forum which was removed due misuse (if you forget to clean up process immediately kdb size can grow very large). You may have to develop a plugin to encode/decode in base64.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Amitkumar
over 9 years ago
You may think of downloading the document directly by using HTTP file download smart service since the plugin to convert document from base64 string is not available. HTTP file download smart service is introduced in Appian 7.9. You may want to take a look at
forum.appian.com/.../HTTP_File_Download_Smart_Service.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sivananthag
over 9 years ago
Thanks for your help. I encoded the binary content in java and now I can able to trigger the process from Java.
thanks
Jhothi
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel