cancel
Showing results for 
Search instead for 
Did you mean: 

What is wrong with my resourcedata?

zloy
Champ in-the-making
Champ in-the-making
Hi, I'm new to Activiti and I stuck in getting task forms.

I requested <tt>http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources</tt>
and got:
<ruby>
[{"id"=>"VacationProcess.VacationProcess.png",
  "url"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/VacationProcess...",
  "contentUrl"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resourcedata/VacationProc...",
  "mediaType"=>"image/png",
  "type"=>"resource"},
{"id"=>"VacationProcess.bpmn",
  "url"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/VacationProcess...",
  "contentUrl"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resourcedata/VacationProc...",
  "mediaType"=>"text/xml",
  "type"=>"processDefinition"},
{"id"=>"__MACOSX/forms/._adjust.yaml",
  "url"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/__MACOSX%2Fform...",
  "contentUrl"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resourcedata/__MACOSX%2Ff...",
  "mediaType"=>nil,
  "type"=>"resource"},
{"id"=>"__MACOSX/forms/._handle_request.yaml",
  "url"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/__MACOSX%2Fform...",
  "contentUrl"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resourcedata/__MACOSX%2Ff...",
  "mediaType"=>nil,
  "type"=>"resource"},
{"id"=>"__MACOSX/forms/._start.yaml",
  "url"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/__MACOSX%2Fform...",
  "contentUrl"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resourcedata/__MACOSX%2Ff...",
  "mediaType"=>nil,
  "type"=>"resource"},
{"id"=>"forms/adjust.yaml",
  "url"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/forms%2Fadjust....",
  "contentUrl"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resourcedata/forms%2Fadju...",
  "mediaType"=>nil,
  "type"=>"resource"},
{"id"=>"forms/handle_request.yaml",
  "url"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/forms%2Fhandle_...",
  "contentUrl"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resourcedata/forms%2Fhand...",
  "mediaType"=>nil,
  "type"=>"resource"},
{"id"=>"forms/start.yaml",
  "url"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/forms%2Fstart.y...",
  "contentUrl"=>
   "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resourcedata/forms%2Fstar...",
  "mediaType"=>nil,
  "type"=>"resource"}]
</ruby>

But when I try any "url" or "contentUrl" I get <b>400</b>.

Also if I try to use "Id", e.g. "http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/<b>forms/start.yaml</b>" I get <b>404</b> for all entries. What is wrong?
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor

zloy
Champ in-the-making
Champ in-the-making
The server returns <b>200</b> for GET http://our.stage.server/activiti-rest/service/repository/deployments/93951/resources/VacationProcess...

Also, if I move form from forms subdirectory to the root of archive with the process definition, I can get that form. I got 400 if only a form is placed in forms subdirectory.

jbarrez
Star Contributor
Star Contributor
Can you check with what name it is in the ACT_GE_BYTEARRAY?

zloy
Champ in-the-making
Champ in-the-making
Hi,
sorry for late answer, I had no opportunity to check it out before.
So, I got these values in explorer:
<code>
ID_ REV_ NAME_   DEPLOYMENT_ID_ BYTES_  GENERATED_
93958 1 forms/start.yaml 93951   [B@4be4f0f1 0
</code>

jbarrez
Star Contributor
Star Contributor
Okay. And what happens if you don't put it in a forms folder. Does it work in that case?

zloy
Champ in-the-making
Champ in-the-making
Sorry, for late answer.

I ended up with moving forms files from forms subdirectory to the archive root directory.
And now I can retrieve form file content by quering "http://our.stage.server/activiti-rest/service/repository/deployments/xxxxx/resources/start.yaml"