I have setup spring boot with activiti and camel. I am trying to configure Camel routes to poll email to do the below. Some examples on the same would be really helpful:
For e.g. to resume a user task we need to pass something like the below to Acitviti Rest API which works fine
{"action" : "complete", "variables": [ {"name":"id, "value":1}, {"name":"outcome", "value":true} ]}
UPDATE:
I started with the below for setting up Camel Routes, but not sure how to add variables that needs to be passed into activiti process:
@Component
public class MyCamelMailRouter extends RouteBuilder {
@Override
public void configure() throws Exception {
from("imaps://imap.server.com?username=myemail@example.com&password=xxxxxx&consumer.delay=60000"
+ "&searchTerm.subject=Approving&searchTerm.unseen=true")
.to("activiti:activationProcess:approval");
}
}
Any help would be greatly appreciated.
Sayatan,
I'm unfamiliar with working with/around Camel within Activiti - but I did some snooping in Activiti's test cases and found something that I think might be what you're looking for. Take a look at the CamelVariableTransferTest.java:
It shows the call structure that Activiti uses to send variables.
Hope this helps. If this isn't the specific thing you're looking for, I'd recommend looking through some of their other Camel test cases
EDIT: For future reference - there is a question also been on StackOverflow relating to this content.
-JEarles
bp3
The stackoverflow question was posted by me, but the answer is not specific to what I am looking here. The stackoverflow one is a combination of this and another issue with regards to error I was getting on startup due to a dependency missing. So NO, the answer to this is not available there.
Thanks, if you can send some example, it would be really helpful.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.