parent
79a4119351
commit
b4a555e3da
|
|
@ -78,6 +78,8 @@ message StartActionResponse {
|
||||||
|
|
||||||
message StartActionAndWaitRequest {
|
message StartActionAndWaitRequest {
|
||||||
string action_id = 1;
|
string action_id = 1;
|
||||||
|
|
||||||
|
repeated StartActionArgument arguments = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message StartActionAndWaitResponse {
|
message StartActionAndWaitResponse {
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,10 @@ func (api *oliveTinAPI) LocalUserLogin(ctx ctx.Context, req *pb.LocalUserLoginRe
|
||||||
func (api *oliveTinAPI) StartActionAndWait(ctx ctx.Context, req *pb.StartActionAndWaitRequest) (*pb.StartActionAndWaitResponse, error) {
|
func (api *oliveTinAPI) StartActionAndWait(ctx ctx.Context, req *pb.StartActionAndWaitRequest) (*pb.StartActionAndWaitResponse, error) {
|
||||||
args := make(map[string]string)
|
args := make(map[string]string)
|
||||||
|
|
||||||
|
for _, arg := range req.Arguments {
|
||||||
|
args[arg.Name] = arg.Value
|
||||||
|
}
|
||||||
|
|
||||||
execReq := executor.ExecutionRequest{
|
execReq := executor.ExecutionRequest{
|
||||||
Action: api.executor.FindActionBindingByID(req.ActionId),
|
Action: api.executor.FindActionBindingByID(req.ActionId),
|
||||||
TrackingID: uuid.NewString(),
|
TrackingID: uuid.NewString(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue