cancel
Showing results for 
Search instead for 
Did you mean: 

GET repository/models problem

msellani
Champ in-the-making
Champ in-the-making
I deployed Activiti with mssql.
When I call then rest method GET repository/models the deploymentId is null and the parameter deployed doesn't work.
Can you help me?
TIA,
marco sellani

{
  "data": [
    {
      "name": "Attiweb",
      "key": null,
      "category": null,
      "version": 1,
      "metaInfo": "{\"name\":\"Attiweb\",\"revision\":1,\"description\":\"\"}",
      "deploymentId": null,
      "id": "4754",
      "url": "http://selik8:8080/activiti-rest/service/repository/models/4754",
      "createTime": "2014-02-19T11:34:13.823+0000",
      "lastUpdateTime": "2014-08-12T03:15:49.847+0000",
      "deploymentUrl": null
    },
    {
      "name": "Demo model",
      "key": null,
      "category": null,
      "version": 1,
      "metaInfo": "{\"name\":\"Demo model\",\"description\":\"This is a demo model\"}",
      "deploymentId": null,
      "id": "50",
      "url": "http://selik8:8080/activiti-rest/service/repository/models/50",
      "createTime": "2014-02-18T17:08:00.503+0000",
      "lastUpdateTime": "2014-02-18T17:08:00.583+0000",
      "deploymentUrl": null
    },
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
Are you sure the model has a deploymentID set? I double-checked the code, and this actually works, see: org.activiti.rest.service.api.repository.ModelCollectionResourceTest:99


   // Filter based on deployed=true
      url = RestUrls.createRelativeResourceUrl(RestUrls.URL_MODEL_COLLECTION) + "?deployed=true";
      assertResultsPresentInDataResponse(url, model1.getId());
     
      // Filter based on deployed=false
      url = RestUrls.createRelativeResourceUrl(RestUrls.URL_MODEL_COLLECTION) + "?deployed=false";
      assertResultsPresentInDataResponse(url, model2.getId());

msellani
Champ in-the-making
Champ in-the-making
ok, I verified that deploymentId is null in db also. Why? I regularry deployed the model with the activiti-explorer gui.
TIA,
marco.

msellani
Champ in-the-making
Champ in-the-making
some suggestions?
TIA, marco.

trademak
Star Contributor
Star Contributor
So you deployed these models to the Activiti Engine using the Activiti Explorer, is that correct?