Hey @mwerner I tried to use your library Alphabet.Workflow.Activities and it works perfectly for getting the Xaml file name but I also tried to use the other activities under Logging (e.g. Log Start Of Workflow) and they do not work under UiPathStudio Version 2020.4.3 when I move of of this actities to a workflow, following exception appears:
Hi @Phipsll i just tested the activities with the newest version 2020.10 (BETA) and everything is working. Which version of Workflow.Activities are you using?
Hello @mwerner thank you for your fast response. I am using version 3.1.0 of Workflow Activities, more details you can take from the screenshot below. As a workaround, I have downgraded UiPath.System.Activities to version 19.8.0 that the logging activities work again.
I was the same! Obtaining file name was great but the Logging tools do not work and I received the same error. Iâve just done my logging so it will probably be the same result as what that product originally offered?
Hi @mwerner, thank you for your fast action and solving this problem by uploading Version 3.2.0. No the activities are working with UiPath.System.Activities Version 20.4.0 but there is still a minor bug that you have swapped Prefix and Suffix Input. More details can be seen on the screenshot below.
@mwerner
Thanks for the easy to use package, but would also like to share our experience using it.
We did use the package to get the current worfklow name in our library workflows. Turns out that, when the library is built and imported into a REFramework things dont work out.
Tldr: Alphabet Package checks for the workflow being run on runtime and not the workflow you actually wanted to log. This occurs when using the âGet xaml file nameâ activity in a library acitivity and when consuming the activity in a REFramework.
Details:
Create a library: Library_x â Dependencies â Alphabet Workflow Activities
In the library_x created workflow âAdd.xamlâ - Placed a âGet xaml file nameâ activity. And log message.
Test: Works as expected. Returns the current workflow name i.e., âAddâ.
Build the library_x.nupkg
Import library.nupkg and use in REFramework
Used the library_x activity âAddâ in the âProcess.xamlâ in REFramework.
When the REFramework is run the logs show âProsessâ as file name instead of âAddâ (which is where the âGet xaml file nameâ resides).
Our current solution to get the filename:
In the end, we had to uninstall Alphabet and update 40 workflows manually. Out approach was to go to the basics and hardcode the filename.
When I use the get xaml name both from the alphabet package and the getparent package i just get the return as dynamicactivity and its a xaml ran from inside another xaml, could anyone offer some help?
In the UiPath.System.Activities activity package (checked against the version 21.10.4) thereâs the activity âGet Current Job Infoâ that returns an object of type CurrentJobInfo.
CurrentJobInfo has a member property by the name WorkflowName that contains the name of the currently executing workflow file without its .xaml extension.