I have a Template called NewSequenceTemplate.xaml, and within this I have 3 sequences, a Pre, Do Work and Post. In the Pre I have a “Log Message - seq start” with the text “Sequence start”, and in Post I have the same, just with end instead of start.
In this I would love the New Workflow function to replace the text.
I.e: should I create a new Workflow called “GetDataFromDatabase” it would replace the text withing the Log Message to “GetDataFromDatabase start/end”.
The New Workflow function will automatically rename the topmost sequence to the name given in the New Workflow form.
It can replace stuff in your workflow if it exactly matches the name of the Workflow template. However, I have had mixed experiences, if I recall correctly it works differently for C# projects compared to VB
You might also find this discussion interesting. Specifically the solution provided by Idris at the end would perhaps meet your logging needs?
Sounds great, but this is set by the Invoker, not by the workflow. I’m pretty sure this would result in missing logs, as the developer by 90% chance will forget to set it
Be aware that this only works for invoke workflows within the project. So if you want to use a library activity within your robot process it wouldn’t get called with this.
Thank you @ijanszen1, @postwick, @ashokkarale, @Jon_Smith for your replies.
By using @ijanszen1s reply in the thread posted by Jon_Smith, I actually got a oneliner to put into my Log Message. It is in vb.net, but if anyone is looking for the same solution here it is: