Friday, November 29, 2013

Kaleo Workflow Configuration for Custom Portlet in Liferay 6.1

1. Make sure you have deployed kaleo workflow war in your liferay portal.

2. Create the service.xml


3. Build the service

4. Edit the FeedbackLocalServiceImpl class and add the following methods:



5. Make the following entries in liferay-portlet.xml file



6. create the FeedbackAssetRendererFactory class



7. create the FeedbackAssetRenderer class-



8. create the /html/feedback.jsp file.


9. create the FeedbackWorkflowHandler class -



10. We are done with all the changes now, to see our portlet in action go to control panel → Workflow Configuration and set the workflow for your custom portlet.

3 comments:

  1. As per above example
    i am able to configure workflow for custom porlet. but unable to get aproove status while add new record to database..
    help me ....thanks advance...!!

    ReplyDelete
  2. Hi Ranjit,

    What issue are you facing? Are you getting any exception?

    After adding the new record using FeedbackLocalServiceUtil class, you need to check the My Workflow Tasks portlet in the control panel. Are you able to see the entry there?

    Regards,
    Harish

    ReplyDelete
  3. how to use the kaleo workflow in the portlet via xml extension but not in single approver of liferay ?

    ReplyDelete