Type | Read/write | Author | Availability |
Read | FINBOURNE | Provided with LUSID |
Providing you have sufficient access control permissions, the Workflow.Worker.ResultField
provider enables you to write a Luminesce SQL query that retrieves the output, or result fields, of workers from the Workflow Service.
See also: Workflow.Worker, Workflow.Worker.Parameter
Basic usage
select * from Workflow.Worker.ResultField where <filter-expression>
Data fields
By default, Workflow.Worker.ResultField
returns a table of data populated with particular fields (columns). You can return a subset of these fields.
To list fields available to return, their data types, whether fields are considered 'main', and an explanation for each, run the following query using a suitable tool:
select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Workflow.Worker.ResultField' and FieldType = 'Column';
Note: Fields marked 'main' are returned by queries that select a caret character, for example
select ^ from Workflow.Worker.ResultField
.
Examples
Note: For more example Luminesce SQL queries, visit our Github repo.
Example 1: Retrieve the result fields for a worker
select * from Workflow.Worker.ResultField where Scope = 'Finbourne-Examples' and Code = 'UpsertPortfolio';
Example 2: Retrieve the data type of a particular result field
select Type from Workflow.Worker.ResultField where Name = 'PortfolioCode' and Scope = 'Finbourne-Examples' and Code = 'UpsertPortfolio';