cancel
Showing results for 
Search instead for 
Did you mean: 

REST - Process definition description is always null

mjacobi
Champ in-the-making
Champ in-the-making
Hello,

I'm querying the Activiti REST-API for process definitions like this:
http://server:8080/activiti-rest/service/repository/process-definitions

which works fine.

The problem is, the resulting response has always
processdescription: null
.  I tried to use the <em>Documentation</em> field in the Activiti Explorer with no results.

I haven't found anything regarding the process definition description in the userguide. Any suggestions?
7 REPLIES 7

mjacobi
Champ in-the-making
Champ in-the-making
update: I'm using Activiti 5.13 (explorer and REST-API)

trademak
Star Contributor
Star Contributor
The description field is filled with the value of the documentation child element of the process element in the BPMN XML.
When you don't have a documentation child element, the value will be null.

Best regards,

mjacobi
Champ in-the-making
Champ in-the-making
Works! Thanks.
It might be helpful if the <code><documentation></code> tag appears in the userguide not only in the context of user tasks but also in the context of process definition.
Cheers

anafluid
Champ in-the-making
Champ in-the-making
Hello,

I am using the activiti-explorer to model BPMN processes and to import the XML of the BPMN process. When the process gets deployed, it seems that the <documentation> child element of the process disappears. Consequently, the Activiti REST-API for process definitions always returns null for process description ("description":null,").

An example scenario:
1) We have a process model that contains the documentation tag.
2) We save the model, and we deploy the process.
3) If we now call the GET repository/process-definitions/{processDefinitionId} method, we get an empty description (description":null,). Also if we convert it to an editable model and look at it in the modeler or export it to the xml, the documentation tag is gone.

In what way can one store the process description for the deployed process?

anafluid
Champ in-the-making
Champ in-the-making
Another thing - we are using the new api, e.g. activiti-explorer/api/repository/process-definitions/process:4:1878

frederikherema1
Star Contributor
Star Contributor
Are you using the latest version of the explorer? If so, can you create a JIRA issue for this problem?

aokelly
Champ in-the-making
Champ in-the-making
Hello,
We are seeing the same issue. If you upload a process definition with a documentation tag and immediately export the same process definition, the documentation flag will not be present.
We are using the 5.17 version.