From version < 2.1 >
edited by admin admin
on 2020/04/26 04:32
To version < 3.1 >
edited by Ondřej Steffl
on 2020/04/26 11:21
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.admin
1 +XWiki.osteffl
Content
... ... @@ -9,7 +9,76 @@
9 9  
10 10  = Configuration =
11 11  
12 -Both iTrivio and Competent should be fresh installations, should be tested that they
12 +This configuration describes basic scenario where
13 13  
14 +* Both iTrivio and Competent are fresh installations
15 +* Login with default iTrivio and Competent admin accounts were successfully tested
16 +* 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.
14 14  
15 -
18 +
19 += Prerequisities =
20 +
21 +[[Edit>>url:https://wikitest.educasoft.net/bin/edit/Dev%20Environment%20Setup/Competent%20%3C-%3E%20Itrivio/WebHome?section=1]]
22 +
23 +* [[Competent>>url:https://wikitest.educasoft.net/bin/view/Dev%20Environment%20Setup/Competent/]] installed and configured
24 +* [[Itrivio>>url:https://wikitest.educasoft.net/bin/view/Dev%20Environment%20Setup/iTrivio/]] installed and configured
25 +
26 +First be sure you can run both Apps separately ofc [[image:https://wikitest.educasoft.net/resources/icons/silk/emoticon_smile.png?cache-version=1585572528000||alt="emoticon_smile"]] Note on which address each of them runs (including ports). Then to link them:
27 +
28 += Competent part =
29 +
30 +[[Edit>>url:https://wikitest.educasoft.net/bin/edit/Dev%20Environment%20Setup/Competent%20%3C-%3E%20Itrivio/WebHome?section=2]]
31 +
32 +in application.properties, or in your own application-yourNameShortcut.properties file set the following propeties:
33 +
34 +* **competentItrivioIntegration.enabled=true**
35 +//(true to allow the connection between apps)//
36 +* **competentItrivioIntegration.itrivioCompanyUrlContext=/test**
37 +//(url name of the company for which you are setting the connection, leave empty if the only company is the root)//
38 +* **competentItrivioIntegration.url=http:~/~/localhost:8080/**
39 +//(url of the iTrivio app)//
40 +* **competentItrivioIntegration.linkUrl=http:~/~/127.0.0.1:8080**
41 +//(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)//
42 +* **competentItrivioIntegration.itrivioCompanyId=1**
43 +//(Id of the company you are setting it for)//
44 +* **competentItrivioIntegration.userCreatorItrivioUserId=2**
45 +//(ID of the user - existing in the system - in whos name the courses will be created. Someone with Admin roles)//
46 +* **competentItrivioIntegration.newUserSubtypeId=1**
47 +//(ID of subtype of user in Competent? - for when creating new users - probably)//
48 +* **competentItrivioIntegration.newActivitySubtypeId=2**
49 +//(ID of subtype of Activity? - when creating new activities - probably)//
50 +* **competentItrivioIntegration.newActivityTargetFolderId=20**
51 +//(ID of folder in iTrivio in which to create new Activites)//
52 +* **competentItrivioIntegration.auth.userId=2**
53 +//(ID of user in whose name the authorisation of running the course will be done?)//
54 +* **competentItrivioIntegration.auth.key=Z1zzzQYY91mDNdGWKzoa**
55 +//(secret key for JWT token)//
56 +* **competentItrivioIntegration.auth.environment=demo**
57 +//(authentication environment, used in JWT token I think)//
58 +
59 += iTrivio part =
60 +
61 +[[Edit>>url:https://wikitest.educasoft.net/bin/edit/Dev%20Environment%20Setup/Competent%20%3C-%3E%20Itrivio/WebHome?section=3]]
62 +
63 +Run the url [[http:~~/~~/localhost:8080/(companyUrl/)setCompanyConfig.html>>url:http://localhost:8080/setCompanyConfig.html?locale=cs]] of course on the domain your iTrivio runs and with the companyUrl of the comany you are setting this for.
64 +
65 +Fill in the settings COMPETENT_INTEGRATION_:
66 +
67 +* **COMPETENT_INTEGRATION_ENABLED**// (set to true)//
68 +* **COMPETENT_INTEGRATION_TARGET_FOLDER_ID **//(ID of folder in iTrivio in which to create new Activites)//
69 +* **COMPETENT_INTEGRATION_API_URL **//(url where competent is running eg.: //[[http:~~/~~/localhost:9000/>>url:http://localhost:9000/]]//)//
70 +* **COMPETENT_INTEGRATION_USERGROUP_ID **//(ID of usergroup in iTrivio in which new users will be created)//
71 +* **COMPETENT_INTEGRATION_COURSE_TEMPLATE **//(optional - ID of course template in which new courses will be created)//
72 +
73 +//(Save the settings... :-P )//
74 +
75 +Now open the file /com.itrivio/src/main/resources/settings.properties and set the two following properties:
76 +
77 +**environment.id=croco**// (must match the **competentItrivioIntegration.auth.environment** property from Competent)//
78 +**jwt.key=CCzzzQYDR1HTdfe67zoa **//(must match the **competentItrivioIntegration.auth.key** property from Competent)//
79 +
80 += Final setting test =
81 +
82 +[[Edit>>url:https://wikitest.educasoft.net/bin/edit/Dev%20Environment%20Setup/Competent%20%3C-%3E%20Itrivio/WebHome?section=4]]
83 +
84 +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.