legacy-knowledge-base
公開されました Jun. 30, 2025

実行時の例外 カスタムワークフローのスクリプト

written-by

Cristina Rodriguez

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 例えば、ワークフローのアクションの結果、ラベル <scripted-recipient> を介して特定の受信者に電子メール通知を送信する場合、 ScriptingException がスローされます:
com.liferay.portal.kernel.scripting.ScriptingException: No such property: roles for class: groovy.lang.Binding

ので、メール通知を送ることができません:

com.liferay.portal.workflow.kaleo.runtime.notification.NotificationMessageSenderException: Unable to send notification message

Environment

  • Liferay DXP(全バージョン)。

解決策

  • 回避策としては、お客様のニーズに応じて、スクリプトが検索できるように role 変数を定義することでしょう。 一つの方法でしょう:
roles = null

追加情報

  • この機能が実装された LPS-53767, では、その基本的な使用例がいくつか添付されています。

did-this-article-resolve-your-issue

legacy-knowledge-base