OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums OroCRM Create new workflow in my own bundle – oro:workflow:definitions:load – fails

This topic contains 3 replies, has 2 voices, and was last updated by  Frank 4 months, 3 weeks ago.

  • Creator
    Topic
  • #38964

    Frank
    Participant

    Hi there,

    I am using OroCommerce 3.1.7 / MYSQLD 5.7.

    Learning, how to create Workflows on Oro I watched tutorial:

    OroCRM Technical Webinar: Oro Workflows

    I followed the steps:

    cd <project_path>/src
    mkdir Acme
    cd Acme
    git clone show email:yshyshkin/DemoWorkflowBundle.git
    cd DemoWorkflowBundle
    ./bin/console oro:workflow:definitions:load

    Unfortunately, all existing workflows are loaded (16 in the demo version), but my new one ‘acme_demo_workflow_lead_processing’ is not!

    I checked, if Acme/DemoworkflowBundle bundle is enabled in profiler > it is!

    I checked oroapp/src/Acme/DemoWorkflowBundle/Resources/config/workflow.yml > it is in place, and not corrupted!

    What I am doing wrong?! The tutorial is 4 years old. Does it still works?

    Thanks for help

    Kind regards
    Frank


    PS: I know about the possibility to define Workflows in Oro-Backend > System > Workflows > Create new Workflow directly.
    However I want to test the possiblity to configure the workflow.yml-file in my own bundle manuelly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #38975
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Frank,

    The video is a bit outdated, the file name was changed to workflows.yml.

    During the upgrade to OroCRM 2.0, The file names for most of the oro configuration files were updated to follow the same conventions, they always use plural world form now.

    #38978

    Frank
    Participant

    Hi Andrey,

    thank you for your reply.

    The video seems to be outdated, not only with respect to configuration filename, and path … however I get an error like:

    “Can’t parse workflow configuration from /usr/share/nginx/html/oroapp/src/Acme/DemoWorkflowBundle/Resources/config/oro/workflo
    ws.yml. Unrecognized option “label” under “workflows.acme_demo_workflow_lead_processing.steps.open”

    It is not only the ‘label’-option, other options used in the video are not working too. It would be great, if you could comment/label the video at youtube as depreciated/outdated!


    Therefore I was checking the github-documentation, how to set keys/option to configure a workflows.yml-file:

    https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/WorkflowBundle/Resources/doc/reference/workflow/configuration-reference.md

    A very detailed doc. Hope, this will guide me.

    Kind regards
    Frank

    #38979

    Frank
    Participant

    No more questings concerning the video. I gonna close the topic as solved.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No