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?
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.
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.
Currency Format in Textbox

I have it working but I noticed that it does not a[…]

I am having an issue with summing the values in a […]

Cancel Cases

Hello, I´m not sure if this would help with […]

Hello, The similar topic has been discussed here:[…]