We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

Rule Designer Now Open Source

123468

Comments

  • kristiakkristiak Posts: 1,337 ✭✭✭

    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

    sysURL=http://XXX.XXX.XXX.XXX:8080/OpenClinica/MainMenu  

    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-

  • AssmannMAssmannM Posts: 14
    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.

    Regards,
    Marco

  • kristiakkristiak Posts: 1,337 ✭✭✭

    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.

    Cheers

    Krister

  • toskriptoskrip Posts: 273 ✭✭✭
    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.

    best

    Tomas
  • ccollinsccollins Posts: 379 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:
    https://docs.openclinica.com/3.1/technical-documents/rest-api-specifications/oauth-and-openclinica

    Hope this is helpful.

    Best,
    Cal
  • AssmannMAssmannM Posts: 14
    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.
    Marco

  • kristiakkristiak Posts: 1,337 ✭✭✭
    via Email
    Marco,

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

    Regards

    Krister
  • 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

    Roger
  • 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

    Sorry

    Roger
  • 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.