Skip to content

Commit

Permalink
Merge pull request #10 from bigbank-as/feature/FIP-findProcess
Browse files Browse the repository at this point in the history
Finish findProcess
  • Loading branch information
evertisland authored Sep 29, 2017
2 parents 84e495d + adeb985 commit 5bb82bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions client_interface.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package go_camunda_client

import "github.com/bigbank-as/go_camunda_client/rest/dto"

type CamundaClient interface {
StartProcess(processDefinitionKey string, request interface{}) (Process, error)
GetProcess(processId string) (Process, error)
FindProcess(query string) (ProcessInstance, error)
FindProcess(query string) ([]ProcessInstance, error)
GetProcessVariable(processId string, variableName string) (VariableResponse, error)
GetNextTask(processId string) (Task, error)
GetAllTasks(processId string) ([]Task, error)
Expand Down
4 changes: 2 additions & 2 deletions rest/client_rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func (client *camundaClientRest) GetProcess(processId string) (go_camunda_client
return process, err
}

func (client *camundaClientRest) FindProcess(query string) ([]dto.ProcessInstance, error) {
var process []dto.ProcessInstance
func (client *camundaClientRest) FindProcess(query string) ([]go_camunda_client.ProcessInstance, error) {
var process []go_camunda_client.ProcessInstance
response, err := client.doRequest("GET", "process-instance?" + query)
if err == nil {
err = client.parseResponseJson(response, &process)
Expand Down

0 comments on commit 5bb82bd

Please sign in to comment.