i

Please enable JavaScript to view this site.

These examples show how to create a case of a process, which is modeled using an agile forms template and allows you to execute an activity of the same.

 

Agile Form Modeling for Examples

Step 1

 

Model the "Rest API Test" agile form based on the "Purchase Requisitions" forms template.

 

 

C00078~1_img1

 

Step 2

 

Model the process related to the agile form "Rest API Test" based on the "Approval 1 Level" process template.

 

 

C00078~1_img2

 

Step 3

 

Select the previously created user as "Applicants" lane participant.

 

 

V0008 - H&M_ManUsu_ApiRest_img10

Cases Collection

 

Examples are implemented from Postman to execute each of the operations described in the following table. Previously, you must import the Cases collection

 

 

Operation

Description

getToken

Obtains token.

startCase

Creates a case for the created process.

The process code and the version of the modeled process properties must be shown.

The required fields of the first process activity called "Create request" must be shown and they must always be sent. Editable fields do not need to be sent.

executeCurrentActivity

Executes the “Correct request” activity by sending the “Telephone” and “Observations” fields and the first occurrence of the “lines.quantity” field.

The "Correct" button of the activity is executed.

In the uri, case number and activity number must be entered

{{base_uri}}/cases/<NRO_CASO>/activities/<NRO_ACTIVIDAD>/execute

Send us your comment
Share on Twitter Share on Linkedin Send by Email Print