public ValueTask <IStartProcessResponse> StartAsync(IStartProcessRequest prm) { if (prm.Identity.Id == "test") { return(new ValueTask <IStartProcessResponse>(new StartResp())); } throw new ApiException(); }
public async ValueTask <IStartProcessResponse> StartAsync(IStartProcessRequest prm) { var i = await CreateAsync(prm.Identity); i = await RunAsync(i.Id, prm.Parameters); return(new StartProcessResponse() { InstanceId = i.Id }); }