We are currently working on the forum. For the short-term, all forum content will be in read-only format. We apologize for the interruption and look forward to collaborating with you shortly. All the best in your research!

Rule Designer Now Open Source



  • kristiakkristiak Posts: 1,339 ✭✭✭

    I have not tried this but assume if you change the line 110 below accordingly it should work.

    Change line 110 in datainfo.properties to


    where XXX.XXX.XXX.XXX is the URL of your server or "localhost" but I guess that you use different ports such as 8081, 8082 etc for you different instances but I'm not sure how the designer.war would behave. Do you have several different Tomcat installations? In such case you must also install the designer.war in each-

  • Hello Kristiak,

    I think you misunderstood me. What I have is several openclinica instances within one Tomcat instance (renamed the openclinca.war file to openclinica1, openclinica2, etc.) Next to these openclinica instances I have 1 designer instance. However to access the designer from an openclinica instance I have to alter the ApplicationContext-security.xml to contain the full address of the openclinica instance. If I did this for the instance openclinica1 (http://localhost:8080/openclinca1/..) and the designer now works for the openclinica1 instance. 
    So my question is how can I add the other openclinica instances (2,3,...) to the same designer?
    I think this must be possible as Akaza now offers users of the community edition also full access to the designer they host. I can't belief that they are going to create a seperate designer instance for each community openclinica instance.


  • kristiakkristiak Posts: 1,339 ✭✭✭

    Hi Marco,

    You obviously know much more about your installation and should be able to figure it out. We do not ever use several OC instances on the same instance, if nothing else, for performance reasons we use a separate virtual servers for each study, which makes the customers and auditors happier. You can always ask Tomas (Toskrip, see above) who actually made the .war file available. I only wrote a more detailed instruction.



  • toskriptoskrip Posts: 279 ✭✭✭
    Hi Marco,

    It is possible. If you have everything running on one server no special modification on Designer configuration should be necessary.

    I found out that the oauth:resource elements in ApplicationContext-security.xml are actually not considered. So feel free to comment them. All attributes necessary to authenticate user are feeded to designer directly from OC via URL query parameters. Just make sure that each of yours OC instance is referencing to one designer.

    This is how URL looks like when you are opening designer from OpenClinica. If you have multiple instances of OC, the instance name is passed in "app" query parameter (openclinica1, openclinica2). Designer use these parameters to construct OAuth request.

    give it a try and tell me if you have some troubles with it.


  • ccollinsccollins Posts: 383 admin
    via Email
    Tomas, Marco,

    There is also some technical detail on the back and forth of the OAuth
    transaction between OpenClinica and Designer here:

    Hope this is helpful.

  • Tomas, Krister,

    Tomas you were indeed right. When the rule designer is installed according to the instructions in the PDF from Krister, you can use it for all OpenClinica instances installed. It does not matter whether the oauth is pointing to only one instance. The Designer will use the rest-api to determine which OpenClinica instance it is called from as is pointed out by Cal Collins.

    Thanks for all the input.

  • kristiakkristiak Posts: 1,339 ✭✭✭
    via Email

    Great that the problem was solved. Thanks again Tomas!!


  • rogerogerogeroge Posts: 16
    Please help

    I am trying to set up a rule where an answer on one CRF schedules a second CRF/Event. I have followed the documentation from https://docs.openclinica.com/3.1/rules/creating-rules#content-title-4604 and click on the example links such as https://docs.openclinica.com/system/files/EventAction-Example 2.pdf to get a 404

    Also the screen shot of the rules designer at http://blog.openclinica.com/2014/07/22/automatic-event-scheduling-with-openclinica-3-3/ looks nothing like my display [as a regsutered user of the community edition]

    Is it me????

    Please help

  • rogerogerogeroge Posts: 16
    5 minutes later ....

    - there are different versions of rules designer as specified by the setting in datainfo.properties - ensure the version is added (1.2) as per https://designer.openclinica.com/1.2/ this will give you the new version of rules designer for 3.3 which includes event action under actions

    - the examples are access denied not 404


  • jacob.rousseaujacob.rousseau Posts: 22 ✭✭
    edited September 2014
    Hallo everyone,

    today we tried to deploy an instance of the RuleDesigner. It went fairly painlessly thanks to the manual written by Krister and the comments of Tomas. Kudos to you both.

    We only encountered a problem because we use Tomcat 7 (7.0.52). An exception occured because Tomcat 7 has a different setting than Tomcat 6 of the system property 'org.apache.el.parser.SKIP_IDENTIFIER_CHECK'. A number of possible solutions are described in this article at stackoverflow. We solved the problem by adding a setenv.sh file to our Tomcat bin directory as described in solution 2 in the article.

    regards, Jacob
Sign In or Register to comment.