Skip to main content

Multirow task execution

Multirow task execution
Did this topic help you find an answer to your question?
Show first post
This topic has been closed for replies.

36 replies

Jasper
Superhero
  • Author
  • 678 replies
  • April 16, 2021

Hi pvleeuwen, 

Can you please file a ticket in TCP for this? Thanks.


Forum|alt.badge.img+2
  • Vanguard
  • 24 replies
  • April 16, 2021

Hi @Jasper ,

The multirow variable isn’t filled for me.

I followed the steps you described.

When I try to view the content of the variable with tsf_send_message it’s just empty for me.

Also the task still seems to be executed multiple times.

 

Can you help me with this?

 

Regards,

Peter


Forum|alt.badge.img+15
  • Superhero
  • 196 replies
  • November 6, 2020
Jasper wrote:

@Ricky This is on our backlog, but we have not yet planned a date for this.

It is, however, trivial to locate and rewrite the select (and delete) from the XML to use a table valued parameter. And from a functional point of view, it doesn't make any difference.

Hi @Jasper , can you tell a bit more about the table-valued parameters in general what the plans are? And in what period of time? As I can't find it in the ‘ideas’ backlog.

I assume the multi row solution will be replaced by that, but I think I have another case for which table valued parameters could be useful. But I'm not sure it's part of the same, or something new.

It could be useful when you could design them as ‘Domain’, so it can be used in tasks, subroutines and process flows. We currently use a lot of XML passing data in process flows, but handling XML is pretty heavy for SQL Server. It also could decrease our code base as it's no longer necessary to apply transformations from a table variable, to XML, and back from XML to a table variable.

 


Jasper
Superhero
  • Author
  • 678 replies
  • June 26, 2020

Hi Ricky,

I hope for us that by doing so we only need to remove the code above and can use the @records table.

That is indeed how it will need to be modified. 

 

And how to deal with unit tests on multi rows?

We will automatically convert these input strings to the required data structure.


Jasper
Superhero
  • Author
  • 678 replies
  • April 14, 2020

@Ricky This is on our backlog, but we have not yet planned a date for this.

It is, however, trivial to locate and rewrite the select (and delete) from the XML to use a table valued parameter. And from a functional point of view, it doesn't make any difference.


Ricky
Superhero
Forum|alt.badge.img+8
  • Superhero
  • 96 replies
  • April 3, 2020
Jasper wrote:


⚠️ In the future this feature will be configurable through the metamodel and will probably use table valued parameters instead of XML. We'll be able to automatically upgrade the model, but you'll need to change the code yourself!

 

Gradually our codebase gets cluttered more and more with your originally suggested solution. Can you get us an update on when you expect the future will arrive on this matter?


Erik Brink
Moderator
Forum|alt.badge.img+5
  • Moderator
  • 498 replies
  • April 2, 2020

Does this feature also work for reports?

 

Reports currently don't support this. We should think about this in a design and investigate whether report implementations are able to process these kind of structured data.

I'd suggest to park this question in a separate post/idea to think about alternatives and to investigate the need for this.

Link to the parked idea:

https://community.thinkwisesoftware.com/ideas-18/multirow-report-execution-1048#post3001


Harm Horstman
Superhero
Forum|alt.badge.img+21

Does this feature also work for reports? 

I need to make a report with an output based on selected rows in a grid.

 

Does Multirow task execution still work from version 2020.1?


Forum|alt.badge.img+13
  • Hero
  • 155 replies
  • August 26, 2019
I'm trying something similar with the copy file process action to copy a batch of files by obtaining "from file" and "to file" values from a select query. I put all those rows in a table variable and then loop through these rows one by one. But this is the part that eludes me:

The HTTP connector should be called while the parameters have a value.


What happens now is that the loop finishes and ends up outputing a single set of null values. How can I insert a sql "while" loop into a process flow so that it outputs parameters set by set into the process variables?

Forum|alt.badge.img+3
  • Warrior
  • 63 replies
  • February 6, 2019
I don't think looping in processflows ever even crossed my mind. This could be a very nice solution.
One thing though, I would personally prefer keeping a pointer (int) to the current row, this would keep the input intact.

I had to fiddle around a bit, but here's an example of using a pointer:

Forum|alt.badge.img+3
  • Warrior
  • 63 replies
  • February 6, 2019
Sounds great. But I can't quite see yet whether this would solve our issue where the process in question contains a http connector. The api we're talking to, only allows a single item to be requested every time. Which means the http connector needs to be ran for every item in the selection, which (if I read correctly) is still not possible.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings