Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4786

Hardcoded workflow identifier in Checkout Service

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.0-rc1
    • 4.4.0-beta1
    • None
    • None

    Description

      Steps to reproduce

      1. Create custom  workflow  e.g.

      framework:
          workflows:
              custom_checkout:
                  type: state_machine
                  audit_trail:
                      enabled: false
                  marking_store:
                      type: method
                      property: status
                  supports:
                      - Ibexa\Contracts\Checkout\Value\CheckoutInterface
                  initial_marking: initialized
                  places:
                      - initialized
                      - completed
                  transitions:
                      checkout_data:
                          from: [ initialized, completed ]
                          to: completed
                          metadata:
                              controller: App\Controller\CheckoutController 

      2. Configure workflow as checkout workflow

      ibexa:
          # ...
          repositories:
              default:
                  # ...
                  checkout:
                      workflow: custom_checkout 

      3. Intialize checkout and process to next step

      Actual result

      CheckoutService ignores configuration and default checkout workflow ibexa_workflow

      Expected result

      CheckoutService should use workflow definition configured under ibexa.repositories.<repo>.checkout.workflow

       

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              adam.wojs@ibexa.co Adam Wójs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: