This section is currently under construction... please wait until is finished

Software to be installed

Unless stated otherwise, newer stable versions of the program should work.

iTrivio 2.9.017

Competent 33

Introduction

On this page we use the term "Course" for both iTrivio courses and tests.

Integration of Competent with iTrivio provides features of both softwares merged and accessible through the Competent.

When an user is created in Competent, it is automatically created also in iTrivio. Competent user contains ID reference to its iTrivio counterpart.

Same applies for Competent Activities with 'iTrivio' launch type - course/test is created also in iTrivio and Competent handles reference.

Competent thus provides all user, course and user-course management such as

  • creating/modifyindeleting users
  • creating iTrivio course activities

Configuration

This configuration describes the basic scenario where

  • both iTrivio and Competent are fresh installations
  • login with default iTrivio and Competent admin accounts were successfully tested
  • Competent will be main platform to handle course creation/deletion, user management and user-course management.

Contact Educasoft for specific configuration procedure in other more complex scenarios (e.g. Competent is going to use existing iTrivio application already filled with course/user data )

Competent part

in application.properties, or in your own application-yourNameShortcut.properties file set the following propeties:

  • competentItrivioIntegration.enabled=true
    (true to allow the connection between apps)
  • competentItrivioIntegration.itrivioCompanyUrlContext=/test
    (url name of the company for which you are setting the connection, leave empty if the only company is the root)
  • competentItrivioIntegration.url=http://localhost:8080/
    (url of the iTrivio app)
  • competentItrivioIntegration.linkUrl=http://127.0.0.1:8080
    (probably the same as above, this will be the url where the iTrivio courses will run, leave out the final slash! or the course address will show wrong)
  • competentItrivioIntegration.itrivioCompanyId=1
    (Id of the company you are setting it for)
  • competentItrivioIntegration.userCreatorItrivioUserId=2
    (ID of the user - existing in the system - in whos name the courses will be created. Someone with Admin roles)
  • competentItrivioIntegration.newUserSubtypeId=1
    (ID of subtype of user in Competent? - for when creating new users - probably)
  • competentItrivioIntegration.newActivitySubtypeId=2
    (ID of subtype of Activity? - when creating new activities - probably)
  • competentItrivioIntegration.newActivityTargetFolderId=20
    (ID of folder in iTrivio in which to create new Activites)
  • competentItrivioIntegration.auth.userId=2
    (ID of user in whose name the authorisation of running the course will be done?)
  • competentItrivioIntegration.auth.key=
    (secret key for JWT token)
  • competentItrivioIntegration.auth.environment=demo
    (authentication environment, used in JWT token I think)

iTrivio part

Run the url http://localhost:8080/(companyUrl/)setCompanyConfig.html of course on the domain your iTrivio runs and with the companyUrl of the comany you are setting this for.

Fill in the settings COMPETENT_INTEGRATION_:

  • COMPETENT_INTEGRATION_ENABLED (set to true)
  • COMPETENT_INTEGRATION_TARGET_FOLDER_ID (ID of folder in iTrivio in which to create new Activites)
  • COMPETENT_INTEGRATION_API_URL (url where competent is running eg.: http://localhost:9000/)
  • COMPETENT_INTEGRATION_USERGROUP_ID (ID of usergroup in iTrivio in which new users will be created)
  • COMPETENT_INTEGRATION_COURSE_TEMPLATE (optional - ID of course template in which new courses will be created)

(Save the settings... )

Now open the file /com.itrivio/src/main/resources/settings.properties and set the two following properties:

environment.id=croco (must match the competentItrivioIntegration.auth.environment property from Competent)
jwt.key=CCzzzQYDR1HTdfe67zoa (must match the competentItrivioIntegration.auth.key property from Competent)

Final setting test

Thats it, you should be good to go. Now run both Apps, DO NOT TOUCH ITRIVIO FROM NOW ON. Go to Competent, create some Activity and in Detail, set the RUN_TYPE (Typ spouštění) to iTrivio, then select in type and hit Save and Create in iTrivio button. If it works, you are almost good to go. Now try to Edit the course, add one page and then try to run it. if THAT works, you are all set.

Tags:
Created by admin admin on 2020/04/26 02:04