Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jonathan Kwadzo
workflowContext in Kaleo workflow definition file
December 23, 2011 6:32 AM
Answer

Jonathan Kwadzo

Rank: New Member

Posts: 1

Join Date: December 23, 2011

Recent Posts

Hi,

I'm trying to make the Kaleo workflow v.4 engine work with a custom build of Liferay 6.1. Things seem to work pretty well, except when you approve a task, the Javascript section in the 'approve' action of the 'aproved' state is not being executed. By doing some debugging, I realized this is due to the fact that the 'workflowContext' object in that piece of code cannot be resolved. Where is that object set/assigned? Is this done through some configuration file or Java code?

<state>
<name>approved</name>
<actions>
<action>
<name>approve</name>
<script>
<![CDATA[
Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.toStatus("approved"), workflowContext);
]]>
</script>
<script-language>javascript</script-language>
<execution-type>onEntry</execution-type>
</action>
</actions>
</state>

Thanks,
Jonathan
Rafael Ferreira
RE: workflowContext in Kaleo workflow definition file
February 6, 2012 2:15 PM
Answer

Rafael Ferreira

Rank: New Member

Posts: 2

Join Date: October 7, 2011

Recent Posts

Hi!

I detected the same kind of problem. Basically, when I try to upload a workflow with the action as you wrote, liferay throws an error. When I do it without the action, the upload goes ok but the web content never gets published.

Any suggestions?

Thanks!
Rafael Ferreira
RE: workflowContext in Kaleo workflow definition file
February 9, 2012 3:37 AM
Answer

Rafael Ferreira

Rank: New Member

Posts: 2

Join Date: October 7, 2011

Recent Posts

Hi again!

Problem resolved here. My xml had errors on the "approved" area.
Joaquin B
RE: workflowContext in Kaleo workflow definition file
June 20, 2013 5:27 AM
Answer

Joaquin B

Rank: New Member

Posts: 4

Join Date: March 15, 2013

Recent Posts

Hi there

May you be so kind to let your XML here, please. I'm having the same problem and I'm getting mad.

Thank you a lot.
Joaquín