Open TheCarsino opened 2 years ago
Hello, I'm experiencing the same issue with Moodle 4, if Real time processing is unchecked / disabled then the workflow does not work. Is this a bug? Thanks
hi all, eventually we are hoping to deprecate this plugin in favor of a way more flexible and power one called dataflows:
https://github.com/catalyst/moodle-tool_dataflows
Data flows is ready right now, but it cannot currently be triggered from an event, but this is on the road map:
https://github.com/catalyst/moodle-tool_dataflows/issues/31
So please check out data flows and see what you think and if anyone is interested in sponsoring the event trigger please let us now
hi @brendanheywood,
does your answer mean that there will be no attempt from your side (meaning Catalyst) to fix this issue? Is event trigger abandoned project as of now? I'm just asking, because this is now a stopper for us to update our Moodle installation to 4.x.
Thanks!
hi @FurloSK
The event trigger step in tool_dataflows is now implemented and we are using in prod for a couple clients. If you are creating something new I'd definitely recommend you create it using dataflows instead of tool_trigger. If you have an existing tool_trigger setup then there should be no reason to stop using something is working, but I would also encourage you to take a look at dataflows you may find rebuilding it using that is not really that much work and gives you a lot of other side benefits. We still have clients using tool_trigger in prod, but we are not expecting any new clients to start using it. So I would characterize this plugin as deprecated rather than abandoned.
If you really want this issue fixed, we'd welcome a pull request, or if you want to sponsor it we could look at that as well, but I still think your best bet is to use dataflows instead.
hi @brendanheywood, thank you for your (quick!) answer. The problem with tool_dataflows is threefold:
Class 'Symfony\Component\Yaml\Yaml' not found
. And trying to add the new step to a workflow raised an exception Call to undefined function tool_dataflows\tool_dataflows_step_types()
. I searched those issues on moodle-tool_dataflows git, but found nothing, so I am at loss.apt install graphviz
). Is it really necessary for the tool_dataflows to work?hi @FurloSK 1) Yes I concede that the docs are very lacking and we'll aim to improve them shortly 2) yes it the same as any other plugin 3) graphviz is a php module not a moodle plugin, and yes it is a hard requirement dataflows. It is also used by xhprof / tideways which is used by Moodle core for its profiling function so in many setups it is not considered an extra thing.
This is a very quick list of concepts to get started: https://github.com/catalyst/moodle-tool_dataflows/tree/MOODLE_35_STABLE#configuration
When testing the plugin and deactivating the Real Time Processing option, the steps of the current workflow never executes.![imagen](https://user-images.githubusercontent.com/78005968/184372643-8ea14a7f-b0d6-487c-b7cf-3db299d78068.png)
I have configured a server that can receive some HTTP POST Actions, but this only works when the previous option is enabled. Even if this works correctly when it's enabled, I don't want the end user to see the error on their Moodle page, just in the logs that the plugin manages on each workflow history.
These are my current settings for the plugin![imagen](https://user-images.githubusercontent.com/78005968/184373292-09a9a8a4-a7ed-44d4-946c-cad018d4d1e1.png)
Moodle version: 4.0.1