Type | Read/write | Author | Availability |
Read | FINBOURNE | Provided with LUSID |
Providing you have sufficient access control permissions, the Workflow.TaskDefinition
provider enables you to write a Luminesce SQL query that retrieves task definitions from the Workflow Service.
See also: Workflow.TaskDefinition.Action, Workflow.TaskDefinition.Schema, Workflow.TaskDefinition.Transition
Basic usage
select * from Workflow.TaskDefinition where <filter-expression>
Data fields
By default, Workflow.TaskDefinition
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.TaskDefinition' and FieldType = 'Column';
Note: Fields marked 'main' are returned by queries that select a caret character, for example
select ^ from Workflow.TaskDefinition
.
Examples
Note: For more example Luminesce SQL queries, visit our Github repo.
Example 1: Retrieve all task definitions
select * from Workflow.TaskDefinition;
Example 2: Retrieve task definitions created by a particular user
select * from Workflow.TaskDefinition where CreatedBy = '00ujiW7gSOp024j7Fg98';
Example 3: Retrieve states for a particular task definition
select States from Workflow.TaskDefinition where Scope = 'approvals' and Code = 'dataApproval';