Class: Camunda::Tasklist::UserTasks

Inherits:
API
  • Object
show all
Defined in:
lib/camunda/tasklist/user_tasks.rb

Class Method Summary collapse

Methods inherited from API

headers, post

Class Method Details

.allObject

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