Skip to main content
August 3, 2023
Question

How to get status Id of for each task status

  • August 3, 2023
  • 4 replies
  • 2 views

Hi Guys,

I want to identify for each status ( "Not Active", "Active", "Completed", "Cancelled", "Paused", "Paused by Exception" and "Processes with Errors"). I got only one paused by exception status Id is 8. The same way need all the status id. Please share your details.

Thanks,

Pradeep Sridharan

4 replies

mathieud0001
Brainy
August 3, 2023

https://docs.appian.com/suite/help/23.2/task-report-pattern.html

Here they are in order (1st item = 0 etc.):

/* Maps the "c5" / "Status" field values to status names */
  local!taskStatuses: {
    a!map(name: "Assigned",               icon: "user-o",             color: "#666666"),
    a!map(name: "Accepted",               icon: "user-check",         color: "ACCENT"),
    a!map(name: "Completed",              icon: "check-circle",       color: "POSITIVE"),
    a!map(name: "Not Started",            icon: "circle-o-large",     color: "#666666"),
    a!map(name: "Cancelled",              icon: "stop-circle",        color: "#fdb858"),
    a!map(name: "Paused",                 icon: "pause-circle",       color: "#666666"),
    a!map(name: "Aborted",                icon: "question-circle",    color: "#666666"),
    a!map(name: "Cancelled By Exception", icon: "minus-circle",       color: "#fdb858"),
    a!map(name: "Cancelled By Exception", icon: "times-circle",       color: "NEGATIVE"),
    a!map(name: "Submitted",              icon: "share",              color: "ACCENT"),
    a!map(name: "Running",                icon: "spinner",            color: "ACCENT"),
    a!map(name: "Error",                  icon: "exclamation-circle", color: "NEGATIVE")
  },

August 3, 2023

@mathieud0001 Here there is two cancelled by exception are there. Is this duplicate? Or  it means differentiate of "paused by exception" and "cancelled by exception". Please confirm. And also the status is starts from 0 or 1.? I heard from appian doc its start from 0. Please confirm.

mathieud0001
Brainy
August 3, 2023

Starts at 0.

You are correct - that is weird. I did some searching and it seems like this list might not be 100% accurate.

Here's an updated list based on the findings of those threads. Maybe someone at Appian can confirm which one it is (and update the official docs depending on the findings)? Any thoughts on this peter.lewis?

/* Maps the "c5" / "Status" field values to status names */
  local!taskStatuses: {
    a!map(name: "Assigned",               icon: "user-o",             color: "#666666"),
    a!map(name: "Accepted",               icon: "user-check",         color: "ACCENT"),
    a!map(name: "Completed",              icon: "check-circle",       color: "POSITIVE"),
    a!map(name: "Not Started",            icon: "circle-o-large",     color: "#666666"),
    a!map(name: "Cancelled",              icon: "stop-circle",        color: "#fdb858"),
    a!map(name: "Paused",                 icon: "pause-circle",       color: "#666666"),
    a!map(name: "Unattended",             icon: "question-circle",    color: "#666666"),
    a!map(name: "Aborted",                icon: "minus-circle",       color: "#fdb858"),
    a!map(name: "Cancelled By Exception", icon: "times-circle",       color: "NEGATIVE"),
    a!map(name: "Submitted",              icon: "share",              color: "ACCENT"),
    a!map(name: "Running",                icon: "spinner",            color: "ACCENT"),
    a!map(name: "Error",                  icon: "exclamation-circle", color: "NEGATIVE")
  },