There are several ways of accessing the RedDot CMS API. You can use RenderTags or use the RedDot Query Language, also known as “RQL”. This article explains how to use RQL for advanced requirements like event controlled RQL, remote RQL execution, binding RQL to workflows and much more.
Have you already seen this article RQL in a nutshell of the brilliant Manuel Schnitger? Yes? Well, at some point you’ll have questions which are not answered in the formerly mentioned article.
Therefore Manuel is back with this new article full of useful goodness that will help you when creating RQL-based applications (here you can find the original article).
Usually an RQL plugin is called via a link in SmartEdit or SmartTree and will be executed in the second you click on the link…..so user interaction is required. But what has to be done if you want the plugin/application to be executed when a specific event (e.g.: page released) in the workflow is reached? Let’s do it step-by-step.
In this sample the goal is that you trigger an RQL application via the workflow. The action that is performed is not important….just the steps that result into performing the action.
a) Go to the Server Manager > User defined jobs and click on "Create user defined job" in the action menu
b) in the upcoming dialogue enter a name for this job (e.g.: myNewJob)
c) in the next dialogue activate the checkbox "call event controlled" and deactivate the other one (important!)
d) in the next dialogue choose the option "Open URL" and enter the url to your RQL application
a) Enter the SmartTree
b) create a workflow
c) click on "Page released" and then on "add reaction" (of course jobs can also be triggered when the workflow level is different to "page released" )
c) In the opening dialogue click on "Start job" and choose the user defined job you just created in the Server Manager.
Ready and good to go!!! Now the RQL application will be triggerred each time a page that is connected to this specific list is being released.
Usually when you wish to start a job – when a specific step in the workflow is reached you also want to let the RQL application do something with the page in workflow. But then there is this:
No related posts.