1
votes

I'm working with Kaleo Designer.

enter image description here

As you can see into image : "import com.MYPACKAGE.MYCUSTOMCLASS".

Is possible to import a custom java class and call my custom methods in kaleo designer actions?

1
Please at least reference your crosspostings, so that others have the possibility to check if the question is already answered elsewhere. liferay.com/de/community/forums/-/message_boards/message/…Gevatterjan
I have created this question on liferay forum and on stackoverflowPaolo Galimberti

1 Answers

1
votes

Basically yes, however some of the work needs to be done. You need to extend default BeanLocator to inject your custom classes which will be used as services. Then you will be able to use them either in workflow script or web content templates.

Follow instructions in this tutorial to achieve your goal. I found it very usefull in my case. https://www.liferay.com/web/pmesotten/blog/-/blogs/inject-any-custom-class-or-service-into-web-content-templates