cancel
Showing results for 
Search instead for 
Did you mean: 

Question regarding the Rest-API

srón
Champ in-the-making
Champ in-the-making
I would like to call into Your attention a phenomenon that I could not only observe using activiti-5.15.1 but also after deploying the latest wars, those of activity activiti-5.16.3. Even in the latest version of activity, it seems to me that some parts of the Rest API are not yet implemented.

If I open the activity-explorer GUI, then – under administration - I see a model named ACT_RE_MODEL with the id 50. But  http://kermit:kermit@myhostSmiley Tongueort/repository/models

Results in:


<!DOCTYPE html>
<html>
    <head>
        <title>Apache Tomcat/8.0.14 - Error report</title>
        <style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style>
    </head>
    <body>
        <h1>HTTP Status 404 - /activiti-rest/repository/models/50</h1>
        <div class="line"></div>
        <p>
            <b>type</b> Status report
        </p>
        <p>
            <b>message</b>
            <u>/activiti-rest/repository/models/50</u>
        </p>
        <p>
            <b>description</b>
            <u>The requested resource is not available.</u>
        </p>
        <hr class="line">
            <h3>Apache Tomcat/8.0.14</h3>
        </body>
    </html>


…as if it was not there. http://kermit:kermit@myhostSmiley Tongueort/activiti-rest/service/runtime/tasks

…results in


{
    "data": [],
    "total": 0,
    "start": 0,
    "sort": "id",
    "order": "asc",
    "size": 0
}


Even though I saw a number of tasks under administration -> ACT_HI_TASKINST .
1 REPLY 1

trademak
Star Contributor
Star Contributor
The Explorer and REST app don't share the same database by default, because they are both using an in-memory H2 database. You need to change the db.properties to share the same database config.

Best regards,