Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By marcosfpa
I'm using the endpoint: ... te_project to create processes via API, I can create the flow, create the process with name and description ( prj_description ). However the tasks I can only send the name and I did not find in the documentation a parameter to send the description of the task ... Is there in the API how to send the description of the task?
User avatar
By amosbatto
There is no way to set the description for an activity, because the model for an activity (workflow/engine/classes/model/om/BaseBpmnActivityPeer.php) doesn't contain a description.

The only way to set the description of a task with REST is construct an XML file for the project which includes:
Code: Select all
and then use ... ortProject to upload it.
User avatar
By amosbatto
Don't touch the BaseBpmnActivityPeer.php file.

Instead of using ... te_project, you need to use ... ortProject .

In order to use this endpoint, you need to construct a .pmx file (which contains XML code) which has the following line of code in it:
Code: Select all
 <tas_description>My task description</tas_description> 
Export a process and then open the .pmx file and you will see the XML code that you need to use.

I am trying to create new REST API with 3.3.4-c[…]

New REST Endpoint 404 error

I try to do the same with 3.3.4-community I canno[…]

Hi Amos, Now migrating already done. How to : 1.[…]