Skip to content

Commit 603cceb

Browse files
committed
Add todolist name to dump file name
1 parent 734012a commit 603cceb

File tree

1 file changed

+6
-3
lines changed
  • Middleware/smardes-middleware/smardes-backend-services/src/assembly/distrib/config/rules

1 file changed

+6
-3
lines changed

Middleware/smardes-middleware/smardes-backend-services/src/assembly/distrib/config/rules/todo.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@
3131
</baseMessage>
3232
<response responseVar="todolist_details" />
3333
</pushMessage>
34-
<dumpFile templateName="dump_todolist" encoding="windows-1252"
35-
destinationFile="str:concat(datetime:format(datetime:parseISO8601(datetime:now()), 'yyyy-MM-dd-HH-mm-ss'), '.txt')">
34+
<setLocalVariables>
35+
<property name="local.todo" expression="todolist_details.body.responseObject"/>
36+
</setLocalVariables>
37+
<dumpFile templateName="dump_todolist" encoding="windows-1252" append="true"
38+
destinationFile="str:concat(local.todo.instance.header.name, '-', datetime:format(datetime:parseISO8601(datetime:now()), 'yyyy-MM-dd'), '.txt')">
3639
<context>
37-
<entry name="todo" expression="todolist_details.body.responseObject" />
40+
<entry name="todo" expression="local.todo" />
3841
</context>
3942
</dumpFile>
4043
</actions>

0 commit comments

Comments
 (0)