-
Notifications
You must be signed in to change notification settings - Fork 1
/
Execution.h
74 lines (54 loc) · 1.55 KB
/
Execution.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef EXECUTION_H
#define EXECUTION_H
#include "CurlProcess.h"
#include <string>
#include <vector>
#include "soapH.h"
#include "Config.h"
class Execution: public CurlProcess
{
public:
Execution(Config *pconfig);
Config *m_pconfig;
bool initExecution(
struct soap *soap,
api__initExecution* api__initExecution_);
api__Execution * m_api__Execution;
bool listExecutions(struct soap *soap,
api__listExecutions* api__listExecutions_
);
std::vector<api__ArrayOfExecutions*> *m_returnedValueListExecutions;
bool deleteExecution(struct soap *soap,
api__deleteExecution* api__deleteExecution_
);
bool playExecution(struct soap *soap,
std::string executionId
);
// It will return to m_api__Execution
bool getExecution(struct soap *soap,
std::string executionId
);
api__ExecutionStatus convert_soma_workflow_status_to_carmin_status(std::string soma_workflow_status);
// It will return to m_api__Execution
bool killExecution(struct soap *soap,
std::string executionId
);
bool getStdOutErr(struct soap *soap,
std::string executionId
);
bool getStdOut(struct soap *soap,
std::string executionId
);
bool getStdErr(
struct soap *soap,
std::string executionId
);
std::vector<std::string> * m_std_out;
std::vector<std::string> * m_std_err;
bool updateExecution(struct soap *soap,
std::string executionId,
std::string name,
std::string value
);
};
#endif