Pimcore: [Workflows] Initial place of single_state workflows does not get saved in database

Created on 10 Mar 2020  路  1Comment  路  Source: pimcore/pimcore

Steps to reproduce:

  1. Create Class ABC with input field workflowState
  2. Create workflow which supports Pimcore\Model\DataObject\ABC and has initial place started, and set
marking_store:
      type: single_state
      arguments:
         - workflowState
  1. Create object of class ABC and publish it

Expected behaviour: Field workflowState should contain started
Current behaviour: Field workflowState is empty

Tested in Pimcore 6.3.3

Bug

Most helpful comment

Any update on this? We can confirm the issue with Pimcore v6.6.6.

鈿狅笍 As of Symfony >= v4.4.8 this will cause an Exception now when any workflow aware data object is loaded with empty place through the DataObjectController::getAction

Bildschirmfoto 2020-06-15 um 16 17 20

See their patch here: https://github.com/symfony/symfony/pull/36375/files where they switched to strict comparison.

Diff: https://github.com/symfony/symfony/compare/v4.4.7...v4.4.8

Steps

  • using Pimcore >= v6.6.3 and Symfony >= 4.4.8
  • have a workflow using single_state as marking store + initial_place is defined
  • creating new object for that workflow will show UI error message:

Bildschirmfoto 2020-06-15 um 16 28 52

Expected

Pimcore to set the initial place upon object create.

Workaround

lock symfony/symfony at v4.4.7 (not a real solution)

>All comments

Any update on this? We can confirm the issue with Pimcore v6.6.6.

鈿狅笍 As of Symfony >= v4.4.8 this will cause an Exception now when any workflow aware data object is loaded with empty place through the DataObjectController::getAction

Bildschirmfoto 2020-06-15 um 16 17 20

See their patch here: https://github.com/symfony/symfony/pull/36375/files where they switched to strict comparison.

Diff: https://github.com/symfony/symfony/compare/v4.4.7...v4.4.8

Steps

  • using Pimcore >= v6.6.3 and Symfony >= 4.4.8
  • have a workflow using single_state as marking store + initial_place is defined
  • creating new object for that workflow will show UI error message:

Bildschirmfoto 2020-06-15 um 16 28 52

Expected

Pimcore to set the initial place upon object create.

Workaround

lock symfony/symfony at v4.4.7 (not a real solution)

Was this page helpful?
0 / 5 - 0 ratings