Competent - iTrivio integration

Version 3.1 by Ondřej Steffl on 2020/04/26 11:21

Software to be installed

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

iTrivio 2.9.017

Competent 33

Configuration

This configuration describes 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 and user management - after integration configuration there will be no need to access iTrivio as an administrator or student except modifying content of course and playing course.

Prerequisities

Edit

First be sure you can run both Apps separately ofc emoticon_smile Note on which address each of them runs (including ports). Then to link them:

Competent part

Edit

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=Z1zzzQYY91mDNdGWKzoa
    (secret key for JWT token)
  • competentItrivioIntegration.auth.environment=demo
    (authentication environment, used in JWT token I think)

iTrivio part

Edit

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... :-P )

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

Edit

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