Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
clean-libraries
Commits
5bbabef8
Commit
5bbabef8
authored
Apr 13, 2008
by
Rinus Plasmeijer
Browse files
*** empty log message ***
parent
ba30d309
Changes
2
Hide whitespace changes
Inline
Side-by-side
libraries/iTasks/iTasks.dcl
View file @
5bbabef8
...
...
@@ -71,8 +71,8 @@ workFlowTask :: iTask start function for a real workflow, expects a login task a
*/
singleUserTask
::
![
StartUpOptions
]
!(
Task
a
)
!*
HSt
->
(!
Bool
,
Html
,*
HSt
)
|
iData
a
multiUserTask
::
![
StartUpOptions
]
!(
Task
a
)
!*
HSt
->
(!
Bool
,
Html
,*
HSt
)
|
iData
a
workFlowTask
::
![
StartUpOptions
]
!(
Task
(
UserId
,
a
))
!((
UserId
,
a
)
->
Task
b
)!*
HSt
->
(!
Bool
,
Html
,*
HSt
)
|
iData
b
workFlowTask
::
![
StartUpOptions
]
!(
Task
(
Bool
,
UserId
,
a
))
!((
Bool
,
UserId
,
a
)
->
Task
b
)!*
HSt
->
(!
Bool
,
Html
,*
HSt
)
|
iData
b
::
StartUpOptions
=
TraceOn
|
TraceOff
// for single & multiUser: default = TraceOn
|
ThreadStorage
Lifespan
// for Ajax: where to store threadinformation: default = TxtFile
...
...
libraries/iTasks/iTasks.icl
View file @
5bbabef8
...
...
@@ -232,6 +232,30 @@ multiUserTask startUpOptions maintask hst
(
if
userOptions
.
traceOn
(
idform
.
changed
,
idform
.
form
)
(
False
,[]))
userOptions
maintask
tst
=
mkHtmlExcep
"multiUser"
exception
html
hst
workFlowTask
::
![
StartUpOptions
]
!(
Task
(
Bool
,
UserId
,
a
))
!((
Bool
,
UserId
,
a
)
->
Task
b
)
!*
HSt
->
(!
Bool
,
Html
,*
HSt
)
|
iData
b
workFlowTask
startUpOptions
taska
iataskb
hst
#
userOptions
=
determineUserOptions
startUpOptions
#
tst
=
initTst
-1
userOptions
.
threadStorageLoc
hst
#
((
new
,
i
,
a
),
tst
=:{
activated
,
html
,
hst
})
=
taska
tst
// for doing the login
|
not
activated
#
iTaskHeader
=
[
showHighLight
"i-Task"
,
showLabel
" - Multi-User Workflow System "
,
Hr
[]]
#
iTaskInfo
=
mkDiv
"iTaskInfo"
[
showText
"Login procedure... "
,
Hr
[]]
=
mkHtmlExcep
"workFlow"
True
[
Ajax
[
(
"thePage"
,
iTaskHeader
++
iTaskInfo
++
noFilter
html
)
// Login ritual cannot be handled by client
]]
hst
#
userOptions
=
determineUserOptions
[
TestModeOff
,
VersionCheck
,
ThreadStorage
TxtFile
:
startUpOptions
]
#
tst
=
initTst
i
userOptions
.
threadStorageLoc
hst
#
(
exception
,
body
,
hst
)
=
startTstTask
i
True
(
False
,[])
userOptions
(
iataskb
(
new
,
i
,
a
))
tst
=
mkHtmlExcep
"workFlow"
exception
body
hst
where
noFilter
::
HtmlTree
->
HtmlCode
noFilter
(
BT
body
)
=
body
noFilter
(_
@@:
html
)
=
noFilter
html
noFilter
(_
-@:
html
)
=
noFilter
html
noFilter
(
htmlL
+-+
htmlR
)
=
[
noFilter
htmlL
<=>
noFilter
htmlR
]
noFilter
(
htmlL
+|+
htmlR
)
=
noFilter
htmlL
<|.|>
noFilter
htmlR
noFilter
(
DivCode
str
html
)
=
noFilter
html
/*
workFlowTask :: ![StartUpOptions] !(Task (UserId,a)) !((UserId,a) -> Task b) !*HSt -> (!Bool,Html,*HSt) | iData b
workFlowTask startUpOptions taska iataskb hst
# userOptions = determineUserOptions startUpOptions
...
...
@@ -253,6 +277,7 @@ where
noFilter (htmlL +-+ htmlR) = [noFilter htmlL <=> noFilter htmlR]
noFilter (htmlL +|+ htmlR) = noFilter htmlL <|.|> noFilter htmlR
noFilter (DivCode str html) = noFilter html
*/
// ******************************************************************************************************
// Main routine for the creation of the workflow page
...
...
Write
Preview
Supports
Markdown
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