I don’t see any issues at the above code. The faster way for you to know why it’s failed will be debugging at WorkflowRegistry, you can set the breakpoint at line 53.
First – the workflow identifier can be incorrect, or workflow was not loaded to the database or there are some caches. But if you can start it with UI – this should be ok. Second – some of the filters that implement \Oro\Bundle\WorkflowBundle\Model\Filter\WorkflowDefinitionFilterInterface can remove your workflow from results, but as I see at the configuration you provided – it should not, so probably it failed earlier on loading workflow from the database.
Their is three definitionFilter – FeatureCheckerWorkflowRegistryFilter – WorkflowDefinitionScopesRegistryFilter – WorkflowDefinitionApplicationsRegistryFilter
At Line 27 : $currentApplication = $this->currentApplicationProvider->getCurrentApplication();
The $currentApplication is null.
In fact the controller is called from keyyo service and I have this conf:
YAML
1
2
3
4
5
6
security:
firewalls:
cti:
pattern: ^/admin/voip/voip/keyyo-cti$
security: false
anonymous: true
This is for test purpose, i will only allow ip from keyyo after.
The problem is that the call from keyyo to this controller is anonyme then their is no token to identify a user and then the getCurrentApplication() method return always null value.
I don’t want to create an API method because I can’t edit Keyyo script who’s just make a GET request to a specific URL.
Any advice to perform the action without break the security should be appreciate.
The simpler solution would be to decorate the WorkflowDefinitionApplicationsRegistryFilter to add an exception and don’t filter the phone_call workflow.
Author
Replies
Viewing 4 replies - 1 through 4 (of 4 total)
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.
We collect cookie information with a goal to provide you with the best user experience. By using this website, you agree to our use of cookies. Read Oro Inc.’s Cookie policy.