Helps you generate reports about the work being managed in your Workflow Manager system.
You can do the following using methods in the class:
- generate a report as HTML for viewing the overall job information based on a criteria defined in the report
- get information about all the reports configured in the Workflow Manager system
- get the url for the report content for a specific report
- get the raw set report data by executing a report
- get the XSLT stylesheet for a specific report
Constructors
new ReportTask(properties)
| properties Object See the properties for a list of all the properties that may be passed into the constructor. | 
Property Overview
| Name | Type | Summary | |
|---|---|---|---|
| String | The name of the class.more details | more details | |
| Object | The options to be used for data requests.more details | more details | |
| String | URL to the ArcGIS Workflow Manager REST service.more details | more details | |
Property Details
- declaredClassStringreadonly
- The name of the class. The declared class name is formatted as - esri.folder.className.
- requestOptionsObject
- The options to be used for data requests. These options can also be controlled through the - requestOptionsmethod parameter.
- urlString
- URL to the ArcGIS Workflow Manager REST service. 
Method Overview
| Name | Return Type | Summary | |
|---|---|---|---|
| Promise | Generates a report and returns the output as formatted HTML.more details | more details | |
| Promise | Gets all the reports that are configured in the Workflow Manager system.more details | more details | |
| String | Returns the URL string for the report content.more details | more details | |
| Promise | Executes a report and returns the raw report data.more details | more details | |
| Promise | Gets the XSLT stylesheet for the specified report.more details | more details | |
Method Details
- generateReport(params, requestOptions){Promise}
- Generates a report and returns the output as formatted HTML. Parameters:params Object- See the object specifications in table below for the structure of the - paramsobject.Specification:reportId Number- The id of the report. user String- The user name requesting the report. optionalrequestOptions Object- Additional options to be used for the data request (will override requestOptions defined during construction). Returns:- Type - Description - Promise - When resolved, returns the formatted HTML report. 
- getAllReports(requestOptions){Promise}
- Gets all the reports that are configured in the Workflow Manager system. Parameter:optionalrequestOptions Object- Additional options to be used for the data request (will override requestOptions defined during construction). Returns:- Type - Description - Promise - When resolved, returns an array of reports. 
- getReportContentUrl(params){String}
- Returns the URL string for the report content. Parameters:params Object- See the object specifications in table below for the structure of the - paramsobject.Specification:reportId Number- The id of the report. user Number- The username of the user requesting the report content. Returns:- Type - Description - String - Returns the URL string for the report content. 
- getReportData(params, requestOptions){Promise}
- Executes a report and returns the raw report data. Parameters:params Object- See the object specifications in table below for the structure of the - paramsobject.Specification:reportId Number- The id of the report. user String- The username of the user requesting the report data. optionalrequestOptions Object- Additional options to be used for the data request (will override requestOptions defined during construction). Returns:- Type - Description - Promise - When resolved, returns a ReportData object. 
- getReportStylesheet(reportId, requestOptions){Promise}
- Gets the XSLT stylesheet for the specified report. Parameters:reportId Number- The id of the report. optionalrequestOptions Object- Additional options to be used for the data request (will override requestOptions defined during construction). Returns:- Type - Description - Promise - When resolved, returns the XSLT stylesheet for the specified report as a string. 
Type Definitions
- ReportObject
- Report represents a configured report in the Workflow Manager system. 
- ReportDataObject
- ReportData is the generated result of a report after it has been executed. Properties:columns String[]- The name of columns returned as part of the report. description String- A description of the report. groups ReportDataGroup[]- The aggregation of the report data into subcategories. title String- The title of the report. 
- ReportDataGroupObject
- ReportDataGroup aggregates the report results into user defined categories. Properties:aggregateLabel String- The label of the aggregate category as defined in the report, eg. Total Jobs. aggregateValue String- The value of the aggregate category based on the calculation defined in the report section options. row String[]- The rows containing the data returned in the report. value String- The data value based on which the section is created.