Class: Camunda::Tasklist::UserTasks
- Defined in:
- lib/camunda/tasklist/user_tasks.rb
Class Method Summary collapse
-
.all ⇒ Object
rubocop:disable Metrics:MethodLength.
- .run_mutation(mutation) ⇒ Object
Methods inherited from API
Class Method Details
.all ⇒ Object
rubocop:disable Metrics:MethodLength
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/camunda/tasklist/user_tasks.rb', line 6 def self.all # rubocop:disable Metrics:MethodLength query = "{ tasks(query: { state: CREATED }) { id taskDefinitionId name taskState assignee taskState formKey processDefinitionId completionTime processName variables { name value } } }" post(query: query)['data']['tasks'] end |
.run_mutation(mutation) ⇒ Object
29 30 31 |
# File 'lib/camunda/tasklist/user_tasks.rb', line 29 def self.run_mutation(mutation) post(query: mutation) end |