Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iTasks-SDK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
74
Issues
74
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
iTasks-SDK
Commits
6d5ca0d9
Commit
6d5ca0d9
authored
Jun 19, 2018
by
Steffen Michels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear SDS registrations when interact task is destroyed
parent
b8c197af
Pipeline
#12326
passed with stage
in 3 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Libraries/iTasks/WF/Tasks/Core.icl
Libraries/iTasks/WF/Tasks/Core.icl
+5
-3
No files found.
Libraries/iTasks/WF/Tasks/Core.icl
View file @
6d5ca0d9
...
...
@@ -10,7 +10,7 @@ import iTasks.Internal.TaskEval
import
iTasks
.
Internal
.
IWorld
import
qualified
iTasks
.
Internal
.
SDS
as
SDS
import
Data
.
Error
,
Data
.
Maybe
import
Data
.
Error
,
Data
.
Maybe
,
Data
.
Func
import
Text
.
GenJSON
import
StdString
,
StdBool
import
qualified
Data
.
Set
as
DS
...
...
@@ -56,11 +56,13 @@ where
interact
::
!
d
!
EditMode
!(
SDS
()
r
w
)
(
InteractionHandlers
l
r
w
v
)
(
Editor
v
)
->
Task
(
l
,
v
)
|
toPrompt
d
&
iTask
l
&
iTask
r
&
iTask
v
&
TC
w
interact
prompt
mode
shared
{
onInit
,
onEdit
,
onRefresh
}
editor
=
Task
eval
where
eval
event
evalOpts
(
TCDestroy
_)
iworld
=
(
DestroyedResult
,
iworld
)
eval
event
evalOpts
tt
=:(
TCDestroy
_)
iworld
#
iworld
=
'
SDS
'.
clearTaskSDSRegistrations
('
DS
'.
singleton
$
fromOk
$
taskIdFromTaskTree
tt
)
iworld
=
(
DestroyedResult
,
iworld
)
eval
event
evalOpts
tree
iworld
=:{
current
={
taskTime
}}
//Decode or initialize state
#
(
mbd
,
iworld
)
=
case
tree
of
#
(
mbd
,
iworld
)
=
case
tree
of
(
TCInit
taskId
ts
)
=
case
'
SDS
'.
readRegister
taskId
shared
iworld
of
(
Ok
r
,
iworld
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment