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
#814442
I'm using the endpoint: http://wiki.processmaker.com/3.2/REST_A ... 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
#814449
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
<tas_description>...</tas_description>
and then use http://wiki.processmaker.com/3.2/REST_A ... ortProject to upload it.
User avatar
By amosbatto
#814469
Don't touch the BaseBpmnActivityPeer.php file.

Instead of using http://wiki.processmaker.com/3.2/REST_A ... te_project, you need to use http://wiki.processmaker.com/3.2/REST_A ... 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.
New REST POINT 404 NOT FOUNT

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.[…]