Move Task in Debug
  • 16 Oct 2020
  • 2 Minutes To Read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Move Task in Debug

  • Print
  • Share
  • Dark
    Light

Move task to next node

Method for moving tasks between nodes in debug mode.

Note: Be sure to change process state to "debug" before you start debugging

URL

https://api.corezoid.com/api/2/download/{API_LOGIN}/{GMT_UNIXTIME}/{SIGNATURE}

Request Body

{
    "ops": [
        {
            "type": "step_next",
            "obj": "task",
            "obj_id": {{TASK_ID}},
            "conv_id": {{CONV_ID}},
            "branch": "logic",            
            "data": {{DATA}},
            "company_id": "i404856373"            
        }
    ]
}
Parameter Type Required Description Possible value
ops JSON Object + The list of operations to proceed via Corezoid API. A parameter keeping JSON objects with operations * The number is user-limited by RPS limit.
type string + A request type step_next
obj string + An object of request task
obj_id string + Identifier of the created object (task)
conv_id number / number as string + An ID of Process or State diagram An ID of an existing Process or State diagram
branch string - logic
data JSON Object + Object with key-value pairs describing the necessary parameters
company_id string - An ID of an Company An ID of an existing Company

Response Body

{
    "request_proc": "ok",
    "ops": [
        {
            "id": "",
            "proc": "ok",
            "obj": "task",
            "obj_id": "5f2c12c3513aa01f9a5f6ee1",
            "prev_conv_id": 784108,
            "prev_conv_name": "Process #1",
            "prev_node_id": "5f2ade8b82ba96377a59d7ad",
            "prev_node_name": "Channel?",
            "conv_id": 784108,
            "conv_name": "Process #1",
            "node_id": "5f2ade8b513aa01f9a53810d",
            "node_name": "Undefined channel",
            "data": {},
            "prev_logic": [],
            "prev_semaphor": [],
            "branches": [],
            "logic": [],
            "history": [
                {
                    "time": 1596723907,
                    "prev_conv_id": 784108,
                    "conv_id": 784108,
                    "prev_node_id": null,
                    "node_id": "5f2ade8b513aa01f9a538100",
                    "status": 1,
                    "data": "{}"
                },
                ......
            ]
        }
    ]
}
Parameter Type Description Possible value
request_proc string The overall processing status of all transactions from the request ok, error
ops JSON Object The list of operations proceeded via Corezoid API. A parameter keeping JSON objects with operations
id string A request id empty
proc string The processing status of a specific operation ok, error
obj string The list of report data
obj_id string The identifier of the object (task)
prev_conv_id number The identifier of Process or State diagram where the task was previously ---
prev_conv_name string The name of Process or State diagram where the task was previously ---
prev_node_id string The identifier of Node where the task was previously ---
prev_node_name string The name (title) of Node where the task was previously ---
conv_id number The identifier of Process or State diagram where the task currently processing ---
conv_name string The name of Process or State diagram where the task currently processing ---
node_id string The identifier of Node where the task currently processing ---
node_name string The name (title) of Node where the task currently processing ---
data JSON Object Object with key-value pairs of parameters passed on current step ---
prev_logic array ---
prev_semaphor array ---
branches array ---
logic array ---
history array JSON Object An array of tracks of task steps
history.time number --- ---
history.prev_conv_id number --- ---
history.conv_id number --- ---
history.prev_node_id string --- ---
history.node_id string --- ---
history.status number --- ---
history.data string --- ---
Was This Article Helpful?