checking the status of the business operation

Beginner, Ensemble

There are situations where we want to provide immediate feed back to inbound Web Service that a particular business operation is not running (status <> "running").  We don't even want to queue up the message.  We just want the webservice to respond with an error stating the business operation is down.

  • 0
  • 0
  • 102
  • 2
  • 2


Hi James

You could try see if you could get the job status of your Business Operation by querying the Enumerate() class query of the Ens.Job class.

SET JobStatus=""
&sql(SELECT Status into :JobStatus FROM Ens.Job_Enumerate() WHERE ConfigName='YourBusinessOperation')

The jobstatus should be "running" or "dequeuing". 

I hope it helps.


Stelios, Yes...this is perfect!!  Thank you so much for answering so quickly.  Easy clean solution to add to our business operations.

Thanks again Stelios...huge help!


All possible job states (from

  • $$$eJobStatusStarting
  • $$$eJobStatusRegistered
  • $$$eJobStatusVisiting
  • $$$eJobStatusRunning
  • $$$eJobStatusDeQueuing
  • $$$eJobStatusQuiescent
  • $$$eJobStatusError
  • $$$eJobStatusHalted
  • $$$eJobStatusTerminated

The Ens.Director has a classmethod "IsItemEnabled".