Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the Job/Task Tracking section the column "Status" uses several values, such as Pending, Scheduled, Processing, Error etc. 

When you use the method api.find for " JST ", you receive another set (Job Status Tracker), there is a set of values to represent the statusjob state

Code Block
api.find("JST", 0, 1, "-createDate", api.filter("targetObject", o?.typedId))?.find()

If you need However, in the UI the states can have different names depending on the object type. For example, a job in JST ends up as "FINISHED", whereas in Data Analyzer > Data Loads the same job has the status "ready".

To be able to map these two sets of values, you can always look it the status up in the code – for your specific object. 

...

JST Status (public enum TrackerStatus)DMDataLoad StatusQuote Status
0: WAITING_FOR_DISPATCH (PENDING)
1: QUEUED_FOR_EXECUTION
2: PROCESSING
3: FAILED
4: FINISHED
5: CANCELLED
6: INTERRUPTED
0=draft
1=pending
2=scheduled
3=processing
4=scheduled dirty
5=error
6=ready
7=cancelled
0: DRAFT,
1: OFFER,
2: DEAL,
3: REVOKED,
4: SUPERSEDED,
5: INVALIDATED,
6: LOST,
7: PARTIALDEAL

This is just an example; always verify it in the code. The numbers can also be useful for Support/Operations, since this is how the given state is saved in the database.