Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit a16f42b

Browse files
cppwfsilayaperumalg
authored andcommitted
Add docs for setting props for child tasks in a CTR
resolves #2071
1 parent 8bd77ad commit a16f42b

File tree

1 file changed

+14
-0
lines changed
  • spring-cloud-dataflow-docs/src/main/asciidoc

1 file changed

+14
-0
lines changed

spring-cloud-dataflow-docs/src/main/asciidoc/tasks.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,21 @@ dataflow:>task execution list
404404
In the preceding example, we see that `my-compose-task` launched and that it also launched the other tasks in sequential order.
405405
All of them executed successfully with `Exit Code` as `0`.
406406

407+
===== Passing properties to the child tasks
407408

409+
To set the properties for child tasks in a composed task graph at task launch time,
410+
you would use the following format of `app.<composed task definition name>.<child task app name>.<property>`.
411+
Using the following Composed Task definition as an example:
412+
413+
[source,bash]
414+
----
415+
dataflow:> task create my-composed-task --definition "mytaskapp && mytimestamp"
416+
----
417+
To have mytaskapp display 'HELLO' and set the mytimestamp timestamp format to 'YYYY' for the Composed Task definition, you would use the following task launch format:
418+
[source,bash]
419+
----
420+
task launch my-composed-task --properties "app.my-composed-task.mytaskapp.displayMessage=HELLO,app.my-composed-task.mytimestamp.timestamp.format=YYYY"
421+
----
408422

409423
===== Exit Statuses
410424

0 commit comments

Comments
 (0)