Multiple_state marking_store initial_place doesn't seem to take


#1

I have a workflow config as so:

      workflows:
    product_publishing:
      enabled: true
      label: 'Product Workflow'
      type: 'workflow'
      audit_trail:
        enabled: false 
      supports:
        - 'Pimcore\Model\DataObject\Product'
      marking_store:
        type: 'multiple_state'
        arguments: 'currentPlace'
      initial_place: new 
      places:
        new:
            label: 'New product'
            color: '#377ea9'
        pd_checklist:
            label: 'PD Checklist'
            title: 'PD steps'
            color: '#d9ef36'
            permissions:
                - objectLayout: 3            
        sc_checklist:
            label: 'SC Checklist'
            title: 'SC steps'
            color: '#d9ef36'
            permissions:
                - objectLayout: 4            

      transitions:
        start_processing:
            from: new 
            to: [sc_checklist, pd_checklist]
            options:
              label: 'Product Development: begin product'
        sc_processing:
            from: [new, pd_checklist]
            to: sc_checklist 
            options:
                label: "SC's turn"

First off, my “arguments: currentPlace” was a text input within my class and I was getting strlen on array errors. So, I switched it to multiple select and added a row for each transition. When I open a data object of a type supported in the workflow, I get:

The Place “0” is not valid for workflow error seems to tell me that “initial_place” is not being acknowledged?


#2

Doh… changing the marking_store to “data_object_multiple_state” fixed it.