OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

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 9 years, 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #24810

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

    Nikita Petrov
    Participant

    Anybody please help me! :)

    #24812

    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)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top