ssossossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums Forums OroCRM OroCRM – Programming Questions Custom workflow condition action does not work

This topic contains 2 replies, has 2 voices, and was last updated by  Dmitry Khrysev 3 years, 4 months ago.

  • Creator
    Topic
  • #22190

    Nikita Petrov
    Participant

    I try to create custom workflow transition action to implement message sending in AQ by STOMP.

    I created my own new bundle Test\Bundle\STOMPBundle without any inheritance, added data to services.yml and wrote my action as full copy of assign_value action.

    Test\Bundle\STOMPBundle\Resources\config\services.yml:

    Test\Bundle\STOMPBundle\Model\Action\SendSTOMPMessage:

    Usage in workflow.yml (same as for assign_value action):

    When I call my action I get error:

    But when I replace my test action with original assign_value action everything is fine!

    It seems that in input of my action all arguments put as null. What I do wrong? How I should declare my action in right way?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #22191

    Nikita Petrov
    Participant

    Anybody please help me! 🙂

    #22192

    Dmitry Khrysev
    Participant

    Hi, Nikita

    You have not added required ContextAccessor dependency to your service definition, that’s why you got this error

    Correct service definition for your action must be

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

You must be logged in to reply to this topic.