diff --git a/cmd/flowrunner/main_test.go b/cmd/flowrunner/main_test.go index fe380a026..f8d67d9df 100644 --- a/cmd/flowrunner/main_test.go +++ b/cmd/flowrunner/main_test.go @@ -77,15 +77,15 @@ func TestPrintEvent(t *testing.T) { {events.NewContactRefreshed(session.Contact()), `👤 contact refreshed on resume`}, {events.NewContactTimezoneChanged(session.Environment().Timezone()), `🕑 timezone changed to 'America/Guayaquil'`}, {events.NewDialEnded(flows.NewDial(flows.DialStatusBusy, 3)), `☎️ dial ended with 'busy'`}, - {events.NewDialWait(urns.URN(`tel:+1234567890`), 20, 120, nil), `⏳ waiting for dial (type /dial )...`}, + {events.NewDialWait(urns.URN(`tel:+1234567890`), 20, 120, expiresOn), `⏳ waiting for dial (type /dial )...`}, {events.NewEmailSent([]string{"code@example.com"}, "Hi", "What up?"), `✉️ email sent with subject 'Hi'`}, {events.NewEnvironmentRefreshed(session.Environment()), `⚙️ environment refreshed on resume`}, {events.NewErrorf("this didn't work"), `⚠️ this didn't work`}, {events.NewFailure(errors.New("this really didn't work")), `🛑 this really didn't work`}, {events.NewFlowEntered(flow.Reference(false), "", false), `↪️ entered flow 'Registration'`}, {events.NewInputLabelsAdded("2a786bbc-2314-4d57-a0c9-b66e1642e5e2", []*flows.Label{sa.Labels().FindByName("Spam")}), `🏷️ labeled with 'Spam'`}, - {events.NewMsgWait(nil, nil, nil), `⏳ waiting for message...`}, - {events.NewMsgWait(&timeout, &expiresOn, nil), `⏳ waiting for message (3 sec timeout, type /timeout to simulate)...`}, + {events.NewMsgWait(nil, expiresOn, nil), `⏳ waiting for message...`}, + {events.NewMsgWait(&timeout, expiresOn, nil), `⏳ waiting for message (3 sec timeout, type /timeout to simulate)...`}, } for _, tc := range tests { diff --git a/flows/actions/testdata/TestResthookPayload_resthook_payload.snap b/flows/actions/testdata/TestResthookPayload_resthook_payload.snap index 8032a2858..599413378 100644 --- a/flows/actions/testdata/TestResthookPayload_resthook_payload.snap +++ b/flows/actions/testdata/TestResthookPayload_resthook_payload.snap @@ -55,13 +55,13 @@ "uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623" }, { - "arrived_on": "2018-07-06T12:30:23.123456Z", + "arrived_on": "2018-07-06T12:30:24.123456Z", "exit_uuid": "d898f9a4-f0fc-4ac4-a639-c98c602bb511", "node_uuid": "f5bb9b7a-7b5e-45c3-8f0e-61b4e95edf03", "uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9" }, { - "arrived_on": "2018-07-06T12:30:51.123456Z", + "arrived_on": "2018-07-06T12:30:52.123456Z", "exit_uuid": "9fc5f8b4-2247-43db-b899-ab1ac50ba06c", "node_uuid": "c0781400-737f-4940-9a6c-1ec1c3df0325", "uuid": "312d3af0-a565-4c96-ba00-bd7f0d08e671" @@ -71,7 +71,7 @@ "2factor": { "category": "", "category_localized": "", - "created_on": "2018-07-06T12:30:32.123456Z", + "created_on": "2018-07-06T12:30:33.123456Z", "input": "", "name": "2Factor", "node_uuid": "f5bb9b7a-7b5e-45c3-8f0e-61b4e95edf03", @@ -80,7 +80,7 @@ "favorite_color": { "category": "Red", "category_localized": "Red", - "created_on": "2018-07-06T12:30:28.123456Z", + "created_on": "2018-07-06T12:30:29.123456Z", "input": "", "name": "Favorite Color", "node_uuid": "f5bb9b7a-7b5e-45c3-8f0e-61b4e95edf03", @@ -89,7 +89,7 @@ "intent": { "category": "Success", "category_localized": "Success", - "created_on": "2018-07-06T12:30:46.123456Z", + "created_on": "2018-07-06T12:30:47.123456Z", "input": "Hi there", "name": "Intent", "node_uuid": "f5bb9b7a-7b5e-45c3-8f0e-61b4e95edf03", @@ -98,7 +98,7 @@ "phone_number": { "category": "", "category_localized": "", - "created_on": "2018-07-06T12:30:24.123456Z", + "created_on": "2018-07-06T12:30:25.123456Z", "input": "", "name": "Phone Number", "node_uuid": "f5bb9b7a-7b5e-45c3-8f0e-61b4e95edf03", @@ -107,7 +107,7 @@ "webhook": { "category": "Success", "category_localized": "Success", - "created_on": "2018-07-06T12:30:40.123456Z", + "created_on": "2018-07-06T12:30:41.123456Z", "input": "GET http://127.0.0.1:49999/?content=%7B%22results%22%3A%5B%7B%22state%22%3A%22WA%22%7D%2C%7B%22state%22%3A%22IN%22%7D%5D%7D", "name": "webhook", "node_uuid": "f5bb9b7a-7b5e-45c3-8f0e-61b4e95edf03", diff --git a/flows/definition/flow.go b/flows/definition/flow.go index 4388cb3f7..2f44ed4f7 100644 --- a/flows/definition/flow.go +++ b/flows/definition/flow.go @@ -5,6 +5,7 @@ import ( "fmt" "maps" "slices" + "time" "github.com/Masterminds/semver" "github.com/nyaruka/gocommon/i18n" @@ -31,15 +32,15 @@ func IsVersionSupported(v *semver.Version) bool { type flow struct { // spec properties - uuid assets.FlowUUID - name string - specVersion *semver.Version - language i18n.Language - flowType flows.FlowType - revision int - expireAfterMinutes int - localization flows.Localization - nodes []flows.Node + uuid assets.FlowUUID + name string + specVersion *semver.Version + language i18n.Language + flowType flows.FlowType + revision int + expireAfter time.Duration + localization flows.Localization + nodes []flows.Node // optional properties not used by engine itself ui json.RawMessage @@ -52,20 +53,20 @@ type flow struct { } // NewFlow creates a new flow -func NewFlow(uuid assets.FlowUUID, name string, language i18n.Language, flowType flows.FlowType, revision int, expireAfterMinutes int, localization flows.Localization, nodes []flows.Node, ui json.RawMessage, a assets.Flow) (flows.Flow, error) { +func NewFlow(uuid assets.FlowUUID, name string, language i18n.Language, flowType flows.FlowType, revision int, expireAfter time.Duration, localization flows.Localization, nodes []flows.Node, ui json.RawMessage, a assets.Flow) (flows.Flow, error) { f := &flow{ - uuid: uuid, - name: name, - specVersion: CurrentSpecVersion, - language: language, - flowType: flowType, - revision: revision, - expireAfterMinutes: expireAfterMinutes, - localization: localization, - nodes: nodes, - nodeMap: make(map[flows.NodeUUID]flows.Node, len(nodes)), - ui: ui, - asset: a, + uuid: uuid, + name: name, + specVersion: CurrentSpecVersion, + language: language, + flowType: flowType, + revision: revision, + expireAfter: expireAfter, + localization: localization, + nodes: nodes, + nodeMap: make(map[flows.NodeUUID]flows.Node, len(nodes)), + ui: ui, + asset: a, } for _, node := range f.nodes { @@ -85,12 +86,22 @@ func (f *flow) SpecVersion() *semver.Version { return f.specVersion } func (f *flow) Revision() int { return f.revision } func (f *flow) Language() i18n.Language { return f.language } func (f *flow) Type() flows.FlowType { return f.flowType } -func (f *flow) ExpireAfterMinutes() int { return f.expireAfterMinutes } func (f *flow) Nodes() []flows.Node { return f.nodes } func (f *flow) Localization() flows.Localization { return f.localization } func (f *flow) UI() json.RawMessage { return f.ui } func (f *flow) GetNode(uuid flows.NodeUUID) flows.Node { return f.nodeMap[uuid] } +func (f *flow) ExpireAfter() time.Duration { + if f.expireAfter == 0 { + if f.flowType == flows.FlowTypeMessaging { + return 10080 * time.Minute + } else if f.flowType == flows.FlowTypeVoice { + return 5 * time.Minute + } + } + return f.expireAfter +} + func (f *flow) validate() error { // track UUIDs used by nodes and actions to ensure that they are unique seenUUIDs := make(map[uuids.UUID]bool) @@ -348,7 +359,7 @@ func readFlow(data json.RawMessage, mc *migrations.Config, a assets.Flow) (flows e.Localization = make(localization) } - return NewFlow(e.UUID, e.Name, e.Language, e.Type, e.Revision, e.ExpireAfterMinutes, e.Localization, nodes, e.UI, a) + return NewFlow(e.UUID, e.Name, e.Language, e.Type, e.Revision, time.Duration(e.ExpireAfterMinutes)*time.Minute, e.Localization, nodes, e.UI, a) } // MarshalJSON marshals this flow into JSON @@ -362,7 +373,7 @@ func (f *flow) MarshalJSON() ([]byte, error) { Language: f.language, Type: f.flowType, Revision: f.revision, - ExpireAfterMinutes: f.expireAfterMinutes, + ExpireAfterMinutes: int(f.expireAfter / time.Minute), Localization: f.localization.(localization), Nodes: make([]*node, len(f.nodes)), UI: f.ui, diff --git a/flows/definition/flow_test.go b/flows/definition/flow_test.go index 0c69a3648..8871e3d50 100644 --- a/flows/definition/flow_test.go +++ b/flows/definition/flow_test.go @@ -5,6 +5,7 @@ import ( "os" "strings" "testing" + "time" "github.com/Masterminds/semver" "github.com/nyaruka/gocommon/i18n" @@ -219,8 +220,8 @@ func TestNewFlow(t *testing.T) { "Test Flow", // name i18n.Language("eng"), // base language flows.FlowTypeMessaging, - 123, // revision - 30, // expires after minutes + 123, // revision + 30*time.Minute, // expires after minutes definition.NewLocalization(), []flows.Node{ definition.NewNode( diff --git a/flows/events/base_test.go b/flows/events/base_test.go index 393b9057a..ce059b732 100644 --- a/flows/events/base_test.go +++ b/flows/events/base_test.go @@ -42,7 +42,6 @@ func TestEventMarshaling(t *testing.T) { tz, _ := time.LoadLocation("Africa/Kigali") timeout := 500 - expiresOn := time.Date(2022, 2, 3, 13, 45, 30, 0, time.UTC) gender := session.Assets().Fields().Get("gender") jotd := session.Assets().OptIns().Get("248be71d-78e9-4d71-a6c4-9981d369e5cb") weather := session.Assets().Topics().Get("472a7a73-96cb-4736-b567-056d987cc5b4") @@ -504,7 +503,7 @@ func TestEventMarshaling(t *testing.T) { }`, }, { - events.NewMsgWait(&timeout, &expiresOn, hints.NewImageHint()), + events.NewMsgWait(&timeout, time.Date(2022, 2, 3, 13, 45, 30, 0, time.UTC), hints.NewImageHint()), `{ "type": "msg_wait", "created_on": "2018-10-18T14:20:30.000123456Z", @@ -532,7 +531,7 @@ func TestEventMarshaling(t *testing.T) { }`, }, { - events.NewDialWait(urns.URN("tel:+1234567890"), 20, 120, &expiresOn), + events.NewDialWait(urns.URN("tel:+1234567890"), 20, 120, time.Date(2022, 2, 3, 13, 45, 30, 0, time.UTC)), `{ "type": "dial_wait", "created_on": "2018-10-18T14:20:30.000123456Z", diff --git a/flows/events/dial_wait.go b/flows/events/dial_wait.go index 9b5c8758f..be78d3cb3 100644 --- a/flows/events/dial_wait.go +++ b/flows/events/dial_wait.go @@ -34,11 +34,11 @@ type DialWaitEvent struct { CallLimitSeconds int `json:"call_limit_seconds"` // when this wait expires and the whole run can be expired - ExpiresOn *time.Time `json:"expires_on,omitempty"` + ExpiresOn time.Time `json:"expires_on,omitempty"` } // NewDialWait returns a new dial wait with the passed in URN -func NewDialWait(urn urns.URN, dialLimitSeconds, callLimitSeconds int, expiresOn *time.Time) *DialWaitEvent { +func NewDialWait(urn urns.URN, dialLimitSeconds, callLimitSeconds int, expiresOn time.Time) *DialWaitEvent { return &DialWaitEvent{ BaseEvent: NewBaseEvent(TypeDialWait), URN: urn, diff --git a/flows/events/msg_wait.go b/flows/events/msg_wait.go index c163b47d2..eae80c832 100644 --- a/flows/events/msg_wait.go +++ b/flows/events/msg_wait.go @@ -40,13 +40,13 @@ type MsgWaitEvent struct { TimeoutSeconds *int `json:"timeout_seconds,omitempty"` // When this wait expires and the whole run can be expired - ExpiresOn *time.Time `json:"expires_on,omitempty"` + ExpiresOn time.Time `json:"expires_on,omitempty"` Hint flows.Hint `json:"hint,omitempty"` } // NewMsgWait returns a new msg wait with the passed in timeout -func NewMsgWait(timeoutSeconds *int, expiresOn *time.Time, hint flows.Hint) *MsgWaitEvent { +func NewMsgWait(timeoutSeconds *int, expiresOn time.Time, hint flows.Hint) *MsgWaitEvent { return &MsgWaitEvent{ BaseEvent: NewBaseEvent(TypeMsgWait), TimeoutSeconds: timeoutSeconds, @@ -63,7 +63,7 @@ type msgWaitEnvelope struct { BaseEvent TimeoutSeconds *int `json:"timeout_seconds,omitempty"` - ExpiresOn *time.Time `json:"expires_on,omitempty"` + ExpiresOn time.Time `json:"expires_on,omitempty"` Hint json.RawMessage `json:"hint,omitempty"` } diff --git a/flows/interfaces.go b/flows/interfaces.go index eac63ce2c..ca72b6ede 100644 --- a/flows/interfaces.go +++ b/flows/interfaces.go @@ -136,7 +136,7 @@ type Flow interface { Revision() int Language() i18n.Language Type() FlowType - ExpireAfterMinutes() int + ExpireAfter() time.Duration Localization() Localization UI() json.RawMessage Nodes() []Node diff --git a/flows/routers/waits/base.go b/flows/routers/waits/base.go index c4ef26f92..044a7c325 100644 --- a/flows/routers/waits/base.go +++ b/flows/routers/waits/base.go @@ -54,13 +54,8 @@ func (w *baseWait) Timeout() flows.Timeout { return w.timeout } -func (w *baseWait) expiresOn(run flows.Run) *time.Time { - expiresAfterMins := run.Flow().ExpireAfterMinutes() - if expiresAfterMins > 0 { - dt := dates.Now().Add(time.Duration(int64(expiresAfterMins) * int64(time.Minute))) - return &dt - } - return nil +func (w *baseWait) expiresOn(run flows.Run) time.Time { + return dates.Now().Add(run.Flow().ExpireAfter()) } //------------------------------------------------------------------------------------------ diff --git a/flows/routers/waits/dial.go b/flows/routers/waits/dial.go index 0906959a5..5b0a2e044 100644 --- a/flows/routers/waits/dial.go +++ b/flows/routers/waits/dial.go @@ -74,7 +74,7 @@ func (w *DialWait) Begin(run flows.Run, log flows.EventCallback) bool { // flow so calculate an expiry guaranteed to be after the wait returns expiresOn := dates.Now().Add(w.dialLimit + w.callLimit + time.Second*30) - log(events.NewDialWait(urn, int(w.dialLimit/time.Second), int(w.callLimit/time.Second), &expiresOn)) + log(events.NewDialWait(urn, int(w.dialLimit/time.Second), int(w.callLimit/time.Second), expiresOn)) return true } diff --git a/test/testdata/runner/brochure.test.json b/test/testdata/runner/brochure.test.json index 0233c2808..cd70c2b8a 100644 --- a/test/testdata/runner/brochure.test.json +++ b/test/testdata/runner/brochure.test.json @@ -18,7 +18,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -90,7 +91,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -100,7 +102,7 @@ "name": "Brochure", "uuid": "25a2d8b2-ae7c-4fed-964a-506fb8c3f0c0" }, - "modified_on": "2018-07-06T12:30:08.123456789Z", + "modified_on": "2018-07-06T12:30:09.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -171,7 +173,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -186,20 +188,20 @@ }, { "category": "Not Empty", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "name": "Name", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "name": "Ryan Lewis", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "contact_name_changed" }, { - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "groups_added": [ { "name": "Registered Users", @@ -210,7 +212,7 @@ "type": "contact_groups_changed" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -232,7 +234,7 @@ "flow_uuid": "25a2d8b2-ae7c-4fed-964a-506fb8c3f0c0", "node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82", "operand": "Ryan Lewis", - "time": "2018-07-06T12:30:16.123456789Z" + "time": "2018-07-06T12:30:17.123456789Z" } ], "session": { @@ -311,12 +313,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -331,20 +334,20 @@ }, { "category": "Not Empty", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "name": "Name", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "name": "Ryan Lewis", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "contact_name_changed" }, { - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "groups_added": [ { "name": "Registered Users", @@ -355,7 +358,7 @@ "type": "contact_groups_changed" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -370,12 +373,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:24.123456789Z", + "exited_on": "2018-07-06T12:30:25.123456789Z", "flow": { "name": "Brochure", "uuid": "25a2d8b2-ae7c-4fed-964a-506fb8c3f0c0" }, - "modified_on": "2018-07-06T12:30:24.123456789Z", + "modified_on": "2018-07-06T12:30:25.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -390,7 +393,7 @@ "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:17.123456789Z", + "arrived_on": "2018-07-06T12:30:18.123456789Z", "exit_uuid": "388bbce3-8079-4573-922f-8dea469d93f3", "node_uuid": "7acb54fd-0db0-40b9-970b-93f7bfb4277b", "uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623" @@ -399,7 +402,7 @@ "results": { "name": { "category": "Not Empty", - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "input": "Ryan Lewis", "name": "Name", "node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82", diff --git a/test/testdata/runner/date_parse.test.json b/test/testdata/runner/date_parse.test.json index bc0aeda54..8e3e51f62 100644 --- a/test/testdata/runner/date_parse.test.json +++ b/test/testdata/runner/date_parse.test.json @@ -18,7 +18,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" } @@ -82,7 +83,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" } @@ -92,7 +94,7 @@ "name": "Date Test", "uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4" }, - "modified_on": "2018-07-06T12:30:06.123456789Z", + "modified_on": "2018-07-06T12:30:07.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -157,7 +159,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -172,14 +174,14 @@ }, { "category": "Valid", - "created_on": "2018-07-06T12:30:13.123456789Z", + "created_on": "2018-07-06T12:30:14.123456789Z", "name": "Birth Date", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "1977-06-23T15:34:00.000000-05:00" }, { - "created_on": "2018-07-06T12:30:17.123456789Z", + "created_on": "2018-07-06T12:30:18.123456789Z", "field": { "key": "birth_date", "name": "Birth Date" @@ -192,7 +194,7 @@ } }, { - "created_on": "2018-07-06T12:30:19.123456789Z", + "created_on": "2018-07-06T12:30:20.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -214,7 +216,7 @@ "flow_uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", "operand": "I was born on 1977.06.23 at 3:34 pm", - "time": "2018-07-06T12:30:15.123456789Z" + "time": "2018-07-06T12:30:16.123456789Z" } ], "session": { @@ -291,12 +293,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -311,14 +314,14 @@ }, { "category": "Valid", - "created_on": "2018-07-06T12:30:13.123456789Z", + "created_on": "2018-07-06T12:30:14.123456789Z", "name": "Birth Date", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "1977-06-23T15:34:00.000000-05:00" }, { - "created_on": "2018-07-06T12:30:17.123456789Z", + "created_on": "2018-07-06T12:30:18.123456789Z", "field": { "key": "birth_date", "name": "Birth Date" @@ -331,7 +334,7 @@ } }, { - "created_on": "2018-07-06T12:30:19.123456789Z", + "created_on": "2018-07-06T12:30:20.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -346,12 +349,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:21.123456789Z", + "exited_on": "2018-07-06T12:30:22.123456789Z", "flow": { "name": "Date Test", "uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4" }, - "modified_on": "2018-07-06T12:30:21.123456789Z", + "modified_on": "2018-07-06T12:30:22.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -360,7 +363,7 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:16.123456789Z", + "arrived_on": "2018-07-06T12:30:17.123456789Z", "exit_uuid": "4ae06b16-3854-4336-b285-302c984fc235", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "uuid": "5802813d-6c58-4292-8228-9728778b6c98" @@ -369,7 +372,7 @@ "results": { "birth_date": { "category": "Valid", - "created_on": "2018-07-06T12:30:11.123456789Z", + "created_on": "2018-07-06T12:30:12.123456789Z", "input": "I was born on 1977.06.23 at 3:34 pm", "name": "Birth Date", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", diff --git a/test/testdata/runner/default_result.test.json b/test/testdata/runner/default_result.test.json index bc6f304f2..4c0a94c94 100644 --- a/test/testdata/runner/default_result.test.json +++ b/test/testdata/runner/default_result.test.json @@ -18,7 +18,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -87,7 +88,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -97,7 +99,7 @@ "name": "Another Flow", "uuid": "c37ae862-4802-447a-a783-1fe029a170e9" }, - "modified_on": "2018-07-06T12:30:08.123456789Z", + "modified_on": "2018-07-06T12:30:09.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -154,7 +156,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -169,20 +171,20 @@ }, { "category": "All Responses", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "name": "Contact Name", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "name": "Ryan Lewis", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "contact_name_changed" }, { - "created_on": "2018-07-06T12:30:21.123456789Z", + "created_on": "2018-07-06T12:30:22.123456789Z", "field": { "key": "first_name", "name": "First Name" @@ -194,7 +196,7 @@ } }, { - "created_on": "2018-07-06T12:30:23.123456789Z", + "created_on": "2018-07-06T12:30:24.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -216,7 +218,7 @@ "flow_uuid": "c37ae862-4802-447a-a783-1fe029a170e9", "node_uuid": "3a430844-e259-4dcd-9a1d-7bef3168d43f", "operand": "Ryan Lewis", - "time": "2018-07-06T12:30:16.123456789Z" + "time": "2018-07-06T12:30:17.123456789Z" } ], "session": { @@ -286,12 +288,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -306,20 +309,20 @@ }, { "category": "All Responses", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "name": "Contact Name", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "name": "Ryan Lewis", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "contact_name_changed" }, { - "created_on": "2018-07-06T12:30:21.123456789Z", + "created_on": "2018-07-06T12:30:22.123456789Z", "field": { "key": "first_name", "name": "First Name" @@ -331,7 +334,7 @@ } }, { - "created_on": "2018-07-06T12:30:23.123456789Z", + "created_on": "2018-07-06T12:30:24.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -346,12 +349,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:25.123456789Z", + "exited_on": "2018-07-06T12:30:26.123456789Z", "flow": { "name": "Another Flow", "uuid": "c37ae862-4802-447a-a783-1fe029a170e9" }, - "modified_on": "2018-07-06T12:30:25.123456789Z", + "modified_on": "2018-07-06T12:30:26.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -366,7 +369,7 @@ "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:17.123456789Z", + "arrived_on": "2018-07-06T12:30:18.123456789Z", "exit_uuid": "645dc267-40aa-4777-bda1-bb3133fba511", "node_uuid": "2929d2fc-2778-4d98-a4bc-73a7345710b0", "uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623" @@ -375,7 +378,7 @@ "results": { "contact_name": { "category": "All Responses", - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "input": "Ryan Lewis", "name": "Contact Name", "node_uuid": "3a430844-e259-4dcd-9a1d-7bef3168d43f", diff --git a/test/testdata/runner/extra.test.json b/test/testdata/runner/extra.test.json index c2933cd0f..4defdf3bc 100644 --- a/test/testdata/runner/extra.test.json +++ b/test/testdata/runner/extra.test.json @@ -111,7 +111,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:31.123456789Z", + "expires_on": "2018-07-13T12:30:30.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" } @@ -262,7 +263,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:31.123456789Z", + "expires_on": "2018-07-13T12:30:30.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" } @@ -272,7 +274,7 @@ "name": "Legacy Extra", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" }, - "modified_on": "2018-07-06T12:30:32.123456789Z", + "modified_on": "2018-07-06T12:30:33.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -356,7 +358,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:34.123456789Z", + "created_on": "2018-07-06T12:30:35.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -371,20 +373,20 @@ }, { "category": "Has Text", - "created_on": "2018-07-06T12:30:38.123456789Z", + "created_on": "2018-07-06T12:30:39.123456789Z", "name": "Continue", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:42.123456789Z", + "created_on": "2018-07-06T12:30:43.123456789Z", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "text": "deprecated context value accessed: legacy_extra", "type": "warning" }, { - "created_on": "2018-07-06T12:30:44.123456789Z", + "created_on": "2018-07-06T12:30:45.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -406,7 +408,7 @@ "flow_uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "operand": "Ryan Lewis", - "time": "2018-07-06T12:30:40.123456789Z" + "time": "2018-07-06T12:30:41.123456789Z" } ], "session": { @@ -550,12 +552,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:31.123456789Z", + "expires_on": "2018-07-13T12:30:30.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:34.123456789Z", + "created_on": "2018-07-06T12:30:35.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -570,20 +573,20 @@ }, { "category": "Has Text", - "created_on": "2018-07-06T12:30:38.123456789Z", + "created_on": "2018-07-06T12:30:39.123456789Z", "name": "Continue", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:42.123456789Z", + "created_on": "2018-07-06T12:30:43.123456789Z", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "text": "deprecated context value accessed: legacy_extra", "type": "warning" }, { - "created_on": "2018-07-06T12:30:44.123456789Z", + "created_on": "2018-07-06T12:30:45.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -598,12 +601,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:46.123456789Z", + "exited_on": "2018-07-06T12:30:47.123456789Z", "flow": { "name": "Legacy Extra", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" }, - "modified_on": "2018-07-06T12:30:46.123456789Z", + "modified_on": "2018-07-06T12:30:47.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -624,7 +627,7 @@ "uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623" }, { - "arrived_on": "2018-07-06T12:30:41.123456789Z", + "arrived_on": "2018-07-06T12:30:42.123456789Z", "exit_uuid": "82765044-5c8e-4678-a1c8-8e4f348f903a", "node_uuid": "e9666140-dcf1-46ab-a27e-ecb2a5e8b73d", "uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186" @@ -633,7 +636,7 @@ "results": { "continue": { "category": "Has Text", - "created_on": "2018-07-06T12:30:36.123456789Z", + "created_on": "2018-07-06T12:30:37.123456789Z", "input": "Ryan Lewis", "name": "Continue", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", diff --git a/test/testdata/runner/nlu_booking.flight.json b/test/testdata/runner/nlu_booking.flight.json index 9f7000821..4ac973652 100644 --- a/test/testdata/runner/nlu_booking.flight.json +++ b/test/testdata/runner/nlu_booking.flight.json @@ -14,7 +14,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -74,7 +75,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -84,7 +86,7 @@ "name": "NLU Test", "uuid": "79a67c64-b43d-45f2-a5fc-1c2eeed6d04e" }, - "modified_on": "2018-07-06T12:30:08.123456789Z", + "modified_on": "2018-07-06T12:30:09.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -148,7 +150,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "msg": { "text": "I'd like to book a flight to Quito", "urn": "tel:+12065551212", @@ -159,7 +161,7 @@ }, { "category": "All Responses", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "name": "Response 1", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", @@ -170,7 +172,7 @@ "name": "Booking", "uuid": "1c06c884-39dd-4ce4-ad9f-9a01cbe6c000" }, - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "http_logs": [ { "created_on": "2019-10-16T13:59:30.123456789Z", @@ -189,7 +191,7 @@ }, { "category": "Success", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "extra": { "entities": { "location": [ @@ -217,7 +219,7 @@ }, { "category": "Book Flight", - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "extra": { "location": "Quito" }, @@ -227,7 +229,7 @@ "value": "book_flight" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:31.123456789Z", "msg": { "locale": "eng-US", "text": "So you'd like to book a flight in Quito?", @@ -245,7 +247,7 @@ "flow_uuid": "79a67c64-b43d-45f2-a5fc-1c2eeed6d04e", "node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82", "operand": "I'd like to book a flight to Quito", - "time": "2018-07-06T12:30:16.123456789Z" + "time": "2018-07-06T12:30:17.123456789Z" }, { "destination_uuid": "8f4aba68-3250-43b6-8409-93ba44092962", @@ -253,7 +255,7 @@ "flow_uuid": "79a67c64-b43d-45f2-a5fc-1c2eeed6d04e", "node_uuid": "145eb3d3-b841-4e66-abac-297ae525c7ad", "operand": "book_flight", - "time": "2018-07-06T12:30:28.123456789Z" + "time": "2018-07-06T12:30:29.123456789Z" } ], "session": { @@ -310,12 +312,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "msg": { "text": "I'd like to book a flight to Quito", "urn": "tel:+12065551212", @@ -326,7 +329,7 @@ }, { "category": "All Responses", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "name": "Response 1", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", @@ -337,7 +340,7 @@ "name": "Booking", "uuid": "1c06c884-39dd-4ce4-ad9f-9a01cbe6c000" }, - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "http_logs": [ { "created_on": "2019-10-16T13:59:30.123456789Z", @@ -356,7 +359,7 @@ }, { "category": "Success", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "extra": { "entities": { "location": [ @@ -384,7 +387,7 @@ }, { "category": "Book Flight", - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "extra": { "location": "Quito" }, @@ -394,7 +397,7 @@ "value": "book_flight" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:31.123456789Z", "msg": { "locale": "eng-US", "text": "So you'd like to book a flight in Quito?", @@ -405,12 +408,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:32.123456789Z", + "exited_on": "2018-07-06T12:30:33.123456789Z", "flow": { "name": "NLU Test", "uuid": "79a67c64-b43d-45f2-a5fc-1c2eeed6d04e" }, - "modified_on": "2018-07-06T12:30:32.123456789Z", + "modified_on": "2018-07-06T12:30:33.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -425,13 +428,13 @@ "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:17.123456789Z", + "arrived_on": "2018-07-06T12:30:18.123456789Z", "exit_uuid": "33712037-9861-4d61-9dcb-60d7fffef96a", "node_uuid": "145eb3d3-b841-4e66-abac-297ae525c7ad", "uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623" }, { - "arrived_on": "2018-07-06T12:30:29.123456789Z", + "arrived_on": "2018-07-06T12:30:30.123456789Z", "exit_uuid": "b6562dea-d21c-4a99-b904-0fb9583fb5ab", "node_uuid": "8f4aba68-3250-43b6-8409-93ba44092962", "uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9" @@ -440,7 +443,7 @@ "results": { "_intent_classification": { "category": "Success", - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "extra": { "entities": { "location": [ @@ -468,7 +471,7 @@ }, "intent": { "category": "Book Flight", - "created_on": "2018-07-06T12:30:24.123456789Z", + "created_on": "2018-07-06T12:30:25.123456789Z", "extra": { "location": "Quito" }, @@ -479,7 +482,7 @@ }, "response_1": { "category": "All Responses", - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "input": "I'd like to book a flight to Quito", "name": "Response 1", "node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82", diff --git a/test/testdata/runner/subflow.test.json b/test/testdata/runner/subflow.test.json index 2091ef6bd..692f115fe 100644 --- a/test/testdata/runner/subflow.test.json +++ b/test/testdata/runner/subflow.test.json @@ -44,7 +44,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", + "expires_on": "2018-07-13T12:30:10.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" } @@ -154,7 +155,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", + "expires_on": "2018-07-13T12:30:10.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" } @@ -164,7 +166,7 @@ "name": "Child flow", "uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195" }, - "modified_on": "2018-07-06T12:30:12.123456789Z", + "modified_on": "2018-07-06T12:30:13.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -230,7 +232,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -245,14 +247,14 @@ }, { "category": "Name", - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "name": "Name", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -267,7 +269,7 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:27.123456789Z", + "created_on": "2018-07-06T12:30:28.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -289,7 +291,7 @@ "flow_uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195", "node_uuid": "9f7632ee-6e35-4247-9235-c4c7663fd601", "operand": "Ryan Lewis", - "time": "2018-07-06T12:30:20.123456789Z" + "time": "2018-07-06T12:30:21.123456789Z" }, { "destination_uuid": "c8380f24-7524-4340-9d38-db8a131d2b70", @@ -297,7 +299,7 @@ "flow_uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02", "node_uuid": "3689e39d-608e-4e85-8a18-c9aa6375bb43", "operand": "completed", - "time": "2018-07-06T12:30:25.123456789Z" + "time": "2018-07-06T12:30:26.123456789Z" } ], "session": { @@ -381,7 +383,7 @@ "type": "flow_entered" }, { - "created_on": "2018-07-06T12:30:27.123456789Z", + "created_on": "2018-07-06T12:30:28.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -396,12 +398,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:29.123456789Z", + "exited_on": "2018-07-06T12:30:30.123456789Z", "flow": { "name": "Parent Flow", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" }, - "modified_on": "2018-07-06T12:30:29.123456789Z", + "modified_on": "2018-07-06T12:30:30.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -410,7 +412,7 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:26.123456789Z", + "arrived_on": "2018-07-06T12:30:27.123456789Z", "exit_uuid": "9b13f6ac-5257-4cec-8d5c-545ba85bc832", "node_uuid": "c8380f24-7524-4340-9d38-db8a131d2b70", "uuid": "b88ce93d-4360-4455-a691-235cbe720980" @@ -438,12 +440,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", + "expires_on": "2018-07-13T12:30:10.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -458,14 +461,14 @@ }, { "category": "Name", - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "name": "Name", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -480,12 +483,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:24.123456789Z", + "exited_on": "2018-07-06T12:30:25.123456789Z", "flow": { "name": "Child flow", "uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195" }, - "modified_on": "2018-07-06T12:30:24.123456789Z", + "modified_on": "2018-07-06T12:30:25.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -495,7 +498,7 @@ "uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623" }, { - "arrived_on": "2018-07-06T12:30:21.123456789Z", + "arrived_on": "2018-07-06T12:30:22.123456789Z", "exit_uuid": "80aa94f5-1c2f-4286-b2ec-5a3bdaf9c7d0", "node_uuid": "3689e39d-608e-4e85-8a18-c9aa6375bb43", "uuid": "312d3af0-a565-4c96-ba00-bd7f0d08e671" @@ -504,7 +507,7 @@ "results": { "name": { "category": "Name", - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "input": "Ryan Lewis", "name": "Name", "node_uuid": "9f7632ee-6e35-4247-9235-c4c7663fd601", diff --git a/test/testdata/runner/subflow.test_resume_with_expiration.json b/test/testdata/runner/subflow.test_resume_with_expiration.json index 1d5a87376..fc98d1a4d 100644 --- a/test/testdata/runner/subflow.test_resume_with_expiration.json +++ b/test/testdata/runner/subflow.test_resume_with_expiration.json @@ -44,7 +44,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", + "expires_on": "2018-07-13T12:30:10.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" } @@ -154,7 +155,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", + "expires_on": "2018-07-13T12:30:10.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" } @@ -164,7 +166,7 @@ "name": "Child flow", "uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195" }, - "modified_on": "2018-07-06T12:30:12.123456789Z", + "modified_on": "2018-07-06T12:30:13.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -230,13 +232,13 @@ { "events": [ { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "run_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "run_expired" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -258,7 +260,7 @@ "flow_uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02", "node_uuid": "9f7632ee-6e35-4247-9235-c4c7663fd601", "operand": "expired", - "time": "2018-07-06T12:30:16.123456789Z" + "time": "2018-07-06T12:30:17.123456789Z" } ], "session": { @@ -330,7 +332,7 @@ "type": "flow_entered" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -345,12 +347,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:20.123456789Z", + "exited_on": "2018-07-06T12:30:21.123456789Z", "flow": { "name": "Parent Flow", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" }, - "modified_on": "2018-07-06T12:30:20.123456789Z", + "modified_on": "2018-07-06T12:30:21.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -359,7 +361,7 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:17.123456789Z", + "arrived_on": "2018-07-06T12:30:18.123456789Z", "exit_uuid": "3edede74-c67f-4151-921c-1635627aa256", "node_uuid": "805d3b99-9e45-4c88-b667-c1557b44c081", "uuid": "312d3af0-a565-4c96-ba00-bd7f0d08e671" @@ -387,23 +389,24 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", + "expires_on": "2018-07-13T12:30:10.123456789Z", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "run_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "run_expired" } ], - "exited_on": "2018-07-06T12:30:13.123456789Z", + "exited_on": "2018-07-06T12:30:14.123456789Z", "flow": { "name": "Child flow", "uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195" }, - "modified_on": "2018-07-06T12:30:15.123456789Z", + "modified_on": "2018-07-06T12:30:16.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { diff --git a/test/testdata/runner/subflow_loop_with_wait.test.json b/test/testdata/runner/subflow_loop_with_wait.test.json index 51cb8d971..965ca7a79 100644 --- a/test/testdata/runner/subflow_loop_with_wait.test.json +++ b/test/testdata/runner/subflow_loop_with_wait.test.json @@ -44,7 +44,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", + "expires_on": "2018-07-13T12:30:12.123456789Z", "step_uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9", "type": "msg_wait" } @@ -165,7 +166,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", + "expires_on": "2018-07-13T12:30:12.123456789Z", "step_uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9", "type": "msg_wait" } @@ -175,7 +177,7 @@ "name": "Child flow", "uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195" }, - "modified_on": "2018-07-06T12:30:14.123456789Z", + "modified_on": "2018-07-06T12:30:15.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -238,7 +240,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "msg": { "text": "Ben", "urn": "tel:+12065551212", @@ -248,7 +250,7 @@ "type": "msg_received" }, { - "created_on": "2018-07-06T12:30:21.123456789Z", + "created_on": "2018-07-06T12:30:22.123456789Z", "field": { "key": "activation_token", "name": "Activation Token" @@ -261,7 +263,7 @@ } }, { - "created_on": "2018-07-06T12:30:23.123456789Z", + "created_on": "2018-07-06T12:30:24.123456789Z", "flow": { "name": "Parent Flow", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" @@ -272,7 +274,7 @@ "type": "flow_entered" }, { - "created_on": "2018-07-06T12:30:27.123456789Z", + "created_on": "2018-07-06T12:30:28.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -287,7 +289,7 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:33.123456789Z", + "created_on": "2018-07-06T12:30:34.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -309,14 +311,14 @@ "flow_uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195", "node_uuid": "9f7632ee-6e35-4247-9235-c4c7663fd601", "operand": "Ben", - "time": "2018-07-06T12:30:18.123456789Z" + "time": "2018-07-06T12:30:19.123456789Z" }, { "destination_uuid": "c8380f24-7524-4340-9d38-db8a131d2b70", "exit_uuid": "2ce7eeea-ee70-4e1a-b8f4-84d8102a8aef", "flow_uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02", "node_uuid": "e97a43c1-a15b-4566-bb6d-dfd2b18408e1", - "time": "2018-07-06T12:30:31.123456789Z" + "time": "2018-07-06T12:30:32.123456789Z" } ], "session": { @@ -397,7 +399,7 @@ "type": "flow_entered" }, { - "created_on": "2018-07-06T12:30:33.123456789Z", + "created_on": "2018-07-06T12:30:34.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -412,12 +414,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:35.123456789Z", + "exited_on": "2018-07-06T12:30:36.123456789Z", "flow": { "name": "Parent Flow", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" }, - "modified_on": "2018-07-06T12:30:35.123456789Z", + "modified_on": "2018-07-06T12:30:36.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -432,7 +434,7 @@ "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:32.123456789Z", + "arrived_on": "2018-07-06T12:30:33.123456789Z", "exit_uuid": "1a26ab25-fc6d-4324-865b-1d8e7d73bf52", "node_uuid": "c8380f24-7524-4340-9d38-db8a131d2b70", "uuid": "44fe8d72-00ed-4736-acca-bbca70987315" @@ -460,12 +462,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", + "expires_on": "2018-07-13T12:30:12.123456789Z", "step_uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "msg": { "text": "Ben", "urn": "tel:+12065551212", @@ -475,7 +478,7 @@ "type": "msg_received" }, { - "created_on": "2018-07-06T12:30:21.123456789Z", + "created_on": "2018-07-06T12:30:22.123456789Z", "field": { "key": "activation_token", "name": "Activation Token" @@ -488,7 +491,7 @@ } }, { - "created_on": "2018-07-06T12:30:23.123456789Z", + "created_on": "2018-07-06T12:30:24.123456789Z", "flow": { "name": "Parent Flow", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" @@ -499,12 +502,12 @@ "type": "flow_entered" } ], - "exited_on": "2018-07-06T12:30:30.123456789Z", + "exited_on": "2018-07-06T12:30:31.123456789Z", "flow": { "name": "Child flow", "uuid": "a8d27b94-d3d0-4a96-8074-0f162f342195" }, - "modified_on": "2018-07-06T12:30:30.123456789Z", + "modified_on": "2018-07-06T12:30:31.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -514,7 +517,7 @@ "uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9" }, { - "arrived_on": "2018-07-06T12:30:19.123456789Z", + "arrived_on": "2018-07-06T12:30:20.123456789Z", "exit_uuid": "f7ed461f-2392-4549-aaba-f69beb1bdc50", "node_uuid": "f1ecb42a-cf88-47dd-81b1-d7568ef0d219", "uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186" @@ -524,10 +527,10 @@ "uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623" }, { - "created_on": "2018-07-06T12:30:25.123456789Z", + "created_on": "2018-07-06T12:30:26.123456789Z", "events": [ { - "created_on": "2018-07-06T12:30:27.123456789Z", + "created_on": "2018-07-06T12:30:28.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -542,16 +545,16 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:29.123456789Z", + "exited_on": "2018-07-06T12:30:30.123456789Z", "flow": { "name": "Parent Flow", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" }, - "modified_on": "2018-07-06T12:30:29.123456789Z", + "modified_on": "2018-07-06T12:30:30.123456789Z", "parent_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "path": [ { - "arrived_on": "2018-07-06T12:30:26.123456789Z", + "arrived_on": "2018-07-06T12:30:27.123456789Z", "exit_uuid": "5e11ad89-2ed0-44e5-b5ff-38448983bf15", "node_uuid": "e97a43c1-a15b-4566-bb6d-dfd2b18408e1", "uuid": "1b5491ec-2b83-445d-bebe-b4a1f677cf4c" diff --git a/test/testdata/runner/subflow_other.test.json b/test/testdata/runner/subflow_other.test.json index 7c2c557ab..27d9f6c7d 100644 --- a/test/testdata/runner/subflow_other.test.json +++ b/test/testdata/runner/subflow_other.test.json @@ -44,7 +44,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", + "expires_on": "2018-07-13T12:30:14.123456789Z", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "msg_wait" } @@ -175,7 +176,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", + "expires_on": "2018-07-13T12:30:14.123456789Z", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "msg_wait" } @@ -185,7 +187,7 @@ "name": "Rules", "uuid": "d092cbbf-7745-4a41-b55d-bdafc4c96ab8" }, - "modified_on": "2018-07-06T12:30:16.123456789Z", + "modified_on": "2018-07-06T12:30:17.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -257,7 +259,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -272,14 +274,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "name": "Answer", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "run_result_changed", "value": "neither" }, { - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -294,7 +296,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", + "expires_on": "2018-07-13T12:30:31.123456789Z", "step_uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034", "type": "msg_wait" } @@ -306,14 +309,14 @@ "flow_uuid": "d092cbbf-7745-4a41-b55d-bdafc4c96ab8", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", "operand": "neither", - "time": "2018-07-06T12:30:24.123456789Z" + "time": "2018-07-06T12:30:25.123456789Z" }, { "destination_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", "exit_uuid": "6a4cbb55-7936-4c98-958b-eba1866a596e", "flow_uuid": "d092cbbf-7745-4a41-b55d-bdafc4c96ab8", "node_uuid": "4ff04e17-96d0-4920-8920-8d4d5fb2ae17", - "time": "2018-07-06T12:30:28.123456789Z" + "time": "2018-07-06T12:30:29.123456789Z" } ], "session": { @@ -438,12 +441,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", + "expires_on": "2018-07-13T12:30:14.123456789Z", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -458,14 +462,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "name": "Answer", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "run_result_changed", "value": "neither" }, { - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -480,7 +484,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", + "expires_on": "2018-07-13T12:30:31.123456789Z", "step_uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034", "type": "msg_wait" } @@ -490,7 +495,7 @@ "name": "Rules", "uuid": "d092cbbf-7745-4a41-b55d-bdafc4c96ab8" }, - "modified_on": "2018-07-06T12:30:32.123456789Z", + "modified_on": "2018-07-06T12:30:34.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -506,13 +511,13 @@ "uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186" }, { - "arrived_on": "2018-07-06T12:30:25.123456789Z", + "arrived_on": "2018-07-06T12:30:26.123456789Z", "exit_uuid": "6a4cbb55-7936-4c98-958b-eba1866a596e", "node_uuid": "4ff04e17-96d0-4920-8920-8d4d5fb2ae17", "uuid": "b88ce93d-4360-4455-a691-235cbe720980" }, { - "arrived_on": "2018-07-06T12:30:29.123456789Z", + "arrived_on": "2018-07-06T12:30:30.123456789Z", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", "uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034" } @@ -520,7 +525,7 @@ "results": { "answer": { "category": "Other", - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "input": "neither", "name": "Answer", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", @@ -584,7 +589,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:34.123456789Z", + "created_on": "2018-07-06T12:30:36.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -599,7 +604,7 @@ }, { "category": "Yes", - "created_on": "2018-07-06T12:30:38.123456789Z", + "created_on": "2018-07-06T12:30:40.123456789Z", "name": "Answer", "previous": { "category": "Other", @@ -610,7 +615,7 @@ "value": "yes" }, { - "created_on": "2018-07-06T12:30:42.123456789Z", + "created_on": "2018-07-06T12:30:44.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -625,7 +630,7 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:47.123456789Z", + "created_on": "2018-07-06T12:30:49.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -640,7 +645,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:51.123456789Z", + "created_on": "2018-07-06T12:30:54.123456789Z", + "expires_on": "2018-07-13T12:30:53.123456789Z", "step_uuid": "27b67219-e599-4697-b62c-3c781ca3b5da", "type": "msg_wait" } @@ -652,7 +658,7 @@ "flow_uuid": "d092cbbf-7745-4a41-b55d-bdafc4c96ab8", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", "operand": "yes", - "time": "2018-07-06T12:30:40.123456789Z" + "time": "2018-07-06T12:30:42.123456789Z" }, { "destination_uuid": "70af8b8f-9caf-4af9-8e03-5686beb9336f", @@ -660,14 +666,14 @@ "flow_uuid": "9e43da00-b2e5-450e-a351-0772f5469511", "node_uuid": "9b53d684-62a6-4f25-900c-268f762b192e", "operand": "completed", - "time": "2018-07-06T12:30:45.123456789Z" + "time": "2018-07-06T12:30:47.123456789Z" }, { "destination_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "exit_uuid": "2a67e061-c7da-42f7-91e5-32c8a9591020", "flow_uuid": "9e43da00-b2e5-450e-a351-0772f5469511", "node_uuid": "70af8b8f-9caf-4af9-8e03-5686beb9336f", - "time": "2018-07-06T12:30:49.123456789Z" + "time": "2018-07-06T12:30:51.123456789Z" } ], "session": { @@ -751,7 +757,7 @@ "type": "flow_entered" }, { - "created_on": "2018-07-06T12:30:47.123456789Z", + "created_on": "2018-07-06T12:30:49.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -766,7 +772,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:51.123456789Z", + "created_on": "2018-07-06T12:30:54.123456789Z", + "expires_on": "2018-07-13T12:30:53.123456789Z", "step_uuid": "27b67219-e599-4697-b62c-3c781ca3b5da", "type": "msg_wait" } @@ -776,7 +783,7 @@ "name": "Parent Flow", "uuid": "9e43da00-b2e5-450e-a351-0772f5469511" }, - "modified_on": "2018-07-06T12:30:53.123456789Z", + "modified_on": "2018-07-06T12:30:56.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -791,13 +798,13 @@ "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:46.123456789Z", + "arrived_on": "2018-07-06T12:30:48.123456789Z", "exit_uuid": "2a67e061-c7da-42f7-91e5-32c8a9591020", "node_uuid": "70af8b8f-9caf-4af9-8e03-5686beb9336f", "uuid": "b52a7f80-f820-4163-9654-8a7258fbaae4" }, { - "arrived_on": "2018-07-06T12:30:50.123456789Z", + "arrived_on": "2018-07-06T12:30:52.123456789Z", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "uuid": "27b67219-e599-4697-b62c-3c781ca3b5da" } @@ -824,12 +831,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", + "expires_on": "2018-07-13T12:30:14.123456789Z", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -844,14 +852,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "name": "Answer", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "run_result_changed", "value": "neither" }, { - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -866,12 +874,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", + "expires_on": "2018-07-13T12:30:31.123456789Z", "step_uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:34.123456789Z", + "created_on": "2018-07-06T12:30:36.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -886,7 +895,7 @@ }, { "category": "Yes", - "created_on": "2018-07-06T12:30:38.123456789Z", + "created_on": "2018-07-06T12:30:40.123456789Z", "name": "Answer", "previous": { "category": "Other", @@ -897,7 +906,7 @@ "value": "yes" }, { - "created_on": "2018-07-06T12:30:42.123456789Z", + "created_on": "2018-07-06T12:30:44.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -912,12 +921,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:44.123456789Z", + "exited_on": "2018-07-06T12:30:46.123456789Z", "flow": { "name": "Rules", "uuid": "d092cbbf-7745-4a41-b55d-bdafc4c96ab8" }, - "modified_on": "2018-07-06T12:30:44.123456789Z", + "modified_on": "2018-07-06T12:30:46.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -933,19 +942,19 @@ "uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186" }, { - "arrived_on": "2018-07-06T12:30:25.123456789Z", + "arrived_on": "2018-07-06T12:30:26.123456789Z", "exit_uuid": "6a4cbb55-7936-4c98-958b-eba1866a596e", "node_uuid": "4ff04e17-96d0-4920-8920-8d4d5fb2ae17", "uuid": "b88ce93d-4360-4455-a691-235cbe720980" }, { - "arrived_on": "2018-07-06T12:30:29.123456789Z", + "arrived_on": "2018-07-06T12:30:30.123456789Z", "exit_uuid": "5a2f31ea-6ffc-40ce-8adc-d1f5d9f9d5e4", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", "uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034" }, { - "arrived_on": "2018-07-06T12:30:41.123456789Z", + "arrived_on": "2018-07-06T12:30:43.123456789Z", "exit_uuid": "8df047e3-465e-4d3c-a332-25b62aacdefb", "node_uuid": "9b53d684-62a6-4f25-900c-268f762b192e", "uuid": "44fe8d72-00ed-4736-acca-bbca70987315" @@ -954,7 +963,7 @@ "results": { "answer": { "category": "Yes", - "created_on": "2018-07-06T12:30:36.123456789Z", + "created_on": "2018-07-06T12:30:38.123456789Z", "input": "yes", "name": "Answer", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", @@ -1018,7 +1027,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:55.123456789Z", + "created_on": "2018-07-06T12:30:58.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1033,14 +1042,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:59.123456789Z", + "created_on": "2018-07-06T12:31:02.123456789Z", "name": "Answer", "step_uuid": "27b67219-e599-4697-b62c-3c781ca3b5da", "type": "run_result_changed", "value": "never" }, { - "created_on": "2018-07-06T12:31:03.123456789Z", + "created_on": "2018-07-06T12:31:06.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1055,7 +1064,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:31:07.123456789Z", + "created_on": "2018-07-06T12:31:11.123456789Z", + "expires_on": "2018-07-13T12:31:10.123456789Z", "step_uuid": "3ceb7525-c2e1-40b0-bec9-e032f4f9af5f", "type": "msg_wait" } @@ -1067,14 +1077,14 @@ "flow_uuid": "9e43da00-b2e5-450e-a351-0772f5469511", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "operand": "never", - "time": "2018-07-06T12:31:01.123456789Z" + "time": "2018-07-06T12:31:04.123456789Z" }, { "destination_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "exit_uuid": "4ff58def-89e7-4c52-bda7-ebea0ee5176e", "flow_uuid": "9e43da00-b2e5-450e-a351-0772f5469511", "node_uuid": "c6e9b298-77bc-4d4c-91b6-43fa18338742", - "time": "2018-07-06T12:31:05.123456789Z" + "time": "2018-07-06T12:31:08.123456789Z" } ], "session": { @@ -1158,7 +1168,7 @@ "type": "flow_entered" }, { - "created_on": "2018-07-06T12:30:47.123456789Z", + "created_on": "2018-07-06T12:30:49.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1173,12 +1183,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:51.123456789Z", + "created_on": "2018-07-06T12:30:54.123456789Z", + "expires_on": "2018-07-13T12:30:53.123456789Z", "step_uuid": "27b67219-e599-4697-b62c-3c781ca3b5da", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:55.123456789Z", + "created_on": "2018-07-06T12:30:58.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1193,14 +1204,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:59.123456789Z", + "created_on": "2018-07-06T12:31:02.123456789Z", "name": "Answer", "step_uuid": "27b67219-e599-4697-b62c-3c781ca3b5da", "type": "run_result_changed", "value": "never" }, { - "created_on": "2018-07-06T12:31:03.123456789Z", + "created_on": "2018-07-06T12:31:06.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1215,7 +1226,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:31:07.123456789Z", + "created_on": "2018-07-06T12:31:11.123456789Z", + "expires_on": "2018-07-13T12:31:10.123456789Z", "step_uuid": "3ceb7525-c2e1-40b0-bec9-e032f4f9af5f", "type": "msg_wait" } @@ -1225,7 +1237,7 @@ "name": "Parent Flow", "uuid": "9e43da00-b2e5-450e-a351-0772f5469511" }, - "modified_on": "2018-07-06T12:31:09.123456789Z", + "modified_on": "2018-07-06T12:31:13.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -1240,25 +1252,25 @@ "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:46.123456789Z", + "arrived_on": "2018-07-06T12:30:48.123456789Z", "exit_uuid": "2a67e061-c7da-42f7-91e5-32c8a9591020", "node_uuid": "70af8b8f-9caf-4af9-8e03-5686beb9336f", "uuid": "b52a7f80-f820-4163-9654-8a7258fbaae4" }, { - "arrived_on": "2018-07-06T12:30:50.123456789Z", + "arrived_on": "2018-07-06T12:30:52.123456789Z", "exit_uuid": "5b6fb733-249a-42f6-992e-1253f158404c", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "uuid": "27b67219-e599-4697-b62c-3c781ca3b5da" }, { - "arrived_on": "2018-07-06T12:31:02.123456789Z", + "arrived_on": "2018-07-06T12:31:05.123456789Z", "exit_uuid": "4ff58def-89e7-4c52-bda7-ebea0ee5176e", "node_uuid": "c6e9b298-77bc-4d4c-91b6-43fa18338742", "uuid": "b504fe9e-d8a8-47fd-af9c-ff2f1faac4db" }, { - "arrived_on": "2018-07-06T12:31:06.123456789Z", + "arrived_on": "2018-07-06T12:31:09.123456789Z", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "uuid": "3ceb7525-c2e1-40b0-bec9-e032f4f9af5f" } @@ -1266,7 +1278,7 @@ "results": { "answer": { "category": "Other", - "created_on": "2018-07-06T12:30:57.123456789Z", + "created_on": "2018-07-06T12:31:00.123456789Z", "input": "never", "name": "Answer", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", @@ -1295,12 +1307,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", + "expires_on": "2018-07-13T12:30:14.123456789Z", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1315,14 +1328,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "name": "Answer", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "run_result_changed", "value": "neither" }, { - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1337,12 +1350,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", + "expires_on": "2018-07-13T12:30:31.123456789Z", "step_uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:34.123456789Z", + "created_on": "2018-07-06T12:30:36.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1357,7 +1371,7 @@ }, { "category": "Yes", - "created_on": "2018-07-06T12:30:38.123456789Z", + "created_on": "2018-07-06T12:30:40.123456789Z", "name": "Answer", "previous": { "category": "Other", @@ -1368,7 +1382,7 @@ "value": "yes" }, { - "created_on": "2018-07-06T12:30:42.123456789Z", + "created_on": "2018-07-06T12:30:44.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1383,12 +1397,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:44.123456789Z", + "exited_on": "2018-07-06T12:30:46.123456789Z", "flow": { "name": "Rules", "uuid": "d092cbbf-7745-4a41-b55d-bdafc4c96ab8" }, - "modified_on": "2018-07-06T12:30:44.123456789Z", + "modified_on": "2018-07-06T12:30:46.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -1404,19 +1418,19 @@ "uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186" }, { - "arrived_on": "2018-07-06T12:30:25.123456789Z", + "arrived_on": "2018-07-06T12:30:26.123456789Z", "exit_uuid": "6a4cbb55-7936-4c98-958b-eba1866a596e", "node_uuid": "4ff04e17-96d0-4920-8920-8d4d5fb2ae17", "uuid": "b88ce93d-4360-4455-a691-235cbe720980" }, { - "arrived_on": "2018-07-06T12:30:29.123456789Z", + "arrived_on": "2018-07-06T12:30:30.123456789Z", "exit_uuid": "5a2f31ea-6ffc-40ce-8adc-d1f5d9f9d5e4", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", "uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034" }, { - "arrived_on": "2018-07-06T12:30:41.123456789Z", + "arrived_on": "2018-07-06T12:30:43.123456789Z", "exit_uuid": "8df047e3-465e-4d3c-a332-25b62aacdefb", "node_uuid": "9b53d684-62a6-4f25-900c-268f762b192e", "uuid": "44fe8d72-00ed-4736-acca-bbca70987315" @@ -1425,7 +1439,7 @@ "results": { "answer": { "category": "Yes", - "created_on": "2018-07-06T12:30:36.123456789Z", + "created_on": "2018-07-06T12:30:38.123456789Z", "input": "yes", "name": "Answer", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", @@ -1489,7 +1503,7 @@ { "events": [ { - "created_on": "2018-07-06T12:31:11.123456789Z", + "created_on": "2018-07-06T12:31:15.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1504,7 +1518,7 @@ }, { "category": "No", - "created_on": "2018-07-06T12:31:15.123456789Z", + "created_on": "2018-07-06T12:31:19.123456789Z", "name": "Answer", "previous": { "category": "Other", @@ -1515,7 +1529,7 @@ "value": "no" }, { - "created_on": "2018-07-06T12:31:19.123456789Z", + "created_on": "2018-07-06T12:31:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1537,7 +1551,7 @@ "flow_uuid": "9e43da00-b2e5-450e-a351-0772f5469511", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "operand": "no", - "time": "2018-07-06T12:31:17.123456789Z" + "time": "2018-07-06T12:31:21.123456789Z" } ], "session": { @@ -1621,7 +1635,7 @@ "type": "flow_entered" }, { - "created_on": "2018-07-06T12:30:47.123456789Z", + "created_on": "2018-07-06T12:30:49.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1636,12 +1650,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:51.123456789Z", + "created_on": "2018-07-06T12:30:54.123456789Z", + "expires_on": "2018-07-13T12:30:53.123456789Z", "step_uuid": "27b67219-e599-4697-b62c-3c781ca3b5da", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:55.123456789Z", + "created_on": "2018-07-06T12:30:58.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1656,14 +1671,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:59.123456789Z", + "created_on": "2018-07-06T12:31:02.123456789Z", "name": "Answer", "step_uuid": "27b67219-e599-4697-b62c-3c781ca3b5da", "type": "run_result_changed", "value": "never" }, { - "created_on": "2018-07-06T12:31:03.123456789Z", + "created_on": "2018-07-06T12:31:06.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1678,12 +1693,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:31:07.123456789Z", + "created_on": "2018-07-06T12:31:11.123456789Z", + "expires_on": "2018-07-13T12:31:10.123456789Z", "step_uuid": "3ceb7525-c2e1-40b0-bec9-e032f4f9af5f", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:31:11.123456789Z", + "created_on": "2018-07-06T12:31:15.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1698,7 +1714,7 @@ }, { "category": "No", - "created_on": "2018-07-06T12:31:15.123456789Z", + "created_on": "2018-07-06T12:31:19.123456789Z", "name": "Answer", "previous": { "category": "Other", @@ -1709,7 +1725,7 @@ "value": "no" }, { - "created_on": "2018-07-06T12:31:19.123456789Z", + "created_on": "2018-07-06T12:31:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1724,12 +1740,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:31:21.123456789Z", + "exited_on": "2018-07-06T12:31:25.123456789Z", "flow": { "name": "Parent Flow", "uuid": "9e43da00-b2e5-450e-a351-0772f5469511" }, - "modified_on": "2018-07-06T12:31:21.123456789Z", + "modified_on": "2018-07-06T12:31:25.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -1744,31 +1760,31 @@ "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:46.123456789Z", + "arrived_on": "2018-07-06T12:30:48.123456789Z", "exit_uuid": "2a67e061-c7da-42f7-91e5-32c8a9591020", "node_uuid": "70af8b8f-9caf-4af9-8e03-5686beb9336f", "uuid": "b52a7f80-f820-4163-9654-8a7258fbaae4" }, { - "arrived_on": "2018-07-06T12:30:50.123456789Z", + "arrived_on": "2018-07-06T12:30:52.123456789Z", "exit_uuid": "5b6fb733-249a-42f6-992e-1253f158404c", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "uuid": "27b67219-e599-4697-b62c-3c781ca3b5da" }, { - "arrived_on": "2018-07-06T12:31:02.123456789Z", + "arrived_on": "2018-07-06T12:31:05.123456789Z", "exit_uuid": "4ff58def-89e7-4c52-bda7-ebea0ee5176e", "node_uuid": "c6e9b298-77bc-4d4c-91b6-43fa18338742", "uuid": "b504fe9e-d8a8-47fd-af9c-ff2f1faac4db" }, { - "arrived_on": "2018-07-06T12:31:06.123456789Z", + "arrived_on": "2018-07-06T12:31:09.123456789Z", "exit_uuid": "3a7b37a7-3ea0-4532-8c27-742c467be53a", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", "uuid": "3ceb7525-c2e1-40b0-bec9-e032f4f9af5f" }, { - "arrived_on": "2018-07-06T12:31:18.123456789Z", + "arrived_on": "2018-07-06T12:31:22.123456789Z", "exit_uuid": "801c349a-2c2e-4666-b7b2-1e6ed4945d8a", "node_uuid": "48d058e6-a40c-437f-a3b0-f757dbbdeda1", "uuid": "b6c40a98-ecfa-4266-9853-0310d032b497" @@ -1777,7 +1793,7 @@ "results": { "answer": { "category": "No", - "created_on": "2018-07-06T12:31:13.123456789Z", + "created_on": "2018-07-06T12:31:17.123456789Z", "input": "no", "name": "Answer", "node_uuid": "6bd3b6ec-050d-41f7-84bf-f4030f2f01f7", @@ -1806,12 +1822,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", + "expires_on": "2018-07-13T12:30:14.123456789Z", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1826,14 +1843,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "name": "Answer", "step_uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186", "type": "run_result_changed", "value": "neither" }, { - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1848,12 +1865,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", + "expires_on": "2018-07-13T12:30:31.123456789Z", "step_uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:34.123456789Z", + "created_on": "2018-07-06T12:30:36.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -1868,7 +1886,7 @@ }, { "category": "Yes", - "created_on": "2018-07-06T12:30:38.123456789Z", + "created_on": "2018-07-06T12:30:40.123456789Z", "name": "Answer", "previous": { "category": "Other", @@ -1879,7 +1897,7 @@ "value": "yes" }, { - "created_on": "2018-07-06T12:30:42.123456789Z", + "created_on": "2018-07-06T12:30:44.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -1894,12 +1912,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:44.123456789Z", + "exited_on": "2018-07-06T12:30:46.123456789Z", "flow": { "name": "Rules", "uuid": "d092cbbf-7745-4a41-b55d-bdafc4c96ab8" }, - "modified_on": "2018-07-06T12:30:44.123456789Z", + "modified_on": "2018-07-06T12:30:46.123456789Z", "parent_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "path": [ { @@ -1915,19 +1933,19 @@ "uuid": "a4d15ed4-5b24-407f-b86e-4b881f09a186" }, { - "arrived_on": "2018-07-06T12:30:25.123456789Z", + "arrived_on": "2018-07-06T12:30:26.123456789Z", "exit_uuid": "6a4cbb55-7936-4c98-958b-eba1866a596e", "node_uuid": "4ff04e17-96d0-4920-8920-8d4d5fb2ae17", "uuid": "b88ce93d-4360-4455-a691-235cbe720980" }, { - "arrived_on": "2018-07-06T12:30:29.123456789Z", + "arrived_on": "2018-07-06T12:30:30.123456789Z", "exit_uuid": "5a2f31ea-6ffc-40ce-8adc-d1f5d9f9d5e4", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", "uuid": "4f15f627-b1e2-4851-8dbf-00ecf5d03034" }, { - "arrived_on": "2018-07-06T12:30:41.123456789Z", + "arrived_on": "2018-07-06T12:30:43.123456789Z", "exit_uuid": "8df047e3-465e-4d3c-a332-25b62aacdefb", "node_uuid": "9b53d684-62a6-4f25-900c-268f762b192e", "uuid": "44fe8d72-00ed-4736-acca-bbca70987315" @@ -1936,7 +1954,7 @@ "results": { "answer": { "category": "Yes", - "created_on": "2018-07-06T12:30:36.123456789Z", + "created_on": "2018-07-06T12:30:38.123456789Z", "input": "yes", "name": "Answer", "node_uuid": "7dbcb3fd-16ee-4ce6-bd56-54b45a647958", diff --git a/test/testdata/runner/ticketing.test.json b/test/testdata/runner/ticketing.test.json index 40c319bec..36e2bfc25 100644 --- a/test/testdata/runner/ticketing.test.json +++ b/test/testdata/runner/ticketing.test.json @@ -14,7 +14,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -71,7 +72,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -81,7 +83,7 @@ "name": "Support", "uuid": "3486fc59-d417-4189-93cd-e0aa8e3112ac" }, - "modified_on": "2018-07-06T12:30:08.123456789Z", + "modified_on": "2018-07-06T12:30:09.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -141,7 +143,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "msg": { "text": "Rats", "urn": "tel:+12065551212", @@ -152,14 +154,14 @@ }, { "category": "All Responses", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "name": "Response 1", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "Rats" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "note": "Last message: Rats", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "ticket": { @@ -173,7 +175,7 @@ }, { "category": "Success", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "name": "Ticket", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "run_result_changed", @@ -181,7 +183,7 @@ }, { "body": "[{\"assignee\":null,\"topic\":{\"name\":\"Weather\",\"uuid\":\"472a7a73-96cb-4736-b567-056d987cc5b4\"},\"uuid\":\"5ecda5fc-951c-437b-a17e-f85e49829fb9\"}]", - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "step_uuid": "312d3af0-a565-4c96-ba00-bd7f0d08e671", "subject": "New ticket: 5ecda5fc-951c-437b-a17e-f85e49829fb9", "to": [ @@ -197,7 +199,7 @@ "flow_uuid": "3486fc59-d417-4189-93cd-e0aa8e3112ac", "node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82", "operand": "Rats", - "time": "2018-07-06T12:30:16.123456789Z" + "time": "2018-07-06T12:30:17.123456789Z" }, { "destination_uuid": "ac3fcd8e-e7bb-4545-865d-39424a8f1d7b", @@ -205,7 +207,7 @@ "flow_uuid": "3486fc59-d417-4189-93cd-e0aa8e3112ac", "node_uuid": "145eb3d3-b841-4e66-abac-297ae525c7ad", "operand": "5ecda5fc-951c-437b-a17e-f85e49829fb9", - "time": "2018-07-06T12:30:24.123456789Z" + "time": "2018-07-06T12:30:25.123456789Z" } ], "session": { @@ -266,12 +268,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", + "expires_on": "2018-07-13T12:30:06.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "msg": { "text": "Rats", "urn": "tel:+12065551212", @@ -282,14 +285,14 @@ }, { "category": "All Responses", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "name": "Response 1", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "Rats" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "note": "Last message: Rats", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "ticket": { @@ -303,7 +306,7 @@ }, { "category": "Success", - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "name": "Ticket", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", "type": "run_result_changed", @@ -311,7 +314,7 @@ }, { "body": "[{\"assignee\":null,\"topic\":{\"name\":\"Weather\",\"uuid\":\"472a7a73-96cb-4736-b567-056d987cc5b4\"},\"uuid\":\"5ecda5fc-951c-437b-a17e-f85e49829fb9\"}]", - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "step_uuid": "312d3af0-a565-4c96-ba00-bd7f0d08e671", "subject": "New ticket: 5ecda5fc-951c-437b-a17e-f85e49829fb9", "to": [ @@ -320,12 +323,12 @@ "type": "email_sent" } ], - "exited_on": "2018-07-06T12:30:28.123456789Z", + "exited_on": "2018-07-06T12:30:29.123456789Z", "flow": { "name": "Support", "uuid": "3486fc59-d417-4189-93cd-e0aa8e3112ac" }, - "modified_on": "2018-07-06T12:30:28.123456789Z", + "modified_on": "2018-07-06T12:30:29.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -340,13 +343,13 @@ "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:17.123456789Z", + "arrived_on": "2018-07-06T12:30:18.123456789Z", "exit_uuid": "33712037-9861-4d61-9dcb-60d7fffef96a", "node_uuid": "145eb3d3-b841-4e66-abac-297ae525c7ad", "uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623" }, { - "arrived_on": "2018-07-06T12:30:25.123456789Z", + "arrived_on": "2018-07-06T12:30:26.123456789Z", "exit_uuid": "b6562dea-d21c-4a99-b904-0fb9583fb5ab", "node_uuid": "ac3fcd8e-e7bb-4545-865d-39424a8f1d7b", "uuid": "312d3af0-a565-4c96-ba00-bd7f0d08e671" @@ -355,7 +358,7 @@ "results": { "response_1": { "category": "All Responses", - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "input": "Rats", "name": "Response 1", "node_uuid": "3dcccbb4-d29c-41dd-a01f-16d814c9ab82", @@ -363,7 +366,7 @@ }, "ticket": { "category": "Success", - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "name": "Ticket", "node_uuid": "145eb3d3-b841-4e66-abac-297ae525c7ad", "value": "5ecda5fc-951c-437b-a17e-f85e49829fb9" diff --git a/test/testdata/runner/two_questions.test.json b/test/testdata/runner/two_questions.test.json index 9a7d605a1..53995f67c 100644 --- a/test/testdata/runner/two_questions.test.json +++ b/test/testdata/runner/two_questions.test.json @@ -30,7 +30,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "timeout_seconds": 600, "type": "msg_wait" @@ -96,7 +97,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "timeout_seconds": 600, "type": "msg_wait" @@ -107,7 +109,7 @@ "name": "Two Questions", "uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4" }, - "modified_on": "2018-07-06T12:30:06.123456789Z", + "modified_on": "2018-07-06T12:30:07.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -169,7 +171,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:07.123456789Z", + "created_on": "2018-07-06T12:30:08.123456789Z", "environment": { "allowed_languages": [ "eng", @@ -212,12 +214,12 @@ ], "uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3" }, - "created_on": "2018-07-06T12:30:09.123456789Z", + "created_on": "2018-07-06T12:30:10.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "contact_refreshed" }, { - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -232,20 +234,20 @@ }, { "category": "Blue", - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "name": "Favorite Color", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "blue" }, { - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "language": "fra", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "contact_language_changed" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -260,7 +262,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:24.123456789Z", + "created_on": "2018-07-06T12:30:26.123456789Z", + "expires_on": "2018-07-13T12:30:25.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -272,7 +275,7 @@ "flow_uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", "operand": "I like blue!", - "time": "2018-07-06T12:30:18.123456789Z" + "time": "2018-07-06T12:30:19.123456789Z" } ], "session": { @@ -350,13 +353,14 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "timeout_seconds": 600, "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:07.123456789Z", + "created_on": "2018-07-06T12:30:08.123456789Z", "environment": { "allowed_languages": [ "eng", @@ -399,12 +403,12 @@ ], "uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3" }, - "created_on": "2018-07-06T12:30:09.123456789Z", + "created_on": "2018-07-06T12:30:10.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "contact_refreshed" }, { - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -419,20 +423,20 @@ }, { "category": "Blue", - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "name": "Favorite Color", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "blue" }, { - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "language": "fra", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "contact_language_changed" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -447,7 +451,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:24.123456789Z", + "created_on": "2018-07-06T12:30:26.123456789Z", + "expires_on": "2018-07-13T12:30:25.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -457,7 +462,7 @@ "name": "Two Questions", "uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4" }, - "modified_on": "2018-07-06T12:30:26.123456789Z", + "modified_on": "2018-07-06T12:30:28.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -466,7 +471,7 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:19.123456789Z", + "arrived_on": "2018-07-06T12:30:20.123456789Z", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "uuid": "5802813d-6c58-4292-8228-9728778b6c98" } @@ -474,7 +479,7 @@ "results": { "favorite_color": { "category": "Blue", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "input": "I like blue!", "name": "Favorite Color", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", @@ -535,7 +540,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:28.123456789Z", + "created_on": "2018-07-06T12:30:30.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -550,14 +555,14 @@ }, { "category": "Coke", - "created_on": "2018-07-06T12:30:32.123456789Z", + "created_on": "2018-07-06T12:30:34.123456789Z", "name": "Soda", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "Coke" }, { - "created_on": "2018-07-06T12:30:38.123456789Z", + "created_on": "2018-07-06T12:30:40.123456789Z", "elapsed_ms": 1000, "extraction": "valid", "request": "POST /?cmd=success HTTP/1.1\r\nHost: localhost\r\nUser-Agent: goflow-testing\r\nContent-Length: 69\r\nAccept-Encoding: gzip\r\n\r\n{ \"contact\": \"ba96bf7f-bc2a-4873-a7c7-254d1927c4e3\", \"soda\": \"Coke\" }", @@ -570,7 +575,7 @@ "url": "http://localhost/?cmd=success" }, { - "created_on": "2018-07-06T12:30:40.123456789Z", + "created_on": "2018-07-06T12:30:42.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -592,7 +597,7 @@ "flow_uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "operand": "Coke", - "time": "2018-07-06T12:30:34.123456789Z" + "time": "2018-07-06T12:30:36.123456789Z" } ], "session": { @@ -670,13 +675,14 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "timeout_seconds": 600, "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:07.123456789Z", + "created_on": "2018-07-06T12:30:08.123456789Z", "environment": { "allowed_languages": [ "eng", @@ -719,12 +725,12 @@ ], "uuid": "ba96bf7f-bc2a-4873-a7c7-254d1927c4e3" }, - "created_on": "2018-07-06T12:30:09.123456789Z", + "created_on": "2018-07-06T12:30:10.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "contact_refreshed" }, { - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -739,20 +745,20 @@ }, { "category": "Blue", - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "name": "Favorite Color", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "blue" }, { - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "language": "fra", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "contact_language_changed" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:23.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -767,12 +773,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:24.123456789Z", + "created_on": "2018-07-06T12:30:26.123456789Z", + "expires_on": "2018-07-13T12:30:25.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:28.123456789Z", + "created_on": "2018-07-06T12:30:30.123456789Z", "msg": { "channel": { "name": "Nexmo", @@ -787,14 +794,14 @@ }, { "category": "Coke", - "created_on": "2018-07-06T12:30:32.123456789Z", + "created_on": "2018-07-06T12:30:34.123456789Z", "name": "Soda", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "Coke" }, { - "created_on": "2018-07-06T12:30:38.123456789Z", + "created_on": "2018-07-06T12:30:40.123456789Z", "elapsed_ms": 1000, "extraction": "valid", "request": "POST /?cmd=success HTTP/1.1\r\nHost: localhost\r\nUser-Agent: goflow-testing\r\nContent-Length: 69\r\nAccept-Encoding: gzip\r\n\r\n{ \"contact\": \"ba96bf7f-bc2a-4873-a7c7-254d1927c4e3\", \"soda\": \"Coke\" }", @@ -807,7 +814,7 @@ "url": "http://localhost/?cmd=success" }, { - "created_on": "2018-07-06T12:30:40.123456789Z", + "created_on": "2018-07-06T12:30:42.123456789Z", "msg": { "channel": { "name": "Android Channel", @@ -822,12 +829,12 @@ "type": "msg_created" } ], - "exited_on": "2018-07-06T12:30:42.123456789Z", + "exited_on": "2018-07-06T12:30:44.123456789Z", "flow": { "name": "Two Questions", "uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4" }, - "modified_on": "2018-07-06T12:30:42.123456789Z", + "modified_on": "2018-07-06T12:30:44.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -836,13 +843,13 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:19.123456789Z", + "arrived_on": "2018-07-06T12:30:20.123456789Z", "exit_uuid": "9ad71fc4-c2f8-4aab-a193-7bafad172ca0", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:35.123456789Z", + "arrived_on": "2018-07-06T12:30:37.123456789Z", "exit_uuid": "2bd0b38a-5010-426e-a9f5-77ffe7b89d4d", "node_uuid": "cefd2817-38a8-4ddb-af97-34fffac7e6db", "uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9" @@ -851,7 +858,7 @@ "results": { "favorite_color": { "category": "Blue", - "created_on": "2018-07-06T12:30:14.123456789Z", + "created_on": "2018-07-06T12:30:15.123456789Z", "input": "I like blue!", "name": "Favorite Color", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", @@ -860,7 +867,7 @@ "soda": { "category": "Coke", "category_localized": "Coke", - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", "input": "Coke", "name": "Soda", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", diff --git a/test/testdata/runner/two_questions.test_resume_with_expiration.json b/test/testdata/runner/two_questions.test_resume_with_expiration.json index 8f1a5ade9..0b4a701a2 100644 --- a/test/testdata/runner/two_questions.test_resume_with_expiration.json +++ b/test/testdata/runner/two_questions.test_resume_with_expiration.json @@ -22,7 +22,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "timeout_seconds": 600, "type": "msg_wait" @@ -88,7 +89,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "timeout_seconds": 600, "type": "msg_wait" @@ -99,7 +101,7 @@ "name": "Two Questions", "uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4" }, - "modified_on": "2018-07-06T12:30:06.123456789Z", + "modified_on": "2018-07-06T12:30:07.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -161,7 +163,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "run_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_expired" @@ -227,24 +229,25 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-13T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "timeout_seconds": 600, "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "run_uuid": "692926ea-09d6-4942-bd38-d266ec8d3716", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_expired" } ], - "exited_on": "2018-07-06T12:30:07.123456789Z", + "exited_on": "2018-07-06T12:30:08.123456789Z", "flow": { "name": "Two Questions", "uuid": "615b8a0f-588c-4d20-a05f-363b0b4ce6f4" }, - "modified_on": "2018-07-06T12:30:09.123456789Z", + "modified_on": "2018-07-06T12:30:10.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", diff --git a/test/testdata/runner/two_questions_offline.test.json b/test/testdata/runner/two_questions_offline.test.json index 41ae48440..d30215d9e 100644 --- a/test/testdata/runner/two_questions_offline.test.json +++ b/test/testdata/runner/two_questions_offline.test.json @@ -14,7 +14,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-06T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" } @@ -71,7 +72,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-06T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" } @@ -81,7 +83,7 @@ "name": "Two Questions", "uuid": "7c3db26f-e12a-48af-9673-e2feefdf8516" }, - "modified_on": "2018-07-06T12:30:06.123456789Z", + "modified_on": "2018-07-06T12:30:07.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -143,7 +145,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "msg": { "text": "red", "urn": "tel:+12065551212", @@ -154,14 +156,14 @@ }, { "category": "Red", - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "name": "Favorite Color", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "red" }, { - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "msg": { "locale": "eng-US", "text": "Red it is! What is your favorite soda? (pepsi/coke)", @@ -172,7 +174,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:20.123456789Z", + "expires_on": "2018-07-06T12:30:19.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -184,7 +187,7 @@ "flow_uuid": "7c3db26f-e12a-48af-9673-e2feefdf8516", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", "operand": "red", - "time": "2018-07-06T12:30:14.123456789Z" + "time": "2018-07-06T12:30:15.123456789Z" } ], "session": { @@ -246,12 +249,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-06T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "msg": { "text": "red", "urn": "tel:+12065551212", @@ -262,14 +266,14 @@ }, { "category": "Red", - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "name": "Favorite Color", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "red" }, { - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "msg": { "locale": "eng-US", "text": "Red it is! What is your favorite soda? (pepsi/coke)", @@ -280,7 +284,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:20.123456789Z", + "expires_on": "2018-07-06T12:30:19.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" } @@ -290,7 +295,7 @@ "name": "Two Questions", "uuid": "7c3db26f-e12a-48af-9673-e2feefdf8516" }, - "modified_on": "2018-07-06T12:30:20.123456789Z", + "modified_on": "2018-07-06T12:30:22.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -299,7 +304,7 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:15.123456789Z", + "arrived_on": "2018-07-06T12:30:16.123456789Z", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "uuid": "5802813d-6c58-4292-8228-9728778b6c98" } @@ -307,7 +312,7 @@ "results": { "favorite_color": { "category": "Red", - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "input": "red", "name": "Favorite Color", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", @@ -368,7 +373,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:24.123456789Z", "msg": { "text": "pepsi", "urn": "tel:+12065551212", @@ -379,14 +384,14 @@ }, { "category": "Pepsi", - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:28.123456789Z", "name": "Soda", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "pepsi" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", "msg": { "locale": "eng-US", "text": "Great, you like pepsi. Finish by sending us a selfie!", @@ -397,7 +402,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:32.123456789Z", + "created_on": "2018-07-06T12:30:35.123456789Z", + "expires_on": "2018-07-06T12:30:34.123456789Z", "hint": { "type": "image" }, @@ -412,7 +418,7 @@ "flow_uuid": "7c3db26f-e12a-48af-9673-e2feefdf8516", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "operand": "pepsi", - "time": "2018-07-06T12:30:28.123456789Z" + "time": "2018-07-06T12:30:30.123456789Z" } ], "session": { @@ -474,12 +480,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-06T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "msg": { "text": "red", "urn": "tel:+12065551212", @@ -490,14 +497,14 @@ }, { "category": "Red", - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "name": "Favorite Color", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "red" }, { - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "msg": { "locale": "eng-US", "text": "Red it is! What is your favorite soda? (pepsi/coke)", @@ -508,12 +515,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:20.123456789Z", + "expires_on": "2018-07-06T12:30:19.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:24.123456789Z", "msg": { "text": "pepsi", "urn": "tel:+12065551212", @@ -524,14 +532,14 @@ }, { "category": "Pepsi", - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:28.123456789Z", "name": "Soda", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "pepsi" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", "msg": { "locale": "eng-US", "text": "Great, you like pepsi. Finish by sending us a selfie!", @@ -542,7 +550,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:32.123456789Z", + "created_on": "2018-07-06T12:30:35.123456789Z", + "expires_on": "2018-07-06T12:30:34.123456789Z", "hint": { "type": "image" }, @@ -555,7 +564,7 @@ "name": "Two Questions", "uuid": "7c3db26f-e12a-48af-9673-e2feefdf8516" }, - "modified_on": "2018-07-06T12:30:34.123456789Z", + "modified_on": "2018-07-06T12:30:37.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -564,13 +573,13 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:15.123456789Z", + "arrived_on": "2018-07-06T12:30:16.123456789Z", "exit_uuid": "3bd19c40-1114-4b83-b12e-f0c38054ba3f", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:29.123456789Z", + "arrived_on": "2018-07-06T12:30:31.123456789Z", "node_uuid": "cefd2817-38a8-4ddb-af97-34fffac7e6db", "uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9" } @@ -578,7 +587,7 @@ "results": { "favorite_color": { "category": "Red", - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "input": "red", "name": "Favorite Color", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", @@ -586,7 +595,7 @@ }, "soda": { "category": "Pepsi", - "created_on": "2018-07-06T12:30:24.123456789Z", + "created_on": "2018-07-06T12:30:26.123456789Z", "input": "pepsi", "name": "Soda", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", @@ -647,7 +656,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:36.123456789Z", + "created_on": "2018-07-06T12:30:39.123456789Z", "msg": { "attachments": [ "image/jpeg:http://s3.com/selfie.jpg" @@ -723,12 +732,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:04.123456789Z", + "created_on": "2018-07-06T12:30:05.123456789Z", + "expires_on": "2018-07-06T12:30:04.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "msg": { "text": "red", "urn": "tel:+12065551212", @@ -739,14 +749,14 @@ }, { "category": "Red", - "created_on": "2018-07-06T12:30:12.123456789Z", + "created_on": "2018-07-06T12:30:13.123456789Z", "name": "Favorite Color", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "red" }, { - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "msg": { "locale": "eng-US", "text": "Red it is! What is your favorite soda? (pepsi/coke)", @@ -757,12 +767,13 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:20.123456789Z", + "expires_on": "2018-07-06T12:30:19.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:22.123456789Z", + "created_on": "2018-07-06T12:30:24.123456789Z", "msg": { "text": "pepsi", "urn": "tel:+12065551212", @@ -773,14 +784,14 @@ }, { "category": "Pepsi", - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:28.123456789Z", "name": "Soda", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "pepsi" }, { - "created_on": "2018-07-06T12:30:30.123456789Z", + "created_on": "2018-07-06T12:30:32.123456789Z", "msg": { "locale": "eng-US", "text": "Great, you like pepsi. Finish by sending us a selfie!", @@ -791,7 +802,8 @@ "type": "msg_created" }, { - "created_on": "2018-07-06T12:30:32.123456789Z", + "created_on": "2018-07-06T12:30:35.123456789Z", + "expires_on": "2018-07-06T12:30:34.123456789Z", "hint": { "type": "image" }, @@ -799,7 +811,7 @@ "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:36.123456789Z", + "created_on": "2018-07-06T12:30:39.123456789Z", "msg": { "attachments": [ "image/jpeg:http://s3.com/selfie.jpg" @@ -812,12 +824,12 @@ "type": "msg_received" } ], - "exited_on": "2018-07-06T12:30:38.123456789Z", + "exited_on": "2018-07-06T12:30:41.123456789Z", "flow": { "name": "Two Questions", "uuid": "7c3db26f-e12a-48af-9673-e2feefdf8516" }, - "modified_on": "2018-07-06T12:30:38.123456789Z", + "modified_on": "2018-07-06T12:30:41.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -826,13 +838,13 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:15.123456789Z", + "arrived_on": "2018-07-06T12:30:16.123456789Z", "exit_uuid": "3bd19c40-1114-4b83-b12e-f0c38054ba3f", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", "uuid": "5802813d-6c58-4292-8228-9728778b6c98" }, { - "arrived_on": "2018-07-06T12:30:29.123456789Z", + "arrived_on": "2018-07-06T12:30:31.123456789Z", "exit_uuid": "2bd0b38a-5010-426e-a9f5-77ffe7b89d4d", "node_uuid": "cefd2817-38a8-4ddb-af97-34fffac7e6db", "uuid": "5ecda5fc-951c-437b-a17e-f85e49829fb9" @@ -841,7 +853,7 @@ "results": { "favorite_color": { "category": "Red", - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "input": "red", "name": "Favorite Color", "node_uuid": "46d51f50-58de-49da-8d13-dadbf322685d", @@ -849,7 +861,7 @@ }, "soda": { "category": "Pepsi", - "created_on": "2018-07-06T12:30:24.123456789Z", + "created_on": "2018-07-06T12:30:26.123456789Z", "input": "pepsi", "name": "Soda", "node_uuid": "11a772f3-3ca2-4429-8b33-20fdcfc2b69e", diff --git a/test/testdata/runner/webhook_migrated.test.json b/test/testdata/runner/webhook_migrated.test.json index 72604141d..676948d6f 100644 --- a/test/testdata/runner/webhook_migrated.test.json +++ b/test/testdata/runner/webhook_migrated.test.json @@ -11,7 +11,8 @@ { "events": [ { - "created_on": "2018-07-06T12:30:02.123456789Z", + "created_on": "2018-07-06T12:30:03.123456789Z", + "expires_on": "2018-07-13T12:30:02.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" } @@ -46,7 +47,8 @@ "created_on": "2018-07-06T12:30:00.123456789Z", "events": [ { - "created_on": "2018-07-06T12:30:02.123456789Z", + "created_on": "2018-07-06T12:30:03.123456789Z", + "expires_on": "2018-07-13T12:30:02.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" } @@ -56,7 +58,7 @@ "name": "Migrated Webhook", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" }, - "modified_on": "2018-07-06T12:30:04.123456789Z", + "modified_on": "2018-07-06T12:30:05.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -96,7 +98,7 @@ { "events": [ { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", "msg": { "text": "Ryan Lewis", "urn": "tel:+12065551212", @@ -107,14 +109,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "name": "Country Response", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "elapsed_ms": 1000, "extraction": "valid", "request": "GET /?cmd=country HTTP/1.1\r\nHost: localhost\r\nUser-Agent: goflow-testing\r\nAccept-Encoding: gzip\r\n\r\n", @@ -128,7 +130,7 @@ }, { "category": "Success", - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "extra": { "exists": "valid" }, @@ -138,14 +140,14 @@ "value": "200" }, { - "created_on": "2018-07-06T12:30:24.123456789Z", + "created_on": "2018-07-06T12:30:25.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "text": "deprecated context value accessed: legacy_extra", "type": "warning" }, { "category": "Valid", - "created_on": "2018-07-06T12:30:28.123456789Z", + "created_on": "2018-07-06T12:30:29.123456789Z", "name": "Country", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", @@ -159,7 +161,7 @@ "flow_uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02", "node_uuid": "5b5abbf2-5f12-4f83-a804-90695e6c4302", "operand": "Ryan Lewis", - "time": "2018-07-06T12:30:12.123456789Z" + "time": "2018-07-06T12:30:13.123456789Z" }, { "destination_uuid": "e5d0c54c-7702-4e6b-9080-3de1a120a647", @@ -167,7 +169,7 @@ "flow_uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02", "node_uuid": "d02536d0-7e86-47ab-8c60-fcf2678abc2b", "operand": "Success", - "time": "2018-07-06T12:30:22.123456789Z" + "time": "2018-07-06T12:30:23.123456789Z" } ], "session": { @@ -207,12 +209,13 @@ "created_on": "2018-07-06T12:30:00.123456789Z", "events": [ { - "created_on": "2018-07-06T12:30:02.123456789Z", + "created_on": "2018-07-06T12:30:03.123456789Z", + "expires_on": "2018-07-13T12:30:02.123456789Z", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "msg_wait" }, { - "created_on": "2018-07-06T12:30:06.123456789Z", + "created_on": "2018-07-06T12:30:07.123456789Z", "msg": { "text": "Ryan Lewis", "urn": "tel:+12065551212", @@ -223,14 +226,14 @@ }, { "category": "Other", - "created_on": "2018-07-06T12:30:10.123456789Z", + "created_on": "2018-07-06T12:30:11.123456789Z", "name": "Country Response", "step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094", "type": "run_result_changed", "value": "Ryan Lewis" }, { - "created_on": "2018-07-06T12:30:16.123456789Z", + "created_on": "2018-07-06T12:30:17.123456789Z", "elapsed_ms": 1000, "extraction": "valid", "request": "GET /?cmd=country HTTP/1.1\r\nHost: localhost\r\nUser-Agent: goflow-testing\r\nAccept-Encoding: gzip\r\n\r\n", @@ -244,7 +247,7 @@ }, { "category": "Success", - "created_on": "2018-07-06T12:30:20.123456789Z", + "created_on": "2018-07-06T12:30:21.123456789Z", "extra": { "exists": "valid" }, @@ -254,26 +257,26 @@ "value": "200" }, { - "created_on": "2018-07-06T12:30:24.123456789Z", + "created_on": "2018-07-06T12:30:25.123456789Z", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "text": "deprecated context value accessed: legacy_extra", "type": "warning" }, { "category": "Valid", - "created_on": "2018-07-06T12:30:28.123456789Z", + "created_on": "2018-07-06T12:30:29.123456789Z", "name": "Country", "step_uuid": "5802813d-6c58-4292-8228-9728778b6c98", "type": "run_result_changed", "value": "valid" } ], - "exited_on": "2018-07-06T12:30:30.123456789Z", + "exited_on": "2018-07-06T12:30:31.123456789Z", "flow": { "name": "Migrated Webhook", "uuid": "76f0a02f-3b75-4b86-9064-e9195e1b3a02" }, - "modified_on": "2018-07-06T12:30:30.123456789Z", + "modified_on": "2018-07-06T12:30:31.123456789Z", "path": [ { "arrived_on": "2018-07-06T12:30:01.123456789Z", @@ -282,13 +285,13 @@ "uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094" }, { - "arrived_on": "2018-07-06T12:30:13.123456789Z", + "arrived_on": "2018-07-06T12:30:14.123456789Z", "exit_uuid": "96a1ff26-af04-4698-a4bd-40939bf2e7ab", "node_uuid": "d02536d0-7e86-47ab-8c60-fcf2678abc2b", "uuid": "c34b6c7d-fa06-4563-92a3-d648ab64bccb" }, { - "arrived_on": "2018-07-06T12:30:23.123456789Z", + "arrived_on": "2018-07-06T12:30:24.123456789Z", "exit_uuid": "10b6fb5d-7da8-433c-835c-d05cfd352ce4", "node_uuid": "e5d0c54c-7702-4e6b-9080-3de1a120a647", "uuid": "5802813d-6c58-4292-8228-9728778b6c98" @@ -297,7 +300,7 @@ "results": { "country": { "category": "Valid", - "created_on": "2018-07-06T12:30:26.123456789Z", + "created_on": "2018-07-06T12:30:27.123456789Z", "input": "valid", "name": "Country", "node_uuid": "e5d0c54c-7702-4e6b-9080-3de1a120a647", @@ -305,7 +308,7 @@ }, "country_response": { "category": "Other", - "created_on": "2018-07-06T12:30:08.123456789Z", + "created_on": "2018-07-06T12:30:09.123456789Z", "input": "Ryan Lewis", "name": "Country Response", "node_uuid": "5b5abbf2-5f12-4f83-a804-90695e6c4302", @@ -313,7 +316,7 @@ }, "country_webhook": { "category": "Success", - "created_on": "2018-07-06T12:30:18.123456789Z", + "created_on": "2018-07-06T12:30:19.123456789Z", "extra": { "exists": "valid" },