Configure flowable-modeler with spring boot applicaation

Okay, somethings were missing from my end and I have corrected them, now everything looks fine.
Now, my application and flowable are going to use local DB.

Now, I created a basic model like given here.
Next, I created the app and added the model created previously.
Published the app.
Tried to start the process from spring-boot application using below line of code

ProcessInstance instance = mRuntimeService.startProcessInstanceByKey(“gigplan”, variables);

However, I got the exception,

“No process definition found for key ‘gigplan’”

I know the way to do with xml, but I’m looking for some other way to achieve it.

Second question I have in mind, without using xml configuration, if I have created a model comprising of Service tasks using flowable-modeler, how do I wire that Service task with my java code.

I know, with xml it’s pretty easy, but in the application which I am working, xml is not an option for now at least!!

Please let me know if any leads are there, thanks in advance

1 Like