ssossossosso

Forums

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

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

  • Creator
    Topic
  • #5184

    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
  • #5194

    Nikita Petrov
    Participant

    Anybody please help me! 🙂

    #5222
    Dmitry Khrysev
    Dmitry Khrysev
    Oro Core

    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.