掲示板
Kaleo Workflow Condition need to access Java Bean
10年前 に Ivan Budiono によって更新されました。
Kaleo Workflow Condition need to access Java Bean
New Member 投稿: 3 参加年月日: 13/06/10 最新の投稿
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?
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?