Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openmole
openmole
Commits
938ec52a
Commit
938ec52a
authored
Jun 20, 2019
by
Romain Reuillon
Browse files
[Core] fix: arguments of task hook
parent
f44f5174
Changes
1
Show whitespace changes
Inline
Side-by-side
openmole/core/org.openmole.core.workflow/src/main/scala/org/openmole/core/workflow/composition/package.scala
View file @
938ec52a
...
...
@@ -27,7 +27,7 @@ package composition {
import
java.io.PrintStream
import
org.openmole.core.context.
{
Context
,
Val
}
import
org.openmole.core.expansion.Condition
import
org.openmole.core.expansion.
{
Condition
,
FromContext
}
import
org.openmole.core.outputmanager.OutputManager
import
org.openmole.core.workflow.builder.DefinitionScope
import
org.openmole.core.workflow.execution.
{
EnvironmentProvider
,
LocalEnvironmentProvider
}
...
...
@@ -138,7 +138,11 @@ package composition {
def
on
(
environment
:
EnvironmentProvider
)
=
copy
(
environment
=
Some
(
environment
))
def
by
(
strategy
:
Grouping
)
=
copy
(
grouping
=
Some
(
strategy
))
def
hook
(
hooks
:
Hook*
)
=
copy
(
hooks
=
this
.
hooks
++
hooks
)
def
hook
(
output
:
WritableOutput
,
values
:
Val
[
_
]*)(
implicit
definitionScope
:
DefinitionScope
)
:
TaskNode
=
hook
(
CSVHook
(
output
=
output
,
values
:
_
*
))
def
hook
(
output
:
WritableOutput
,
values
:
Seq
[
Val
[
_
]]
=
Vector
.
empty
,
header
:
OptionalArgument
[
FromContext
[
String
]]
=
None
,
arrayOnRow
:
Boolean
=
false
)(
implicit
definitionScope
:
DefinitionScope
)
:
TaskNode
=
hook
(
CSVHook
(
output
,
values
=
values
,
header
=
header
,
arrayOnRow
=
arrayOnRow
))
def
source
(
sources
:
Source*
)
=
copy
(
sources
=
this
.
sources
++
sources
)
}
...
...
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