<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Action Executor sample code does not compile for Liferay Portal 7.4.3.132</title>
  <link rel="self" href="https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123499532" />
  <subtitle>Action Executor sample code does not compile for Liferay Portal 7.4.3.132</subtitle>
  <id>https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123499532</id>
  <updated>2026-04-18T00:31:16Z</updated>
  <dc:date>2026-04-18T00:31:16Z</dc:date>
  <entry>
    <title>Action Executor sample code does not compile for Liferay Portal 7.4.3.132</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123499531" />
    <author>
      <name>Tim Telcik</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123499531</id>
    <updated>2025-07-18T19:39:26Z</updated>
    <published>2025-07-16T07:08:57Z</published>
    <summary type="html">&lt;p&gt;​​​​​​Hello Liferay Community Admin,&lt;/p&gt;
&lt;p&gt;the online Liferay Developer guide contains an invalid Action
  Executor sample project for the Creating an Action Executor page.&lt;/p&gt;
&lt;p&gt;The Creating an Action Executor page is available at&lt;/p&gt;
&lt;p&gt;https://learn.liferay.com/w/dxp/low-code/workflow/developer-guide/creating-an-action-executor&lt;/p&gt;
&lt;p&gt;The sample project referenced on the page is available at&lt;/p&gt;
&lt;p&gt;https://resources.learn.liferay.com/examples/liferay-e5c9.zip&lt;/p&gt;
&lt;p&gt;
  &lt;br&gt; The sample project contains code and configuration intended for
  Liferay Portal 7.4 GA132&lt;/p&gt;
&lt;p&gt;e.g.&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;
    &lt;br&gt; % cat gradle.properties &lt;br&gt;
    liferay.workspace.product=portal-7.4-ga132&lt;br&gt;
    liferay.workspace.target.platform.version=7.4.3.132&lt;br&gt;  &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
  &lt;br&gt; However, attempting to build the sample project will trigger a
  compilation error, due to a mismatch in the
  WorkflowDefinitionManager#deployWorkflowDefinition usage.&lt;/p&gt;
&lt;p&gt;e.g.&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;
    &lt;br&gt; % ./gradlew clean build&lt;/p&gt;
  &lt;p&gt;&amp;gt; Task :stopDockerContainer&lt;br&gt; Stopping container with ID
    'liferay-e5c9-liferay'.&lt;br&gt; No container with ID
    'liferay-e5c9-liferay' running.&lt;/p&gt;
  &lt;p&gt;&amp;gt; Task :removeDockerContainer&lt;br&gt; Removing container with ID
    'liferay-e5c9-liferay'.&lt;br&gt; No container with ID
    'liferay-e5c9-liferay' found.&lt;/p&gt;
  &lt;p&gt;&amp;gt; Task :cleanDockerImage&lt;br&gt; Removing image with ID
    'liferay-e5c9-liferay:7.4.3.132-ga132'.&lt;br&gt; No image with ID
    'liferay-e5c9-liferay:7.4.3.132-ga132' found.&lt;/p&gt;
  &lt;p&gt;&amp;gt; Task :e5c9-impl:compileJava FAILED&lt;br&gt;
    /Users/tim.telcik/dev/ws/liferay/liferay-examples/workflow-action-executor/liferay-e5c9/e5c9-impl/src/main/java/com/acme/e5c9/internal/workflow/kaleo/runtime/scripting/internal/action/E5C9ActionExecutor.java:75:
    error: no suitable method found for
    deployWorkflowDefinition(long,long,String,String,byte[])&lt;br&gt;        
            _workflowDefinitionManager.deployWorkflowDefinition(&lt;br&gt;    
                                          ^&lt;br&gt;     method
    WorkflowDefinitionManager.deployWorkflowDefinition(String,long,long,String,String,byte[])
    is not applicable&lt;br&gt;       (actual and formal argument lists differ
    in length)&lt;br&gt;     method
    WorkflowDefinitionManager.deployWorkflowDefinition(String,long,long,String,String,String,byte[])
    is not applicable&lt;br&gt;       (actual and formal argument lists differ
    in length)&lt;br&gt; Note:
    /Users/tim.telcik/dev/ws/liferay/liferay-examples/workflow-action-executor/liferay-e5c9/e5c9-impl/src/main/java/com/acme/e5c9/internal/workflow/kaleo/runtime/scripting/internal/action/E5C9ActionExecutor.java
    uses or overrides a deprecated API.&lt;br&gt; Note: Recompile with
    -Xlint:deprecation for details.&lt;br&gt; 1 error&lt;/p&gt;
  &lt;p&gt;FAILURE: Build failed with an exception.&lt;/p&gt;
  &lt;p&gt;* What went wrong:&lt;br&gt; Execution failed for task
    ':e5c9-impl:compileJava'.&lt;br&gt; &amp;gt; Compilation failed; see the
    compiler error output for details.&lt;/p&gt;
  &lt;p&gt;* Try:&lt;br&gt; &amp;gt; Run with --info option to get more log output.&lt;br&gt;
    &amp;gt; Run with --scan to get full insights.&lt;/p&gt;
  &lt;p&gt;Deprecated Gradle features were used in this build, making it
    incompatible with Gradle 9.0.&lt;/p&gt;
  &lt;p&gt;You can use '--warning-mode all' to show the individual deprecation
    warnings and determine if they come from your own scripts or plugins.&lt;/p&gt;
  &lt;p&gt;For more on this, please refer to
    https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings
    in the Gradle documentation.&lt;/p&gt;
  &lt;p&gt;BUILD FAILED in 833ms&lt;br&gt;  &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Is there an alternative branch for this sample project which contains
  a valid set of code and configuration for Liferay Portal 7.4 GA132?&lt;/p&gt;
&lt;p&gt;Please review and advise.&lt;/p&gt;
&lt;p&gt;
  &lt;br&gt; Thank you,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Tim Telcik</dc:creator>
    <dc:date>2025-07-16T07:08:57Z</dc:date>
  </entry>
</feed>
