Help with running Travel Agency example

22 views
Skip to first unread message

Ming Fang

unread,
Mar 1, 2021, 2:54:44 AMMar 1
to Kogito development mailing list
When I try to apply for visa, the visa service prints the message below and nothing else happens.  The travel process instance remains active.

2021-03-01 07:51:44,473 WARN  [org.kie.kog.eve.imp.CloudEventConsumer] (vert.x-eventloop-thread-0) Consumer for CloudEvent type 'VisaApplicationsMessageDataEvent_1', trigger 'visaapplications': ignoring 
  payload '{"id":"dda48ac8-591e-4c33-9036-621cbe121f38","source":"/process/travels","type":"visaapplications","time":"2021-03-01T07:51:44.470356Z","data":{"firstName":"Jan","lastName":"Kowalski","city":" 
 New York","country":"US","duration":1,"passportNumber":"1","nationality":"Polish","approved":false},"kogitoProcessinstanceId":"5d301045-2208-4db9-a7ad-f8e374375bd6","kogitoProcessId":"travels","kogitoPr 
 ocessinstanceState":"1","specversion":"1.0"}' 


Cristiano Nicolai

unread,
Mar 1, 2021, 10:38:02 AMMar 1
to Kogito development mailing list
Hi,

After you approve the visa, if you go back to the travels application and refresh it, you should see the hotel and flight details added to the reservation. Then if you click on tasks, it should open a task asking to confirm the travel.
Is the travel process not getting updated at all? What Kogito version are you using?

Thanks

--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/b69333c4-e93a-46ff-811a-cadd58362e29n%40googlegroups.com.


--
Best regards,

Cristiano Nicolai

Ming Fang

unread,
Mar 1, 2021, 10:49:39 AMMar 1
to Kogito development mailing list
The Visas UI does not show the visa application therefore I'm unable to approve it.
It seems like the visa service simply ignores the application altogether.
what could be the cause of this?

Cristiano Nicolai

unread,
Mar 2, 2021, 1:38:56 AMMar 2
to Kogito development mailing list
MIng,

Could you share what steps you took so we can try to reproduce the issue? Are you using kogito-examples stable branch with version 1.2.0.Final?



Ming Fang

unread,
Mar 2, 2021, 2:21:19 AMMar 2
to Kogito development mailing list
Here are my steps on Kubernetes(not using the Kogito Operator).
1-deployed zookeeper, confluent Kafka 6, and Infinispan quay.io/infinispan/server:11.0.9.Final
2-using the tip of the Kogito-example code, which is using 1.2.0.Final, I built the images like this
mvn package -Pnative -Dnative-image.docker-build=true
docker build -f src/main/docker/Dockerfile.native -t $IMAGE .
The images are pushed to my local registry
3-I deployed the data-index service (quay.io/kiegroup/kogito-data-index-infinispan:1.2.0) with the two protobuf files from the example
4-deployed the travels and visas web apps
5-Run ran this example that requires visa
curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST https://kogito-travels-example.rebelsoft.com/travels -d @- << EOF
{
"traveller" : {

"firstName" : "Jan",
"lastName" : "Kowalski",
"email" : "jan.ko...@example.com",
"nationality" : "Polish",
"address" : {
"street" : "polna",
"city" : "Krakow",
"zipCode" : "32000",
"country" : "Poland"
}
},
"trip" : {

"city" : "New York",
"country" : "US",
"begin" : "2019-12-10T00:00:00.000+02:00",
"end" : "2019-12-15T00:00:00.000+02:00"
}
}
EOF

6-on the travels app, I apply for visa
7-on the visa server I see the error message repeated here
2021-03-02 07:19:46,937 WARN  [org.kie.kog.eve.imp.CloudEventConsumer] (vert.x-eventloop-thread-0) Consumer for CloudEvent type 'VisaApplicationsMessageDataEvent_1', trigger 'visaapplications': ignoring 
  payload '{"id":"f032c061-c383-4a3a-afdd-ae667b9f383f","source":"/process/travels","type":"visaapplications","time":"2021-03-02T07:19:46.935336Z","data":{"firstName":"Jan","lastName":"Kowalski","city":" 
 New York","country":"US","duration":10,"passportNumber":"10","nationality":"Polish","approved":false},"kogitoProcessinstanceId":"bf86139e-bb6b-4c03-9302-18d453e2743e","kogitoProcessId":"travels","kogito 
 ProcessinstanceState":"1","specversion":"1.0"}' 
Reply all
Reply to author
Forward
0 new messages