Import Xaml Text into Workflow
I've seen several examples in the workflow forums where someone has posted an export of their workflow in .xaml format.
How do you import these text examples in the workflow software?
And alternatively, how does one export such text files from the workflow software?
Walter
-
Just copy the text into a text file and save as a .xaml. You can view this file then in Workflow Designer.
0 -
I meant to say copy it into Notepad
0 -
I tried that, but the workflow software didn't want to recognize the file.
Walter
0 -
It may be that the workflow posted in the forums was created in a newer version of workflow designer than the one you have installed. If you upgrade to the latest version that might help.
0 -
Thank you for your responses.
I'll see what version we're on and find out whether we're going to upgrade soon.
Walter
0 -
I'm currently running Workflow Designer v 2.19.1.7 and my Report Designer is the same.
Walter
0 -
Hi Walter
and now the bid question is what version was the xaml written with which will need to be answered by the originator of the xaml.
Regards
Ralph
0 -
Thanks for bringing that up Ralph. How do you tell by just looking at the xaml text off the forums?
Maybe, as a prerequisite to the posting, it would be a good idea to show which version the file is in.
Walter
0 -
Hi Walter
it is not hugely obvious but I assume that there is validation of the referenced namespaces etc at the start of the xaml which is what then gives the error.
Unfortunately there is nothing that says Workflow Designer version 2.x of whatever.
Unless the person who has posted has specified what they were using then you may need to give them a prompt. Since new Activities arrive pretty much every version there is always a chance that if you are slow to upgrade then you will get these issues.
It is a good idea to specify versions which I try to do but don't always manage to remember to do so.
Regards
Ralph
0 -
Good points Ralph. Will try to quote versions when I post.
Thanks for your help.
Walter
0 -
Downloaded the .exe for both the Workflow Designer and the Report Designer this morning and it seems that this new download is older
than the version I'm running now...? Right now I'm running WF v2.19.1.7 and RD v2.19.1.7, but the newly downloaded files are
WF v2.19.0.390 and RD v2.19.0.390?
So, if I'm running the lastest sofware, why then I cannot paste in the xaml text from a forum posting into a text file and give it an extension of .xaml, but then
the WF won't read the file?
Walter
0 -
Hi Walter,
Sometimes I have to open Workflow Designer first, then use the File -> Open menu and open the XAML file that way. For whatever reason, I sometimes get an error just relying on the file association I set up for the XAML extension.
Are you receiving a specific error message when yours fails?
Steve
0 -
Steve,
No particular error, just that it cannot open the file. I'll check my file associations and try your recommendations on opening these types of .xaml text files.
Walter
0 -
Hi Walter
would you like to post the xaml that you are trying to use and I can try to open it.
Ralph
0 -
Ralph,
Here are the contents of the forum post I was trying to import. All I did was paste the portion below into a text file and called it paste.xaml. There were no extra spaces at the beginning or end of the file. So it starts with <Activity and then ends with </Activity>5
<Activity mc:Ignorable="sap sads" x:Class="{x:Null}" sap:VirtualizedContainerService.HintSize="326,1218" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces"
0 -
Hi Walter
it would appear that you are breaking it by including the 5 after the closing Activity element.
It opens fine on my machine using Workflow Designer 2.19.0.390
Regards
Ralph
0 -
Ralph,
Thank you so much for your assistance. I am now able to read in the textual .xaml files as predicted.
Walter
0
Please sign in to leave a comment.
Comments
17 comments