DictionaryToDataTable<String,Object> - is it asynchronous or synchronous ?
Hello everyone
I'm having issues with debuging the workflow in sequence :
- If the alert statement is present as per screenshot the workflow crashes with exception that dataTableMap is not set. ( note : Dictionary's object contains Bitmap object size about 1.4Mb )
- If the alert is commented out workflow runs correctly.
Anyone has this kind of timing issues?
How to ensure that Alert is fired after previous statement is compelted?
_img_ alt="Sequence - alert placement" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90660000000TSGg&feoid=Body&refid=0EM60000000LvBu"_/_img_
I would like to hear your thoughts.
0
-
The Dictionary To DataTable activity is synchronous. Also activities in a Sequence will always run synchronously regardless of whether individual activities are sync or async.
Your workflow fails when you add the Alert because the Alert activity runs in the client/viewer application rather than on the server. This means that the workflow must save the state of all the variables currently in scope (serialization), unload the workflow, and transfer the saved state and the Alert instruction to the viewer. Once the viewer completes the Alert control is transferred back to the server where it attempts to rehydrate the state of the variables (deserialization). Objects like DataTables, Dictionaries and Bitmaps don't necessarily survive the serialization/deserialization process.
I prefer to do debugging like this using the Log activity rather than with Alert. Since Log runs on the server it avoids introducing unexpected consequences of client/server communication.
--Ryan0 -
Ryan your response needs to be added to the Knowledge Base. 0 -
Thanks Ryan for the great response, it makes sense now. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer