API

API mub | Workflow - Get list workflow BP

This article is itended to document the API mub | GetLIst - with filters BP. Route: GET => http://api.mub.cloud/api/v2/workflow API Field Field Type Allowed Operators Values id Number = igual = menor ou igual = maior …

Moises ScarpinPublicado 08 de fev. de 20241 min de leitura

This article is itended to document the API mub | GetLIst - with filters BP.

Route: GET => http://api.mub.cloud/api/v2/workflow
API Field Field Type Allowed Operators Values
id Number = igual
= menor ou igual
= maior ou igual
= entre
process_generals_id Number = menor ou igual
= maior ou igual
status Workflow Status = igual "PENDING" "FINISHED" "REJECTED" "INCORRECTION"
start_date_time timestamp = igual Data no formato time stamp
= menor ou igual
= maior ou igual
= entre
object_type enum = igual "ITEM" "WORKFLOW" "BUSINESS_PARTNER" e dominios customizados (usar o CODE)
sla_date_time timestamp = igual Data no formato time stamp
= menor ou igual
= maior ou igual
= entre
end_date_time timestamp = igual Data no formato time stamp
= menor ou igual
= maior ou igual
= entre
users_id Number = igual
= menor ou igual
= maior ou igual
= entre
process_form_generals_id Number = igual
= menor ou igual
= maior ou igual
= entre
 

See below full object of request and expected response.

Request example:

http://api.mub.cloud/api/v2/workflow?filter=statusPENDING,INCORRECTION,FINISHED

Response example:

{
    "success"true,
    "message""Workflows successfully listed!",
    "data": [
        {
            "id"333
        },
        {
            "id"334
        },
        {
            "id"335
        },
        {
            "id"364
        },
        {
            "id"397
        },
        {
            "id"430
        },
        {
            "id"431
        },
        {
            "id"432
        },
        {
            "id"463
        },
        {
            "id"496
        }
    ]
}