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:
- Resume a activti task
- Start a activiti task
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.