System-Task-REST

Downloads16
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues

What's new in this version

Initial Release

intersystems-objectscript-template

This is a template for InterSystems ObjectScript Github repository. The template goes also with a few files which let you immediately compile your ObjectScript files in InterSystems IRIS Community Edition in a docker container

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

Clone/git pull the repo into any local directory

$ git clone https://github.com/intersystems-community/objectscript-docker-template.git

Open the terminal in this directory and run:

$ docker-compose build

  1. Run the IRIS container with your project:

$ docker-compose up -d

Get System task details in REST service

Create a web application and add this dispatcher class.

List of urls 1. Get all task list http://server:port/webapplication/task/alltask 2. filter task details by namespace, taskname etc... (Use SYS instead of %SYS) http://server:port/webapplication/task/alltask/SYS 3. Get list of upcoming task details http://server:port/webapplication/task/upcomingtask 4. Get list of on-demand task http://server:port/webapplication/task/ondemandtask 5. Get entire task history http://server:port/webapplication/task/taskhistory 6. Get task history for specific task http://server:port/webapplication/task/taskhistory/taskname

Sample JSON [ { "Last Start": "2023-08-21 09:17", "Completed": "2023-08-21 09:17", "Task Name": "ExportQueryToCSV", "Status": "1", "Result": "Success", "Task": "1001", "NameSpace": "LEARNING", "Routine": "Samples.TaskMgr.SQLExportTask", "Pid": "14188", "%ER Date": "", "%ER Error #": "", "Username": "_SYSTEM", "LogDate": "2023-08-21", "LogTime": "33446" } ]

task history for specific task http://localhost:52773/test/task/task/taskhistory/ExportQueryToCSV image

How to Test it

Open IRIS terminal:

``` $ docker-compose exec iris iris session iris

IPM installation
zpm "install System-Task-REST"
Rating
4 (1)
ObjectScript quality test
Passed
Updated on 07 December 2023
ObjectScript quality report
Category
Developer Environment
Works with
InterSystems IRISInterSystems IRIS for HealthCachéEnsemble
Tags
Info
Version
1.0.0
Last updated
2023-08-24
Repository
Open
Documentation
Open
License
Link