Server Scope
I'm using the same WF as the multilayer WF availabe online. Only the upper half is different. But I keep getting a Bitmap serialization error.
Munwhan responded to my initial inquiry, and mentioned that I needed to return the bitmap value to nothing, after it was assigned.
He also mentioned to use the Server Scope activity to isolate this transition. Please see attached. But I'm still getting the same serialization error.
Can anyone help?......
Walter
/customer/servlet/servlet.FileDownload?file=00P6000000em18FEAQ
-
Hi Walter,
I think the issue is that you're adding the bitmap to a dictionary and that is still in scope when your workflow runs a client-side activity. After the DictionaryToDataTable activity assign the dictionary object to nothing the same way you did for the bitmap and see if that helps.
Nicholas
0 -
Nicholas,
I've added a new assign activity, right after the dictionarytoDataTable activity. But I still get the same serialization error....Walter
/customer/servlet/servlet.FileDownload?file=00P6000000elu2FEAQ
0 -
Walter,
Could you post a whole workflow file on this Forum by
(1) Open your workflow file using 'NOTEPAD' or any other Text Editor
(2) Copy a whole file (check Edit - Select - Copy)
(3) Paste it to here at Forum so that someone can open it on the workflow designer to investigate for you.
Munhwan
0 -
(https://data.latitudegeo.com/community/WorkflowSamples/serverscope1.xaml) Here is my workflow .
0 -
Walter,
There are several points I would like to make it clear.
(1) On your 'Create Report Sequence, 'bitmap' vairable is still in the same scope of two Client activities like 'Export Map' and 'Report'. So I recommend to add all server activities in 'Create Report Sequence' to the 'ServerScope' and its 'Sequence' container. So except 'Export Map' and 'Report' client activities, you can put all others to the 'ServerScope' - 'Sequence' and also recommend to change 'Display Name' of 'Sequence to another meaning one like 'Modifiy DataSource of the Report'.
(2) YOU CAN NOT USE 'Report' activity to use a modified dataSet since you can't feed a modified Dataset to the Report activity. So use 'Template Report' in Common Server group where you can assign 'DataSource to the Report Tempalte. CHECK my first response on your inquires. I explained the difference between 'Report' and 'Template Report' activities.
(3) Check the variable scope of 'bitMap' object not to belong to the same Scope with any other Client Activities, and make 'bitmap' to nothing as soon as you assign to the dataTable's column.
(4) A small tip, you may put 'Display Form' to the 'Sequence' so that WF designer can render it as the collapse/Expand so that you can work it easily.
** Since I can't access your site and mapservices, I can't give the modified workflow version here.
Anyway hope this helps you out and to understand more about WF.
Happy seasonal holidays!
0 -
Munwhan,
Thanks for your explanation. I'll attempt to apply your suggestions.
Happy holidays to you too.
Walter
0 -
Walter,
did you ever get this running?
I'm having the EXACT same issue...
Thanks.
0 -
Eric,
No, never could get past this error, nor did I fully comprehend any of the return comments/suggestions.
Sorry....Walter
0 -
Walter,
I got mine working, if you are still interesetd....
Eric
0 -
Thanks Eric,
Were you working with the same multiple layer workflow from the download section? If so, yes, I would be interested in seeing a copy of your workflow.
Walter
0 -
Basically, yes.
I ended up combining most of that one with the Where I Live Tool example that a user posted.
Not sure how to get you the file...
Here are a few images and some notes...
/customer/servlet/servlet.FileDownload?file=00P6000000em1kEEAQ /customer/servlet/servlet.FileDownload?file=00P6000000em1RHEAY
My key takeaways are:
- you have to load the image into the dataset first and this takes place inside of its own sequence that sits inside the CreateReport sequence.
- THEN you can load the data from your layers (done in the parallel section)
- When designing the report, you can place an image control on the report and set it directly from the dataset
- EVERYTHING ELSE (layer data) is then displayed using subreports - one subreport for each layer
I had a workflow that was close, but I finally broke down and created this one from scratch, adding parts and testing as I went, once I figured out those bullets, it worked right away.
I'd be happy to get you the workflow, just need an easy way....email maybe?
Eric
0 -
Eric,
In order to transport a copy of your workflow, all you need to do is open it up in Notepad, since the .xaml is just a text file. You can copy/paste your entire workflow right into your return message, then I can grab a copy from there.
Walter
ps. Thanks
0 -
well, ok then.....here you go.....
(http://data.latitudegeo.com/community/WorkflowSamples/serverscope2.xaml) Workflow
[Editorial note: I've copied the two workflows in this thread into xaml files and hosted them, as they were too long to be fully displayed in Salesforce Community posts. ~ Jordan]0 -
Eric,
Got your attachment and will give it a try.
Thanks for your output.
Walter
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
14 Kommentare