Legacy Knowledge Base
公開されました Sep. 10, 2025

ヘッドレスAPIで製品の状態が変化しない

Written By

Pooja Bhambani

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • ワークフローが有効なヘッドレスAPIで作成された場合。 状態は、 「保留」 の状態ではなく、 「下書き」 の状態になっています。
  • 再現するための手順
    1. Commerce Productにデフォルトのワークフローを割り当てます。
    2. ヘッドレスAPI(POST /v1.0/products)
    、プロダクトを作成する 3. リクエストを実行する。
    4. UIでProductのステータスを確認する。 Draftの状態です。
    5.
    通知ワークフローもトリガーされない、つまり意図したユーザーに割り当てられない(チェックイン通知)
    期待される動作: 製品は Pending でなければならず、通知も意図したユーザーに送信される。
    実際の動作 実際の動作:本製品は 草案 の状態であり、通知も意図したユーザーには送信されない。

Environment

  • Liferay DXP 7.3
  • Commerce 3.0

解決策

  • 観測された動作は、製品の意図した動作である。 ワークフローは、出版物が提出されるまで発動しません。
  • ワークフローは、ユーザーが手動で送信したときのみ起動します。 作成した製品に移動し、「Submit for Publication」をクリックすることで、公開されます。

追加情報

  • 要件に基づき、製品へのさらなる変更は、 、PATCHなどの UPDATE APIを使用して行うことができます。
Did this article resolve your issue ?

Legacy Knowledge Base