11-21-2016 11:49 AM
Hi guys) need your help with next.
I have custom workflow, which works fine - thanks a lot for everyone who discussed about wfs)
In that wf I have a task - sending notification to user.
I would like to send this notification from this tsk not by email, but by http requests to another website.
how it is possible?
I researched a lot about sending http requests and found that i have two options:
1) ajax request - but, if understood right - it is possible to send from html page, because of including alfresco. ajax.library and this option is not for my case
2) and remote root object from Surf.
I could not use remote - it is undefined. I tried to make this - add bean with remote to webscript-context.xml in the folder with my project, but had trouble with setting <map merge =true> - got error - merge must be defined. I deleted attribute merge, alfresco started, but in share i had 500 code.
what i do wrong?
Probably there is other way to send notification just like http requests. I am not strong in Java a would like use java script api for that.
Thank you for your replies.
regards
11-21-2016 01:44 PM
If you haven't already, please take a look at my Workflow Tutorial. In it, I show how to write a Java task. The example sends a notification.
Your requirement is to make an HTTP call. You were right to try to use the remote object that exists in the web script framework. That should work. But if it doesn't, you could use the example above to learn how to write a Java-based task, but instead of sending an email, you could leverage something like the Apache Commons HTTP Client to invoke a URL on another web site.
Jeff
11-24-2016 04:43 AM
Hi Jeff, thank you very much for your fast replay. Yes, I used your tutorial for implement my WF and thanks a lot for that tutorial also - very helpful I avoided Java coding till now, but it seems like I should start java coding. I found that library GitHub - ITDSystems/alvex: Alvex meta repository and now have two options java task and try this module. I'll tell about results
Thank you
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.