Hello, I have a task created in my task manager, calling my Business Service class, and it's working fine. But I need to know the ID of the task, I searched within the class  %SYS.Task.Definition and found nothing related.
 Class Example.Tasks Extends %SYS.Task.Definition
{

Property BusinessService As %String [ InitialExpression = "Example" ];


Method OnTask() As %Status
{
  SET tSC = $$$OK
  TRY {
  
  SET tSC = ##Class(Ens.Director).CreateBusinessService(..BusinessService,.tBS)
  SET tRequest = ##class(Ens.Request).%New()
  SET tSC = tBS.OnProcessInput(tRequest,.tResponse)
  KILL tBS  
  
  
  CATCH  {
   SET tSC = $System.Status.GetErrorText(e)
  }
  QUIT tSC
}

}
</pre>



 

</body></html>