Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
clean-and-itasks
iTasks-SDK
Commits
62fbf150
Commit
62fbf150
authored
Aug 02, 2018
by
Mart Lubbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change examples for new sequence api
parent
75db7734
Pipeline
#13113
passed with stage
in 11 minutes and 11 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Examples/Applications/Incidone/Incidone/OP/ImportExportTasks.icl
...s/Applications/Incidone/Incidone/OP/ImportExportTasks.icl
+1
-1
Examples/Applications/Incidone/Incidone/RoleBased/AdministratorTasks.icl
...ations/Incidone/Incidone/RoleBased/AdministratorTasks.icl
+3
-3
Examples/Applications/ShipAdventure/C2/Framework/Core.icl
Examples/Applications/ShipAdventure/C2/Framework/Core.icl
+1
-1
No files found.
Examples/Applications/Incidone/Incidone/OP/ImportExportTasks.icl
View file @
62fbf150
...
...
@@ -6,7 +6,7 @@ import Incidone.OP.Concepts, Incidone.OP.SDSs, Incidone.OP.ContactManagementTask
importContactsFromCSVFile
::
Document
->
Task
()
importContactsFromCSVFile
doc
=
importCSVDocument
doc
>>-
\
csv
->
sequence
"Importing contacts"
(
map
create
(
skipHeader
csv
))
>>-
\
csv
->
sequence
(
map
create
(
skipHeader
csv
))
@!
()
where
skipHeader
[]
=
[]
...
...
Examples/Applications/Incidone/Incidone/RoleBased/AdministratorTasks.icl
View file @
62fbf150
...
...
@@ -118,7 +118,7 @@ where
@!
()
createIncidoneTables
db
=
(
sequence
"Creating Incidone tables"
[
sqlExecuteCreateTable
db
table
\\
table
<-
IncidoneDB
]
=
(
sequence
[
sqlExecuteCreateTable
db
table
\\
table
<-
IncidoneDB
]
>>-
viewInformation
"Incidone schema created"
[])
<<@
Title
"Creating Incidone tables..."
>>*
[
OnAction
ActionOk
(
always
(
return
()))]
...
...
@@ -127,7 +127,7 @@ where
>>?
\_
->
get
(
sdsFocus
db
sqlTables
)
>>-
\
tables
->
sequence
"Deleting all tables"
[
sqlExecuteDropTable
db
table
\\
table
<-
tables
]
sequence
[
sqlExecuteDropTable
db
table
\\
table
<-
tables
]
>>-
viewInformation
(
"Empty database"
,
"All data deleted"
)
[]
>>*
[
OnAction
ActionOk
(
always
(
return
()))]
...
...
@@ -191,7 +191,7 @@ where
-&&-
enterInformation
"Immediate close the incidents?"
[]
>>=
\(
num
,
closed
)
->
sequence
"Generating test incidents"
(
repeatn
num
(
generateTestIncident
closed
))
sequence
(
repeatn
num
(
generateTestIncident
closed
))
@!
()
configureIntegration
::
Task
()
...
...
Examples/Applications/ShipAdventure/C2/Framework/Core.icl
View file @
62fbf150
...
...
@@ -57,7 +57,7 @@ whileAuthenticated user ents alwaysOnTasks tlist
openAssignedTasks
ws
=
whileUnchanged
tasksToDo
(
doOpen
ws
)
// (watch tasksToDo >>* [OnValue (hasValue (doOpen ws))])
where
doOpen
::
Workspace
[(
TaskId
,
WorklistRow
)]
->
Task
()
doOpen
ws
xs
=
sequence
"openAssignedTasks"
(
map
(\(
taskId
,
_)
->
appendOnce
taskId
(
workOn
taskId
@!
())
ws
)
xs
)
@!
()
doOpen
ws
xs
=
sequence
(
map
(\(
taskId
,
_)
->
appendOnce
taskId
(
workOn
taskId
@!
())
ws
)
xs
)
@!
()
layout
=
sequenceLayouts
[
removeSubUIs
(
SelectByPath
[
1
])
//Don't show the openAssignedTasks UI
...
...
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