Foren

Kaleo Workflow Condition need to access Java Bean

Ivan Budiono, geändert vor 10 Jahren.

Kaleo Workflow Condition need to access Java Bean

New Member Beiträge: 3 Beitrittsdatum: 10.06.13 Neueste Beiträge
I use groovy to get the classPK in my condition script.
Well, I need to decide not based on the primary key but based on other data in my bean such as QueueBean.
So, I tried to import my bean class in groovy.

import com.wings.trexmon.bean.QueueBean;

...
QueueBean queue = QueueBean.getQueue(classPK);
if(queue.getAnotherField() == 1){
returnValue = "path1";
}else{
returnValue = "path2";
}
...

The problem is that the import statement failed due to unresolved class QueueBean.
It seems that groovy compiler can't find that class.
How can I tell the groovy compiler inside Kaleo to link with my class?
Or is there any better way to get such data?