Error while importing DataObject into jBPM Process bpmn

38 views
Skip to first unread message

Joji Joy

unread,
Feb 28, 2025, 5:42:59 AMFeb 28
to jBPM Usage
I have a few Data Objects in my jBPM project.

DataObjects are plain and simple Java Object nothing complex.

I wanted to call the Data Object method sat  on Entry and on Exit of Rest WorkItemHandler. However, I am getting following error

ERROR [org.drools.compiler.kie.builder.impl.KieProject] (default task-104) Unable to build KieBaseModel:defaultKieBase
Error importing : <Data Object>
Process Compilation error : Process <Process Name>
        Only a type can be imported.
FQCN.<DataObject> resolves to a package
        <DataObject> cannot be resolved to a type
         <DataObject>   cannot be resolved to a type
         <DataObject>   cannot be resolved to a type
         <DataObject>   cannot be resolved to a type

Alex Porcelli

unread,
Feb 28, 2025, 6:52:49 AMFeb 28
to Joji Joy, jBPM Usage
Please share a reproducer, it’s hard to evaluate what’s going without proper context and most importantly/ without a reproducer.

Regards,
_____________
Alex Porcelli
http://porcelli.me


--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jbpm-usage/62e20b37-b711-401f-a64e-a18557ff20dbn%40googlegroups.com.

Joji Joy

unread,
Feb 28, 2025, 10:37:02 AMFeb 28
to jBPM Usage
Please find the attached Sampe Flow similar with same issue.

Tried import data object into the process instance but failing to recognize the DO.

Update project repositories as needed (currently only maven central details are present)
Please make sure to instantiate the process instance with a username process variable.
Also spin up local server with URL in resources/properties file.


jBPMUsageSamples_project.zip

Joji Joy

unread,
Mar 14, 2025, 3:22:18 AMMar 14
to jBPM Usage
The issue in the above project is I am using Lombok.
Removing it resolved the issue for me.

However the question remains how I can use lombok inside a KIE Jar. 
Have tried lombok in provided scope and also tried passing annotation processor to maven compiler plugin.

Any way to do this? Curious.
Question still remains as to why doesn't it compile when lombok is involved. 
Seems like Annotation processor is not able to work and alter the bytecode to generate the required setters and getters


Abhijit Humbe

unread,
Mar 14, 2025, 8:09:23 AMMar 14
to Joji Joy, jBPM Usage
Try adding lombok jar files into classpath of war files(web-inf/lib dir) 

Abhijit Humbe


Reply all
Reply to author
Forward
0 new messages